Skip to contentSkip to conversation

mcrypt ?

DISCUSSION James Stevenson 3 participants 5 messages May 21, 2002 – May 23, 2002

lore
Share & tools
lore
#0 lore raw

Hi,

is there such a function in a linux c libary
for the md5 crypt the same as crypt() but
for the more modern shadow passwords

if so.
which libary ?

thanks
James

#1 lore raw
Quoted 6 lines · James Stevenson

is there such a function in a linux c libary
for the md5 crypt the same as crypt() but
for the more modern shadow passwords

if so.
which libary ?

The "crypt" add-on for glibc 2.x supports MD5 password hashes, as well as DES. The details are in the "libc" Info file (search for "crypt").

Signature · 1 line
Glynn Clements <[email protected]>
#2 lore raw
Quoted 10 lines
Quoted 7 lines

is there such a function in a linux c libary
for the md5 crypt the same as crypt() but
for the more modern shadow passwords

if so.
which libary ?

The "crypt" add-on for glibc 2.x supports MD5 password hashes, as well as DES. The details are in the "libc" Info file (search for "crypt").

unfortunatly i think my info file is out of date. though i do have glibc 2.x i dont suppose you have an exmaple of how it is used to generate md5 password
hashes instead of des or any idea of how to get it to work like that.

thanks
James

#3 lore raw

Scribbling feverishly on May 22, James Stevenson managed to emit:

Quoted 8 lines
Quoted 8 lines
Quoted 7 lines

is there such a function in a linux c libary
for the md5 crypt the same as crypt() but
for the more modern shadow passwords

if so.
which libary ?

Quoted 7 lines
Quoted 2 lines

The "crypt" add-on for glibc 2.x supports MD5 password hashes, as well as DES. The details are in the "libc" Info file (search for "crypt").

unfortunatly i think my info file is out of date. though i do have glibc 2.x i dont suppose you have an exmaple of how it is used to generate md5 password
hashes instead of des or any idea of how to get it to work like that.

When using crypt, one of the functions of the SALT parameter is to select the encryption algorithm. If SALT consists of "$1$" followed by up to 8 characters and optionally ending with "$", the MD5-based algorithm is used. If SALT consists of two initial alpha-numeric characters, followed by 11 more, crypt selects the DES-based algorithm.

Kurt

Signature · 1 line
"I used to think I was indecisive, but now I'm not so sure."
#4 lore raw

Hi

thanks all for your help i seemed to have now
solved my problem.

James

Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 6 lines

is there such a function in a linux c libary
for the md5 crypt the same as crypt() but
for the more modern shadow passwords

if so.
which libary ?

The "crypt" add-on for glibc 2.x supports MD5 password