Switch to Bing in English
Copilot
Your everyday AI companion
About 48,800 results
    Upvotes18Top Answeredited Mar 7, 2022 at 13:01

    The function password_hash() is just a wrapper around the function crypt(), and shall make it easier to use it correctly. It takes care of the generation of a safe random salt, and provides good default values.

    The easiest way to use this function would be:

    $hash = password_hash($password, PASSWORD_DEFAULT);

    That means, the function will hash the password with BCrypt (algorithm 2y), generates a random salt, and uses the default cost (at the moment this is 10). These are good default values, particularly i would not recommend generating the salt of...

    Content Under CC-BY-SA license
    Was this helpful?
  1. Generating Password Hash In PHP 5.5 And Setting Cost Option

  2. A little guideline on how to use the PHP 5.5 password ...

  3. GitHub - superandrew/phpPasswordHashingLib: PHP 5.5-like ...

  4. People also ask
  5. Hashing Passwords with the PHP 5.5 Password Hashing API

  6. Safe Password Hashing - Zend

  7. How to use the PHP 5.5 password hashing functions – Dev Metal

  8. Notes on password & hashing salting in upcoming PHP ...

  9. PHP Master | What’s New in PHP 5.5 - SitePoint

  10. Some results have been removed
By using this site you agree to the use of cookies for analytics, personalized content, and ads.Learn more about third party cookies|Microsoft Privacy Policy