谁能帮我找到codeigniter的最佳加密方法?
4 回答
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
here are two good libraries for creating encrypted password
codeigniter auth library like tank auth using PHPass for encrypting password
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.
我通常使用带有一些静态盐的 SHA1。