RE: [PHP] How to generate MD5 passwords

From: Date: Sat, 30 Jul 2005 01:14:35 +0000
Subject: RE: [PHP] How to generate MD5 passwords
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-219650@lists.php.net to get a copy of this message
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)

« previous php.general (#219650) next »