[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: password encryption




Danny Sauer said:
> Sometimes I'll put a little time in and use
>  echo password | perl -le 'print crypt($_, (A..Z)[rand 25].(A..Z)[rand 25])';

How about

    perl -MString::Random=random_string -lne \
        'print crypt($_, random_string("ss"));'

(That's exactly what I wrote the module for...)

Steve
-- 
steve@silug.org           | Linux Users of Central Illinois
(618)398-7320             | Meetings the 4th Tuesday of every month
Steven Pritchard          | http://www.luci.org/ for more info

--
To unsubscribe, send email to majordomo@luci.org with
"unsubscribe luci-discuss" in the body.