Page 1 of 1

Encryting password information parsed through URL

Posted: Thu Mar 18, 2004 4:47 pm
by mjseaden
Hi All,

I'm passing a username and password via the URL (standard parameter system), however for security reasons I want to encrypt the password in the URL and decrypt it after $_GET(ing) it.

Can anyone tell me what to do, and how secure that would be?

Many thanks

Mark

Posted: Thu Mar 18, 2004 5:35 pm
by dull1554
let me see if i get u right, you are gethering a pass and username through a form and submiting data through the Get array,

why not use post, but then u can use md5() hashing to encrypt your pass/uname. u can't unencrypt them but to compare that to something else u just md5() the thing your comparing with....

Posted: Thu Mar 18, 2004 5:43 pm
by mjseaden
How do I 'post' the vars? Normally I use $_POST when obtaining a value given by an HTML control on the previous page.

Posted: Thu Mar 18, 2004 7:06 pm
by Illusionist
if your using a form, int he form method instead of having get, put post:

Code: Select all

<form action="page.php" method="POST">
....
</form>