Sunday 7 July 2019

How to secure users password using php hashing API'S


Hello guys! on this tutorial i'm going to teach you guys how to secure and protect users password on your platform or website from dangerous intruders.


Using bcrypt is the currently accepted best practice for hashing passwords, but a large number of developers still use older and weaker algorithms like MD5 and SHA1. Some developers don’t even use a salt while hashing. The new hashing API in PHP 5.5 aims to draw attention towards bcrypt while hiding its complexity.

The new password hashing API make use of four simple functions

  • password_hash() : This is used to hash the password.
  • password_verify() : This is used to verify the password against its hash.
  • password_needs_rehash() : This is used when a password needs to be rehashed.
  • password_get_info() : This returns the name of the hashing algorithm and the various options used while hashing.
Below here is the php script codes used in this tutorial, you can copy the codes and practice with it. Don't forget to drop your questions on the comment section if you have any, and follow my youtube channel for more videos MultiSkillz Digital

No comments:

Post a Comment

Medical diagnosis system for hepatitis B

Project for final year students Medical diagnosis system for hepatitis B

Ad