Hi OpenPGP.js-community:

I noticed that openpgp.js only works together with browsers, which 
provide crypto.getRandomValues(). In Firefox, this is above version 21 
and as I dont know, what my clients use, I wanted to support more browsers.

Thus, I implemented Fortuna PRNG (from https://github.com/wxfz/fortuna) 
to another script I wrote: crypto.getRandomValues.js. If 
crypto.getRandomValues()-function is natively supported, fortuna is 
skipped of course.

You only have to include the scripts "fortuna.js" and 
"crypto.getRandomValues.js" AFTER jquery.js and BEFORE openpgp.js. I 
made my crypto.getRandomValues.js-script LGPL and asked the author of 
Fortuna, if he would also do so (hasnt replied yet).

Maybe it is cryptographically not secure enough, but I leave this up to 
discussion.

The stuff can be reached here:

https://github.com/smartinmedia/openpgp.js-crypto.getRandomValues

Best regards

Martin
_______________________________________________

http://openpgpjs.org

Reply via email to