* mcrypt ?
@ 2002-05-21 12:54 James Stevenson
2002-05-21 14:28 ` Glynn Clements
0 siblings, 1 reply; 5+ messages in thread
From: James Stevenson @ 2002-05-21 12:54 UTC (permalink / raw)
To: linux-c-programming
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
^ permalink raw reply [flat|nested] 5+ messages in thread* Re: mcrypt ?
2002-05-21 12:54 mcrypt ? James Stevenson
@ 2002-05-21 14:28 ` Glynn Clements
2002-05-22 12:35 ` James Stevenson
0 siblings, 1 reply; 5+ messages in thread
From: Glynn Clements @ 2002-05-21 14:28 UTC (permalink / raw)
To: James Stevenson; +Cc: linux-c-programming
James Stevenson wrote:
> 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").
--
Glynn Clements <glynn.clements@virgin.net>
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: mcrypt ?
2002-05-21 14:28 ` Glynn Clements
@ 2002-05-22 12:35 ` James Stevenson
2002-05-22 13:08 ` Kurt Wall
0 siblings, 1 reply; 5+ messages in thread
From: James Stevenson @ 2002-05-22 12:35 UTC (permalink / raw)
To: linux-c-programming
> > 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
^ permalink raw reply [flat|nested] 5+ messages in thread* Re: mcrypt ?
2002-05-22 12:35 ` James Stevenson
@ 2002-05-22 13:08 ` Kurt Wall
2002-05-23 9:48 ` James Stevenson
0 siblings, 1 reply; 5+ messages in thread
From: Kurt Wall @ 2002-05-22 13:08 UTC (permalink / raw)
To: linux-c-programming; +Cc: James Stevenson
Scribbling feverishly on May 22, James Stevenson managed to emit:
>
> > > 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.
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
--
"I used to think I was indecisive, but now I'm not so sure."
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2002-05-23 9:48 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-05-21 12:54 mcrypt ? James Stevenson
2002-05-21 14:28 ` Glynn Clements
2002-05-22 12:35 ` James Stevenson
2002-05-22 13:08 ` Kurt Wall
2002-05-23 9:48 ` James Stevenson
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).