[BusyBox] [New Applet] cryptpw

Steven Scholz steven.scholz at imc-berlin.de
Wed Mar 24 17:44:52 UTC 2004


Thomas Lundquist wrote:

> Very simple applet:
> 
> cryptpw -a <algorithm> <text>
> 
> basically, passwd that outputs the encrypted string instead of editing.
> 
> same as htpasswd in apache.

Is that the same what "mkpasswd" does?

#:~> mkpasswd --help
Usage: mkpasswd [OPTIONS]... [PASSWORD [SALT]]
Crypts the PASSWORD using crypt(3).

       -H, --hash=TYPE       select hash TYPE
       -S, --salt=SALT       use the specified SALT
       -P, --password-fd=NUM read the password from file descriptor NUM
                             instead of /dev/tty
       -s, --stdin           like --password-fd=0
       -h, --help            display this help and exit
       -V, --version         output version information and exit

If PASSWORD is missing then it is asked interactively.
If no SALT is specified, a random one is generated.
If TYPE is missing available algorithms are printed.

Steven



More information about the busybox mailing list