Can I change md5() to password_hash() ? Help me please! The structure of MySql is written pasword VARCHAR(32) What value should I put pasword VARCHAR(?) If password_hash() ?


 <?php function register_user($register_data) { ... $register_data['password'] = md5($register_data['password']); ... } function login($phone, $password) { ... $password = md5($password); ... } ?> 

    1 answer 1

    Can. Documentation for password_hash () recommends using a 255 character field.

    • one
      Yes, I think that will be enough for a long time :-) - Vladimir Martyanov
    • one
      If you write more clearly for the rest, you can even try to help. - Vladimir Martyanov