Complete.Org: Mailing Lists: Archives: freeciv-dev: August 2001:
[Freeciv-Dev] Re: Passwd auth with MD5 hash
Home

[Freeciv-Dev] Re: Passwd auth with MD5 hash

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: freeciv-dev@xxxxxxxxxxx
Subject: [Freeciv-Dev] Re: Passwd auth with MD5 hash
From: Bernd Jendrissek <berndj@xxxxxxxxxxx>
Date: Tue, 21 Aug 2001 12:29:56 +0200

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

In article <Pine.LNX.4.04.10108210212560.20552-100000@xxxxxxxxxxxxxxxxxxxxxxx> 
Trent Piepho <xyzzy@xxxxxxxxxxxxx> wrote:
>On Tue, 21 Aug 2001, Raimar Falke wrote:
>> I don't see the md5 method.
>
>It was in the call to crypt(), except my crypt manpage says it uses a
>variation of DES not md5.  Is crypt() portable to non-UNIX systems though?

IIRC glibc (note: *g*libc) crypt(3) has a feature where, if the first two
chars of salt are "$1" or somesuch, the algorithm used is MD5.

>The salt generation code looked like a mess to me.  My manpage says salt is
>just a two characters.  There is no need to mess with it so much either, just

Except when it starts with '$1' and you're using the GNU C library.

Bernd Jendrissek
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.4 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iD8DBQE7gjgd/FmLrNfLpjMRAocmAKCelZ4CwX99ndUuElEw6/Z/AS5aagCeKHWE
FTxzG61FqI4qJFcuq9pHgLc=
=brJ1
-----END PGP SIGNATURE-----


[Prev in Thread] Current Thread [Next in Thread]