This question already has an answer here:
Is there a specific location where the passwords are stored ?
Is it depending on which version is used ?
Are they salted ?
This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.
Linux passwords are stored in the
From what I recall, the algorithms supported are
Passwords in unix were originally stored in
The password are salted and hashed. The default formats are MD5-crypt, bcrypt, sha256-crypt, sha512-crypt, and for historical reasons DES (note DES only allows 8-byte passwords). Note, sha512-crypt is typically involves 5000 rounds of SHA512-ing the password and the number of rounds is configurable.
For more info consult