MD 5 Hasher in PHP

Go down

MD 5 Hasher in PHP

Post  cyberhunter on Sun May 25, 2008 10:31 pm


Add to index.php:

*************************************

Code:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>MD5 Hasher</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>

<body>
<p align="center">
<h1 align="center">MD5 Hasher</h1>
<p>What would you like MD5 hashed? </p>
<form name="form1" method="post" action="md5er.php">
  <p>
    <input type="text" name="unencrypted">
  </p>
  <p>
    <input type="submit" name="Submit" value="Submit">
  </p>
</form>
<p>
</body>
</html>

*************************************

Add to md5er.php

*************************************

Code:

<?php
$encrypted = md5("$unencrypted");
?>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>

<body>
<p>Your origional text: <?php echo "$unencrypted"; ?></p>
<p>Your md5 hashed text: <?php echo "$encrypted"; ?></p>
<br>
<br>
</html>

************************************
avatar
cyberhunter
Info Cracker
Info Cracker

Posts : 201
Join date : 2008-03-12
Age : 34
Location : In your computer

View user profile http://www.infofreakz.co.cc

Back to top Go down

Back to top


 
Permissions in this forum:
You cannot reply to topics in this forum