Encryting password information parsed through URL

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
mjseaden
Forum Contributor
Posts: 458
Joined: Wed Mar 17, 2004 5:49 am

Encryting password information parsed through URL

Post 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
User avatar
dull1554
Forum Regular
Posts: 680
Joined: Sat Nov 22, 2003 11:26 am
Location: 42:21:35.359N, 76:02:20.688W

Post 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....
mjseaden
Forum Contributor
Posts: 458
Joined: Wed Mar 17, 2004 5:49 am

Post 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.
Illusionist
Forum Regular
Posts: 903
Joined: Mon Jan 12, 2004 9:32 pm

Post 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>
Post Reply