password utils: improve --help, make DEFAULT_PASSWD_ALGO visible if CHPASSWD
authorDenys Vlasenko <vda.linux@googlemail.com>
Fri, 20 Jan 2017 18:47:49 +0000 (19:47 +0100)
committerDenys Vlasenko <vda.linux@googlemail.com>
Fri, 20 Jan 2017 18:47:49 +0000 (19:47 +0100)
commit9731ca7611e19827702eb8c690fb6c3b37403319
tree703d8fbaf75e872fca83ca1e57e830eaeff1aace
parent38972a8df1df970a5878bbd7fc5ef6259f1168ab
password utils: improve --help, make DEFAULT_PASSWD_ALGO visible if CHPASSWD

Was:
    $ cryptpw --help
    ...
    Print crypt(3) hashed PASSWORD

        -P,--password-fd=N Read password from fd N
        -m,--method=TYPE Encryption method
        -S,--salt=SALT

User: "What methods exist? which one os default?"

Now:
    Print crypt(3) hashed PASSWORD

        -P,--password-fd N Read password from fd N
        -m,--method TYPE des,md5,sha256/512 (default des)
        -S,--salt SALT

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
include/usage.src.h
loginutils/chpasswd.c
loginutils/cryptpw.c
loginutils/passwd.c