Home » Interview Question » Cake Php » How to implement blowfish hashing for passwords in cakephp?

How to implement blowfish hashing for passwords in cakephp?

How to implement blowfish hashing for passwords in cakephp?
You can't be use blowfish hashing if you have also use another type of password hashing in php.so if want to use use blowfish password hashing don't use another type of hashing.

To use password hashing follow below steps

Steps 1: First use password hashing components and add in app controller files

Steps 2: To generate a hashing password we use the password hasher class in your model(just like user.php)

Steps 3: Now to authenticate your UsersController login action. do not required any changes.CakePhp now using blowfish password hashing.only add below line in your login action controller.

And our login action is implemented below.

, , ,

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code class="" title="" data-url=""> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre class="" title="" data-url=""> <span class="" title="" data-url="">