On Thu, Jun 08, 2000 at 10:25:44AM +0530, Raju Mathur wrote:
> Hi Kedar, Arun,
> 
> On my system my script produces passwords indistinguishable from those 
> in /etc/shadow, upto the $1$<salt>$.

You're right. 

>     Arun> Your script = md5 + base64 encoding

That's incorrect. As you said, your script does the same thing as
/etc/shadow.

Here's one more way of doing the same:

$ python
Python 1.5.2 (#2, Feb 24 2000, 21:47:22)  [GCC 2.95.2 19991024 (release)] on freebsd4
Copyright 1991-1995 Stichting Mathematisch Centrum, Amsterdam
>>> import crypt
>>> crypt.crypt("foo", "bar")
'$1$bar$gJTJurciWk9pIaPpodyiw.'

        -Arun

-----------------------------------------------------------------------
Check out the 'What to do before posting to the list' site
for a list of things to try before posting.  The site is
at http://botsie.tripod.com/beforeposting/

Reply via email to