tech:gnu_linux_-_verifier_un_mot_de_passe_systeme_etc_shadows
Table des matières
GNU Linux - vérifier un mot de passe système /etc/shadows
Si pas de caractère “$” au début, c'est que ce n'est pas au format yescrypt. Si hash fait 13 caractère c'est que c'est probablement encodé en DES. Dans ce cas le Salt fait 2 caractère
$ mkpasswd -S ab -m DES 'P@ssw0rd' abnkC.5tqv/G6
Voir man 5 crypt
Autres
openssl passwd -6 -salt xyz yourpass
Python
import crypt # usage: crypt.crypt("password", "hasing algorithm + salt") print(crypt.crypt("test1234", "$6$OXE8gHwh2.nmuwp7$"))
tech/gnu_linux_-_verifier_un_mot_de_passe_systeme_etc_shadows.txt · Dernière modification : de Jean-Baptiste
