[ircd-ratbox] mkpasswd MD5 question

Lee H lee at leeh.co.uk
Mon Jul 30 18:41:10 UTC 2007

On Mon, Jul 30, 2007 at 02:26:24PM -0400, Andrew James wrote:
>    I am working on creating a php script that uses an SQL database with my
>    opers information (users/pass) saved in it. passwords are generated using
>    mkpasswd -m
>    My knowledge of C is extremely limited, so I was hoping someone could
>    point me in the right direction.
>    I'm just curious how the md5 passwords are generated so I can create a php
>    function that can read them and/or create them.
>    I am aware its not a direct MD5 hash, i'm assuming its salted somehow..

mkpasswd uses the crypt() function, which is also available natively in PHP.

See: www.php.net/crypt


-                 Lee H // anfl
-        I code, therefore I break things.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : http://lists.ratbox.org/pipermail/ircd-ratbox/attachments/20070730/f32e2983/attachment.pgp 

More information about the ircd-ratbox mailing list