Hash password with PHP md5pass() function

Your password hash :  

Password :

For more secure hashing, consider using the PHP function ➠ password_hash()


<?php

function md5pass($str) {
	return md5($str);
	}

if( isset($_POST['submit']) && $_POST['pass'] <> "") {
	
	$password = $_POST['pass'];

	echo "<p>Your password : <code style='color: navy;'>" .
		md5pass($password) . "</code></p>";

} else {

	echo "<p>Your password : <code style='color: navy;'>" .
		"&nbsp;" . "</code></p>";	

}

?>

<form method="post" action="<?php echo $_SERVER['PHP_SELF']; ?>">

	<p>Password : <input name="pass" /></p>
	
	<p><input type="submit" name="submit" value="submit" /></p>

</form>

MD5 message-digest algorithm