May 29, 2024, 08:31:47 AMLatest Member: HelenRurse
BoutCheetah » Forum » Other » Spam » PHP Question SHA256 --> String

PHP Question SHA256 --> String

Started by EnergyCell2, June 03, 2014, 06:35:04 AM

Previous topic - Next topic

EnergyCell2

I'm not sure if i'm doing this right
$password = mysql_real_escape_string(hash('sha256',$_POST['password']));
That should post the string value to the SQL database, if i'm correct, but i need help for this one
$password = mysql_real_escape_string($_POST['password']));
If i remove the hash(''sha256), would it post the string to the database instead of the SHA-256?
Yes. I'm xhalo7. I guess you'll have to deal with that.
Ban me. I don't give a shit. I'll make my return one day.

Cooky


EnergyCell2

Thanks for that, i figured out what i did wrong though.



Nothing
Yes. I'm xhalo7. I guess you'll have to deal with that.
Ban me. I don't give a shit. I'll make my return one day.

KillerPig


IGN: KillerPig (H) | NinjaPig (H) | ShadowPig (H) | KillerPig (L)
LVL: 225 | 225 | 225 | 44
GUILD: ZeaL | CourageCrew | Lil Optis | -



Iridion



Quote from: Madproxyes because Iri & Kp can change the rules!
thats how we roll maddie

Copyright © ZylonGaming 2009 - 2024
-Terms of Use-