The source of md5_password.php (click to demo the file) viewed 1215 times.

If I wrote this code, then it is licensed under the GPL. If someone else wrote it, then please ask them if you want to use the code.


Encrypt a password to MD5 format:<br>
<form name="form1" method="post" action="">
    <table border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td>Password:</td>
        <td><input type="password" name="password1"></td>
      </tr>
      <tr>
        <td>Password again:</td>
        <td><input type="password" name="password2"></td>
      </tr>
    </table>
        <input type="submit" name="Submit" value="Submit">
</form>
<?php 
if ($_POST["Submit"] == true) {
    if (
$_POST["password1"] != $_POST["password2"]) {
    echo 
"Your passwords do not match!";
    exit;
    }
    
    echo 
"Your password in MD5 format: <b>";
    
$password md5($_POST["password1"]);
    echo 
$password;
}
?>

If you want to have a look at the source code, chose a file from this list:

ip.txt
(Demo Script)
userdetails.php
(Demo Script)
perl_smtp_email.php
(Demo Script)
server_mon.php
(Demo Script)
floor_time.php
(Demo Script)
url_verify.php
(Demo Script)
birthday.php
(Demo Script)
md5_password.php
(Demo Script)
email.php
(Demo Script)
char_limit.php
(Demo Script)
time.php
(Demo Script)
htpasswd_maker.php
(Demo Script)
title_case.php
(Demo Script)
password.php
(Demo Script)
phpself.php
(Demo Script)
smarty.php
(Demo Script)
phpinfo.php
(Demo Script)
ip_monitor.php
(Demo Script)
html.php
(Demo Script)
pad_test.php
(Demo Script)
mysql_backup.php
(Demo Script)
cookies.php
(Demo Script)
unix_time.php
(Demo Script)
convert_link.php
(Demo Script)

To colour code your own PHP paste it here: