How Are Linux Passwords Hashed?
Contents See Help: Style for Reference. in Linux Distributions Login Passwords Are Commonly Hashed and Stored in the /Etc/Shadow File Using the Md5 Algorithm...
See Help:Style for reference. In Linux distributions login passwords are commonly hashed and stored in the /etc/shadow file using the MD5 algorithm. The security of the MD5 hash function has been severely compromised by collision vulnerabilities.
How does Linux use password hashes?
In Linux Passwords are not stored by encrypting with some secret key rather hash of the password is stored. So you need not to worry about key getting compromised nor the file which actually stores password (Hashed Password) getting stolen. To make storage more secure password are hashed with salt.
Must Read
How are Linux passwords encrypted?
Most Unicies (and Linux is no exception) primarily use a one-way encryption algorithm, called DES (Data Encryption Standard) to encrypt your passwords. This encrypted password is then stored in (typically) /etc/passwd (or less commonly) /etc/shadow.