RE: How to generate MD5 passwords

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Are you maybe looking for something like this:

<?
$passwords = "test";
$pass = md5($passwords);
echo $pass;
?>

The above will output: 098f6bcd4621d373cade4e832627b4f6 as MD5 hash value.
For more info, http://se2.php.net/manual/en/function.md5.php

Best regards,
Martin

-----Original Message-----
From: Michelle Konzack [mailto:linux4michelle@xxxxxxxxxx] 
Sent: 30. juli 2005 03:03
To: php-general
Subject:  How to generate MD5 passwords

Hello *,

I like to generate md5 password but I have not found a command
or something like this to generate it.  Curently I am using

    $PASSMD5=exec("echo $PASSCLEAR" |md5sum")

Is there a better way ?

Greetings
Michelle

-- 
Linux-User #280138 with the Linux Counter, http://counter.li.org/
Michelle Konzack   Apt. 917                  ICQ #328449886
                   50, rue de Soultz         MSM LinuxMichi
0033/3/88452356    67100 Strasbourg/France   IRC #Debian (irc.icq.com)

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux