CodeIgniter密码加密和验证 [英] CodeIgniter Password Encryption And Validation

查看:213
本文介绍了CodeIgniter密码加密和验证的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用CodeIgniter,并创建一个网站的部分,用户需要登录。我一直在阅读关于存储密码作为MD5哈希和加密字符串盐,但我没有看到任何解密。

I'm using CodeIgniter, and am creating a section of the site where users need to be logged in. I have been reading about storing passwords as MD5 Hashes and encrypted strings with salts, but I don't see anything about decryption.

加密密码尝试的效率/安全性与储存验证时的加密方式相同吗?

Is it efficient/safe to encrypt password attempts the same way they were encrypted when they were stored to check for validation?

这是在PHP应用程序或使用CodeIgniter框架存储密码的推荐方法吗?

Is this the recommended way of storing passwords in a php application or using the CodeIgniter Framework?

推荐答案

auth库准备去(开箱即可),这里是一个链接到另一个问题,类似于这一个
http://www.stackoverflow.com/questions/346980/how-should-i-choose-an-authentication-library-for -codeigniter


note 我喜欢 Tank Auth 小组

There are already auth libraries "ready to go" (out of box one might say), here is a link to another question that is similar to this one http://www.stackoverflow.com/questions/346980/how-should-i-choose-an-authentication-library-for-codeigniter
note I like Tank Auth with "groups".

这篇关于CodeIgniter密码加密和验证的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆