[BusyBox] [New Applet] cryptpw
Thomas Lundquist
lists at zelow.no
Wed Mar 24 20:47:16 UTC 2004
On Wed, Mar 24, 2004 at 06:44:52PM +0100, Steven Scholz wrote:
>
> Is that the same what "mkpasswd" does?
Looks like you are right.
> #:~> 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.
Not as many features as this but if mkpasswd is a better name I'll
change it but I don't think I'll incorporate all those features.
[root at hvit loginutils]# size *.o
text data bss dec hex filename
196 0 0 196 c4 cryptpw.o
3232 116 288 3636 e34 getty.o
1844 0 0 1844 734 login.o
3256 0 128 3384 d38 passwd.o
[root at hvit loginutils]#
it's not exactly big right now. (but I wouldn't bet on it being possible
to make it even smaller.)
Thomas.
More information about the busybox
mailing list