PWHASH(1) | General Commands Manual | PWHASH(1) |
pwhash | [-km] [-b rounds] [-S rounds] [-s salt] [-p | string] |
The options are as follows:
If no string is specified, pwhash reads one string per line from standard input, encrypting each one with the chosen algorithm from above. In the event that no specific algorithm is given as a command line option, the algorithm specified in the default class in /etc/passwd.conf will be used.
For MD5 and Blowfish a new random salt is automatically generated for each password.
Specifying the string on the command line should be discouraged; using the standard input is more secure.
October 16, 2009 | NetBSD 6.1 |