by niftich · 10y ago · 0 comments
- Rust (no out-of-the-box crypto lib AFAIK)
- Erlang (ships-by-default 'crypto' uses openssl)
- Java 7 and below are, unfortunately, still in common use, despite being end-of-life. There is a config file to be edited, or a switch to be passed to the java executable to switch the RNG source away from /dev/random, the pre-8 SecureRandom default.
- Some obvious note about how client-side Javascript is a lost cause, in case anybody's tempted
Relevant (from 2011): https://www.nccgroup.trust/us/about-us/newsroom-and-events/b...
Edit: note that I did not say that other points in that article are irrelevant.
Java 8 does define more sources for SecureRandom, including NativePRNGNonBlocking, which specifically refers to /dev/urandom (http://docs.oracle.com/javase/8/docs/technotes/guides/securi...).
https://gist.github.com/jamwt/60f66f0fd27d349fe460051e55e79a...
(Also submitted to blog author.)
crypto.getRandomBytes is supported by everything that matters[0], won't be a problem in ~5 years.
When is it not?
Just by being online and running for a few seconds will cause enough entropy to put the generator into a safe state, so this rarely happens in practice.
In fact Ubuntu comes prepackaged with pollinate[0] which makes this basically a non-issue for everyone that's not wearing a tinfoil hat.
1. http://manpages.ubuntu.com/manpages/trusty/man1/pollinate.1....
There's lots of stuff happening on a network that's impossible to guess and replay.