Reply to RE: [PHP] How to generate MD5 passwords

Your name:

Reply:


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)

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация