From: Kurt Wall <kwall@kurtwerks.com>
To: linux-c-programming@vger.kernel.org
Cc: James Stevenson <mistral@stev.org>
Subject: Re: mcrypt ?
Date: Wed, 22 May 2002 09:08:51 -0400 [thread overview]
Message-ID: <20020522090851.A3571@marta> (raw)
In-Reply-To: <003901c2018d$388b6070$0cfea8c0@ezdsp.com>; from mistral@stev.org on Wed, May 22, 2002 at 01:35:56PM +0100
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."
next prev parent reply other threads:[~2002-05-22 13:08 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
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 [this message]
2002-05-23 9:48 ` James Stevenson
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20020522090851.A3571@marta \
--to=kwall@kurtwerks.com \
--cc=linux-c-programming@vger.kernel.org \
--cc=mistral@stev.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).