[53321] in Cypherpunks

home help back first fref pref prev next nref lref last post

Re: Using crypt()

daemon@ATHENA.MIT.EDU (Bill Stewart)
Sat Apr 6 02:27:01 1996

Date: Fri, 05 Apr 1996 22:47:32 -0800
To: Eric Eden <erice@internic.net>
From: Bill Stewart <stewarts@ix.netcom.com>
Cc: cypherpunks@toad.com

At 01:47 PM 4/4/96 -0400, Eric Eden <erice@internic.net> wrote:
>I'm testing a encryption program that includes use of crypt().  
Out of curiousity, why use crypt() instead of, say, MD5, which is
stronger and allows arbitrarily long passphrase input?  You could 
add a crypt()-like salt to it as well, if that helps.
And just as crypt() lets you distinguish between input and output
based on length and character set, if you use MD5, you know the
output is 128 bits, rendered either as raw bits or 32 hexes
depending on your program environment.

With crypt(), for users who don't remember their passwords, you can
run crack to try and recover them.  This doesn't work, of course,
if your stored "encrypted password" is really an unencrypted
non-13-byte string which wouldn't ever be the output of crypt().
MD5, on the other hand, allows enough passphrase space that a brute force
search would take much longer.


home help back first fref pref prev next nref lref last post