|
Posted by "Martin B. Nielsen" on 07/30/05 04:14
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@freenet.de]
Sent: 30. juli 2005 03:03
To: php-general
Subject: [PHP] 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)
Navigation:
[Reply to this message]
|