Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Hashing a password

Tags:

cakephp-2.0

I have built a login form but not a sign up form so i am putting the users details directly into the sql database.
I have found out that cakephp automatically hashes the password when the user tries to login, but at the moment I cant login because the password in the database is not hashed.
how does cakephp hash the passwords?

My security salt is Dhhfei38fhDg37dg6Dg208Dh3h380Hrjd3

Could you please walk me through what it does?

like image 361
Chris Avatar asked Dec 03 '11 22:12

Chris


1 Answers

Hashed passwords in cakephp are created by:

$hashedPasswords = Security::hash($yourPass, NULL, true);

Check the cakephp manual for more info

like image 125
Sudhir Bastakoti Avatar answered Nov 09 '22 12:11

Sudhir Bastakoti