BoutCheetah

Other => Spam => Topic started by: EnergyCell2 on June 03, 2014, 06:35:04 AM

Title: PHP Question SHA256 --> String
Post by: EnergyCell2 on June 03, 2014, 06:35:04 AM
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?
Title: Re: PHP Question SHA256 --> String
Post by: Cooky on June 03, 2014, 09:46:21 AM
(http://puu.sh/9d7s2/85558773c6.gif)
Title: Re: PHP Question SHA256 --> String
Post by: EnergyCell2 on June 03, 2014, 10:20:02 AM
Thanks for that, i figured out what i did wrong though.



Nothing
Title: Re: PHP Question SHA256 --> String
Post by: KillerPig on June 03, 2014, 10:33:36 PM
/\/ 1 6
Title: Re: PHP Question SHA256 --> String
Post by: Iridion on June 04, 2014, 04:07:57 PM
isnt that deprecated