md5pass()
functionYour password hash :
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;'>" . " " . "</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>