Jump to content

correct use of hash?


dadamssg

Recommended Posts

im trying to come up with some of hash value based upon two values...im not real sure if hash() takes two and jumbles them up and spits out some hash. thats what i want. so anyways ive made these variables which work

 

$username = clean_data($_POST['username']);

$password = clean_data($_POST['password']);

 

i want to use them like this

 

$confirmhash = hash('$username', '$password');

 

so then i can put that hash in my db...will this work or am i doing something completely wrong?

Link to comment
https://forums.phpfreaks.com/topic/151186-correct-use-of-hash/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.