[Subject Prev][Subject Next][Thread Prev][Thread Next][Subject Index][Thread Index]

Re: useradd and passwd

>But how do I generate that encrypted password from a simple password in a
>shell script or a perl script.
>The crypt function mentioned is a c library function ?

under perl there is a crypt function that works like the c library function
(and if i remember correctly, it has similar calling conventions..) also
most of the newer systems use an md5 encryption system. You can get perl
modules that have an implementation of the md5 algorithm..
    /\ |\/| /\ |3 /\ r