Password Tools¶
Password Manager¶
arch : pacman -S keepassxc
redhat/centos/fedora : yum install keepassxc
suse : zypper install keepassxc
Password Generator¶
Password generation tool ‘pwgen’
arch linux : pacman -S pwgen
Generate 1 secure password with 16 char length and no misinterpreted chracters (i.e. 0,O,1,l,I)
# pacman -S pwgen
# pwgen -s -B 16 1
XurfLuHYLKLtY3sALdPe9vh3
Another method is to use /dev/random
# cat /dev/urandom | tr -dc 'a-zA-Z0-9' | fold -w 32 | head -n 1
Method with seperated password in chunks, divided by hyphen
# openssl rand -base64 500 | tr -dc 'a-zA-Z0-9' | fold -w 24 | head -n 1 | gawk '{$1=$1}1' FPAT='.{6}' OFS=-
licM9z-YJ6eHW-H8nAZi-dQPeEJ
Generate a hash password¶
Generation of a sha512 password with a random salt value. Note: passing -1 will generate an MD5 password, -5 a SHA256 and -6 SHA512 (recommended)
# openssl passwd -6 -salt $(cat /dev/urandom | tr -dc 'a-zA-Z0-9' | fold -w 32 | head -n 1)
Password:
$6$JNiDd4tVmKSDgazQ$RsJm0U.ixZ57l9CfHDznHwH8M8JQynEz3ccAa.yYi/JfoN9s0SIfzcR6A25bBk.oATYaYiD5Lkwuza.dV9wKK0