Name

passwd

Synopsis

The passwd command is used to compute common password hashes that are typically used for system passwords on various Unix systems.

Options

-1

Use BSD’s MD5-based algorithm.

-apr1

Use an Apache variant of the apr1 algorithm.

-quiet

Suppress warning messages when passwords are truncated.

-salt salt

Specify the salt to use.

-in filename

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.

-stdin

Cause passwords to be read from stdin without prompting or suppressing echo.

-table

Cause both the plaintext password and the generated hash to be output in tabular form.

Notes

By default, the standard Unix crypt hash will be used, which limits the length of plaintext passwords to eight characters. The other two supported hash algorithms have no limit on password length.

Get Network Security with OpenSSL now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.