sh encrypt.sh www.google.com mysecret.txt
sh encrypt.sh www.apple.com mysecret.txt
sh encrypt.sh www.microsoft.com mysecret.txt
It then will make a directory for each in results using different passwords and their respective keys.I want the same random key sent to multiple recipients. That way they can all verify that they are seeing the same thing.
Edit: Just to clarify, without using the same random key for all recipients, the reports are not verifiably the same until everyone shows their random keys. If you use the same random key for all recipients, you don't have this problem.
Also, I'm pretty sure that if adobe and microsoft both have a vulnerability then they'll talk to each other.
Your current scheme suffers from the fact that once the report has been generated, the only person that can verify that a given document is the same as the submitted report is the vendor - who may not be inclined to cooperate.
It's admittedly a little far-fetched, but if there is a dispute as to the contents of the report and the vendor refuses to disclose the secret key, it ends up being the vendor's word against that of the researcher.
This can be solved by keeping the random key around or by sending it to multiple recipients. Or both. Your current strategy of immediately deleting it is pointless while the original plain-text report still exists but leads to the conundrum above.
This allows the researcher to publicly send the same report to multiple vendors (and it will verifiably be the same report) and adds the option of introducing "neutral" third party arbitrators as well.
For example, the researcher might want to publicly CC all vulnerabilities to CERT (to pick a random example), to put a little more pressure on the vendor and share the burden of following up and keeping the vendor honest.