You are not logged in.
Pages: 1
Recently, I've been reading about SHA encryption and I would like to try and implement it on my systems (specifically sha256). However, it seems that this requires a working knowledge of pam, which seems to be one of those magical things that isn't particularly well documented.
The wiki has an entry on Blowfish passwords, and it hints at SHA, but has no information about actually making that switch.
Can anyone provide any help or links to places I might be able to find some documentation?
Offline
I have read that pam_unix.so already supports the SHA cyphers, so is it just a matter of changing something in /etc/pam.d/passwd as well as /etc/default/passwd ?
Offline
Wow... no joke I think it was really this easy:
In /etc/pam.d/passwd make sure this line is present:
password required pam_unix.so sha256 shadow nullok
In /etc/default/passwd change the default CRYPT setting to:
CRYPT=sha256
Then reset all the user's passwords as root.
Can anyone verify the /etc/shadow prefix for sha256 passwords?
I know MD5 starts with $1 and Blowfish with $2
Offline
Can anyone verify the /etc/shadow prefix for sha256 passwords?
I know MD5 starts with $1 and Blowfish with $2
Mine start with $5 (sha256).
Offline
Ah, mine too! That's fantastic, and I shall edit the wiki.
Offline
The wiki has been updated.
http://wiki.archlinux.org/index.php/SHA_Passwords (please unstub if you found it helpful)
Last edited by l33tunderground (2008-11-22 19:59:59)
Offline
Pages: 1