form id="form1" name="form1" method="post" action=""> <input type="text" name="anv" /> </p> <p>Email: <input name="email" type="text" id="email" /> </p> <p>Lösenord: <input name="losen" type="password" id="losen" /> <input name="ranger" type="submit" id="ranger" value="Register" /> </p> </form>
Posted 22 August 2006 - 10:41 AM
Posted 22 August 2006 - 10:44 AM
I have seen many scripts that process the data posted from a form and do md5 on recipet of the info - which for me completely defeats the object. Sure the string shoudl be encrypted client side (if js is on!) prior to being sent over the network......
Posted 22 August 2006 - 10:49 AM
$a = md5($a);
then insert $a into databse
Posted 22 August 2006 - 10:53 AM
//Translate from md5
Well you dont need to.
In your database you store the encrytped password, then upon checking you take the users entered password, md5 it and check the md5 against the md5 that you stored in your database...Matched? Great then proceed.
blah blah select blah where blah = $md5thepassword
If at first you don't succeed....stop using ASP and get onto PHP
Posted 22 August 2006 - 11:13 AM
What ever the value
$a = "";
$a = "this is a long sentance, but I cant think of anything to type";
with using md5(), the value is 32 chars long (32 bits)
One Way Encryption
Means, you can not get a MD5 Encrypted string, and translate it back to what it was.
Although rumours have spread that hackers can. But think to yourself, Is your information Soo Important that a hack wants to hack the enctryption.
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users