Do all Linux distributions use the same cryptographic hash function?
If yes, is it provided with the kernel itself?
EDIT:- I refer to the function mainly used for storing user login passwords.
password
Do all Linux distributions use the same cryptographic hash function?
If yes, is it provided with the kernel itself?
EDIT:- I refer to the function mainly used for storing user login passwords.
Best Answer
No & no to your questions.
I'd take a look at the
crypt(3)
function for more info. Fromman crypt(3)
:You can check your pam setup to see whether you're using MD5 or DES:
And you can see in this systems
/etc/shadow
file that it's using MD5 as well:The codes you'll see in the
/etc/shadow
for each type of hashing:On Red Hat distros you can change this using the
authconfig
command.References