-5

I used a mysql database to create a user's registration form and in my sign up code, I did not specify the encryption type for password. How do I create a login form in php which requires password?

  • You really must attempt this by searching other SO answers or other sites on how to accomplish your issue. The community will not do your work for you! – Suraj Kothari Mar 01 '18 at 20:11

1 Answers1

0

Please use PHP's built-in functions to handle password security. If you're using a PHP version less than 5.5 you can use the password_hash() compatibility pack. It is not necessary to escape passwords or use any other cleansing mechanism on them before hashing. Doing so changes the password and causes unnecessary additional coding.

Jay Blanchard
  • 34,243
  • 16
  • 77
  • 119