The first command they give is (note double fail: base64-encoding hex):
They do provide a command that gives a good alphanumeric password:
date +%s | sha256sum | base64 | head -c 32 ; echo
However, they also mention this one:
tr -cd '[:alnum:]' < /dev/urandom | fold -w30 | head -n1
About the above command, they say, "I'm sure that some people will complain that it’s not as random as some of the other options, but honestly, it’s random enough if you’re going to be using the whole thing." That is absolutely wrong and demonstrates a complete lack of understanding what a hash function is.
date | md5sum
- Hashing does not add randomness. The output of a hash is as random as its input.
- Use a cryptographically-secure random number generator to generate passwords.