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:
To colour code your own PHP paste it here: