Re: Re: encryption algs
From: Kevin Conaway (kevin.conaway_at_gmail.com)
Date: Thu, 3 Feb 2005 08:33:37 -0500 To: BoI base <firstname.lastname@example.org>
I am fairly sure thats how it works.
Read the post by Ghaith Nasrawi in this thread for an explanation of
what the salt does.
On Thu, 3 Feb 2005 13:20:03 +0300, BoI base <email@example.com> wrote:
> KC> As far as I can tell, here is how crypt() works:
> KC> crypt(salt,plaintext) -> salt+HASH(plaintext)
> KC> It takes a two character salt and a plaintext. For this example lets use:
> KC> salt = 'AA';
> KC> plaintext = 'kevinconaway';
> KC> The digest that crypt() returns consists of the salt appended with the
> KC> digest of the first 8 bytes of the plaintext..
> KC> So the digest will be 'AA' + HASH('kevincon')
> Are you sure? And what the role of salt in your scheme?
> HASH('kevincon') is constant. So, we have crypt() results:
> where '???????????' is the same string for both salts/
> KC> where HASH is DES or MD5 depending on how the implentation of crypt()
> KC> (the GNU implementation allows you to use MD5 by passing in a special
> KC> salt).
> Could you send me implementation of crypt() on C/C++ (maybe from
> Linux sources)?
> Best regards, Xanders mailto:firstname.lastname@example.org