4 ms·
John from Braintree here. In the case of our client-side encryption library we use sjcl (http://crypto.stanford.edu/sjcl/ http://crypto.stanford.edu/sjcl/) to g
by jtdowney 14y ago
John from Braintree here. In the case of our client-side encryption library we use sjcl (http://crypto.stanford.edu/sjcl/ http://crypto.stanford.edu/sjcl/) to generate the symmetric keys for encryption. This library uses Ferguson and Schneier's Fortuna PRNG to generate random values. The main entropy source is crypto.getRandomValues (https://developer.mozilla.org/en-US/docs/DOM/window.crypto.getRandomValues https://developer.mozilla.org/en-US/docs/DOM/window.crypto.g...) where it is available. In other places it uses mouse movements to provide entropy for the PRNG.
- rdl 14y agoWhat do you do on touchscreen tablets running on non-firefox, non-webkit browsers (which don't have the RNG exported)? The only devices I could think of which meet that description are RIM Playbook and maybe Windows Phone, or maybe IE on horrible devices which have touchscreens.
- abrowne 14y agoThe Playbook browser is a webkit variant.