[new applet] Cryptpw.

Rob Landley rob at landley.net
Tue Jun 13 19:11:28 UTC 2006


On Sunday 11 June 2006 6:56 am, Thomas Lundquist wrote:
> I've submitted this one before but got a "no, port mkpasswd" but later
> at least Tito agreed that it was bloated.
>
> So, i've remade the patch for Tito's redo of passwd and here it is. very
> simple and used for:
>
> CRYPTED=`cryptpw -a md5 $CLEAR`
>
> in a startup script which means it can't really bomb out so it does not
> use obscure since it prints errors to STDOUT (is that really a good /
> right thing?)

Since ps is viewable by everybody, having cleartext passwords on the command 
line is considered a bad thing.  The standard thing to do is to pipe the 
password into stdin.

> Thomas

Rob
-- 
Never bet against the cheap plastic solution.



More information about the busybox mailing list