Check password strength: cracklib-check

echo "password" | cracklib-check
password: is based upon a dictionary word
echo "1sOmE3" | cracklib-check
1sOmE3: OK

Be warned, this will leave your password saved in the bash bistory, so you need to find away around this.

Create Password

Generate a password with: mkpasswd

  • EL: Not available under EL itself, but its bundled in expect, but its not worth it*
  • Deb: Install with apt-get install makepasswd

Generate a password with: pwgen

EL: yum -y install pwgen Deb: apt-get install pwgen