Generate password - npolar/gouncer GitHub Wiki

The Gouncer user database stores a hashed and salted password

Here's how you might generate a secure random password

PASSWORD=`cat /dev/urandom | tr -dc 'a-zA-Z0-9' | fold -w 12 | head -n 1`
SALT=`cat /dev/urandom | tr -dc 'a-zA-Z0-9' | fold -w 64 | head -n 1`
echo -n $PASSWORD$SALT | sha512sum