passwd
The
passwd
command is used to compute common
password hashes that are typically used for system passwords on
various Unix systems.
Use BSD’s MD5-based algorithm.
Use an Apache variant of the apr1 algorithm.
Suppress warning messages when passwords are truncated.
Specify the salt to use.
Specify the name of a file from which plaintext passwords should be read. Each line contains one password, and a hash will be computed for each.
Cause passwords to be read from stdin without
prompting or suppressing echo.
Cause both the plaintext password and the generated hash to be output in tabular form.