-3

谁能帮我找到codeigniter的最佳加密方法?

4

4 回答 4

3

hi you can use md5 php function to encryt password string while login you have to check hash of string with hash saved in database there is one good post for password encryption you can read that

stackoverflow post

here are two good libraries for creating encrypted password

PHP Password library

PHPass

codeigniter auth library like tank auth using PHPass for encrypting password

于 2013-01-15T06:58:13.260 回答
1

In few months a new php password API will be available.

https://gist.github.com/3707231

Its greatest advantage is that it hugely simplifies existing hashing APIs while still maintaining a high level of security.

于 2013-01-15T21:03:58.990 回答
1

我通常使用带有一些静态盐的 SHA1。

于 2013-01-15T11:19:19.163 回答
0

使用来自 github 的 password_compat。

实现了新的 PHP 5.5 密码逻辑,但您现在可以将它用于旧的 PHP 版本

链接:GITHUB PASSWORD_COMPAT

于 2013-04-08T15:03:47.880 回答