Generare l'hash di una password
Con openssl
- Hash crypt
openssl passwd -crypt
echo "lapassword" | openssl passwd -crypt -stdin
- Hash MD5
openssl passwd -1
echo "lapassword" | openssl passwd -1 -stdin
- Vedi man 1ssl passwd
Con mkpasswd
sudo aptitude install mkpasswd
- Hash crypt
mkpasswd -m des
echo "lapassword" | mkpasswd -m des -s
- Altri hash:
des standard 56 bit DES-based crypt(3) md5 MD5 sha-256 SHA-256 sha-512 SHA-512
- Vedi mkpasswd --help