PHP Encryption Question
Ok, so let's say I have the following
Code:
<form id="form1" name="form1" method="post" action="" enctype="application/x-www-form-urlencoded">
<label>
<input type="password" name="pass" id="pass" />
</label>
<label>
<input type="submit" name="submit" id="submit" value="Submit" />
</label><br>
<? if (isset($_POST["submit"]) && preg_match("/</", $_POST['pass']) == "0") {echo md5($_POST['pass']);} ?>
</form>
The question I have is how to encrypt the variable for the "pass" field during post.
If I have a network sniffer, this shows the password completely as text. I am fairly positive there is a method for encrypting prior to post, but am not aware/familiar of it yet. Help appreciated.
- Ben
Last edited by Falkon303; 04-14-2009 at 09:48 PM.
document.write is document.wrong
Bookmarks