If I cat /etc/shadow
I can get the encrypted passwords of root and my user.
These passwords are the same (I know, bad security) for each account, but in /etc/shadow
they show up as being different encrypted strings.
Why? Are different algorithms used for each?
Best Answer
Separate users means a separate User ID, and therefore separate hashes will be involved with the algorithm.
Even a user with the same name, same password, and created at the same time will (with almost certain probability) end up with a different hash. There are other factors that help create the encryption.
If you want to look at a quick example here it may explain it better.