LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Security (https://www.linuxquestions.org/questions/linux-security-4/)
-   -   /etc/shadow hash changes? (https://www.linuxquestions.org/questions/linux-security-4/etc-shadow-hash-changes-693454/)

Oxagast 12-28-2008 10:18 AM

/etc/shadow hash changes?
 
Hi, I was just messing around, and I realized that the new accounts I've created on my system have a much longer hash, and begin with $6$ instead of $1$ like my older useraccounts that havn't had their passwords changed in awhile. What's the reason for this, and what does it mean? What do the cooresponding $1$ and $6$ mean, and whatever other values might be there?

ilikejam 12-28-2008 12:07 PM

Hi.

The $X$ string tells crypt what hash to use - $1$ is MD5. $5$ and $6$ are SHA, presumably SHA-1 and SHA2 respectively, although I can't find any documentation which is particularly helpful (googleing for strings like $6$ doesn't get much joy).

Edit: Found this: http://en.wikipedia.org/wiki/Crypt_(...brary_Function

Dave


All times are GMT -5. The time now is 12:13 AM.