Hi there, > up to now the current js library is not compatible with firefox due to the > missing window.crypto.random Function.
https://github.com/openpgpjs/openpgpjs/issues/22 > code from http://crypto.stanford.edu/sjcl/ ? I've just added a git dependency to sjcl and we might want to integrate it like this: ========= function openpgp_crypto_getSecureRandom(from, to) { if (typeof(window.crypto.version) != "undefined") { return openpgp_crypto_getSecureRandom_cryptoAPI(from, to); } else return openpgp_crypto_getSecureRandom_sjclAPI(from, to) } } ========= Best regards, Alex On 16.01.2012, at 17:10, Nils Kenneweg wrote: > Hi everyone, > > up to now the current js library is not compatible with firefox due to > the missing window.crypto.random Function. > > Because this function is also missing in Internet Explorer somebody > needs to build an entropy collector and a (seedable, good) PRNG. > > Is there already somebody who does this? > Is there somebody who knows how to do this? (I don't, as you can do a > lot wrong) > > Maybe we can use some code from hanewin (who collects entropy by using > the mouse) > and code from http://crypto.stanford.edu/sjcl/ ? > > Regards, > Nils > -- openpgpjs.org

