passwd is a tool on most
Unix and
Unix-like operating systems used to change a user's
password. The password entered by the user is run through a
key derivation function to create a
hashed version of the new password, which is saved. Only the hashed version is stored; the entered password is not saved for security reasons.