Generate Random Strings and Passwords
Random password with openssl
$ openssl rand -base64 32 | tr -d /=+ | cut -c -24
Or a bash script:
pw-owasp is a function
pw-owasp ()
{
cat /dev/urandom | tr -dc 'A-Za-z0-9!"#$%&'\''()*+,-./:;<=>?@[\]^_`{|}~' | head -c "$1" | tr -d '\n'
}
Use pw-owasp
like this:
$ pw-owasp 15