You are not logged in.
Pages: 1
I was just reading about how to make a truly-nonpredictable random text string in PHP using an implementation of a CSPRNG (cryptographically secured psuedorandom number generator) here: http://stackoverflow.com/a/31107425/2373138
I'm wondering, if I use /dev/urandom in bash, am I also implementing a CSPRNG? If not, is there a way to use bash to accomplish the same task with a CSPRNG?
tr -dc A-Za-z0-9 < /dev/urandom | head -c 32 | xargsLast edited by tony5429 (2017-04-06 18:47:44)
Offline
Both /dev/random and /dev/urandom are CSPRNG
Edit: A pretty good article: http://www.2uo.de/myths-about-urandom/
Last edited by ewaller (2017-04-06 15:53:48)
Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
The shortest way to ruin a country is to give power to demagogues.— Dionysius of Halicarnassus
---
How to Ask Questions the Smart Way
Offline
Perfect; thanks!
Offline
Pages: 1