what is an alternative to password_hash() for (PHP 5 < 5.5.0)?

前端 未结 2 1249
情话喂你
情话喂你 2020-12-10 12:47

According to manual: password_hash this function can be used for (PHP 5 >= 5.5.0)

After searching for an alternative way I found this simple function

2条回答
  •  情话喂你
    2020-12-10 13:22

    For versions of PHP > 5.3.7 but prior to 5.5.0, you can find an implementation of password_hash at https://github.com/ircmaxell/password_compat written by the same person that developed the version now implemented in PHP 5.5.0+ and deliberately intended to provide backward compatibility

提交回复
热议问题