Re:Encrypt a file so that only a SSL site's private key can ...
by tptacek on Sunday April 03, 2011 @11:00AM
(#2402838)
Using /dev/urandom as a password source is fine. It's a CSPRNG. It theoretically degrades if you exhaust entropy, but there's no current attack I know of based on that property. Also, RNG attacks are usually "online", meaning an attacker gets to continually interact with the RNG. This is a one-off offline use. In this scenario, you could probably survive with rand().
[ Parent
| on HN ]
There are no comments on this comment yet.