Crypting
I never really understood how to make php encrypt passwords into a mysql database. Could someone please explain for me? Thankyou -- and sorry if this is in the wrong forum.
Dream until your dreams come true. For those with wings fly to your dreams.
Era Creations: What games were meant to be
necrotic posted this at 01:09 — 8th October 2002.
He has: 296 posts
Joined: May 2002
I believe you can use the md5($string) function... that's how vB does it. Just insert into the database with md5($password) and decode it the same way. I might be wrong though.
PHP.net -> MD5()
[James Logsdon]
Mark Hensler posted this at 04:00 — 8th October 2002.
He has: 4,048 posts
Joined: Aug 2000
When creating the password, send the user the un-encrypted password. Then store the encrypted password in a DB. When checking a password, encrypt the password provided by the user (prolly via form submission) against the previosly encrypted password in the DB. You're basically compairing two encrypted strings.
Mark Hensler
If there is no answer on Google, then there is no question.
Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.