This script will convert a password in to an MD5 hash:

<?php
//check if the form has been submitted
if(isset($_POST['md5me'])) {
	//MD5 encode the submitted content
	$md5ed = md5($_POST['md5me']);
}
?>

 <!--//**HTML form below**//-->
<form action="#" method="post">
    <label for="md5me">MD5 Me:</label>
    <input name="md5me" id="md5me" type="text" />
    <input type="submit" value="Create MD5 Hash" />
</form>

<p>MD5 Value: <strong><?php echo $md5ed;?></strong></p>

A working example of this can be found at https://tech.chrisapp.co.uk/PHP/md5.php