Encrypting a password
Gerald Carter
gcarter at valinux.com
Sun Dec 3 02:11:22 GMT 2000
Jelmer Vernooij wrote:
>
> Hello,
>
> I am trying to encrypt a password, using the
> SMBencrypt function from the smbval library. I only
> wonder what the 'c8' variable (Encrypt_Key) is for. I
> looked in the code and found out it is received from
> the server.
>
> Is this really necessary, is it static or can I just use a
> 'random' value?
Jelmer,
It sounds like the c8 you are referring to is the
eight byte challenge send from the server during
the negprot response. SO this begs the question
of what you are trying to generate? The challenge/response
is used for authentication, not to generate the LanMan/NT hash.
Cheers, jerry
----------------------------------------------------------------------
/\ Gerald (Jerry) Carter Professional Services
\/ http://www.valinux.com/ VA Linux Systems gcarter at valinux.com
http://www.samba.org/ SAMBA Team jerry at samba.org
http://www.plainjoe.org/ jerry at plainjoe.org
"...a hundred billion castaways looking for a home."
- Sting "Message in a Bottle" ( 1979 )
More information about the samba-technical
mailing list