Is there a simple Windows equivalent for this bash command:
head -c 500 /dev/urandom | tr -dc abcdefghijklmnopqrstuvwxyz | head -c 9; echo
I think the main problem is /dev/urandom, since I’ve heard of the CryptoAPI, but I don’t know if that’s cryptographically secure enough.
EDIT: Sorry, the code is used in a php script, and the %s represents a string substitution; I forgot to make that substitution when I asked the question. Fixed.
Taken from RFC 4086: