Warning: file_get_contents(/data/phpspider/zhask/data//catemap/6/codeigniter/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Php 如何在我的注册表中保护我的密码?_Php_Codeigniter - Fatal编程技术网

Php 如何在我的注册表中保护我的密码?

Php 如何在我的注册表中保护我的密码?,php,codeigniter,Php,Codeigniter,如何使用salt和hash技术保护“注册表”中的密码? 以及salt和hash技术是如何工作的?可以在 如果你想了解更多关于密码散列和密码盐析的知识,可以在上找到一篇非常简洁的文章。关于如何使用codeigniter盐析密码的快速教程 如果你想了解更多关于密码散列和密码盐析的信息,这里有一篇非常简洁的文章。看看PHP的文档 此处的代码片段: // let the salt be automatically generated $password = crypt('mypassword');

如何使用salt和hash技术保护“注册表”中的密码?
以及salt和hash技术是如何工作的?

可以在


如果你想了解更多关于密码散列和密码盐析的知识,可以在上找到一篇非常简洁的文章。

关于如何使用codeigniter盐析密码的快速教程


如果你想了解更多关于密码散列和密码盐析的信息,这里有一篇非常简洁的文章。

看看PHP的文档

此处的代码片段:

// let the salt be automatically generated
$password = crypt('mypassword'); 

if (crypt($user_input, $password) == $password)
{
   echo "Password verified!";
}
像在另一篇文章中一样,将SHA-1与固定salt一起使用并不是最好的实现。可变盐是一种方法


不幸的是,默认算法是什么取决于您的PHP安装,因此您需要检查它是否仍然被认为是合理安全的

此处的代码片段:

// let the salt be automatically generated
$password = crypt('mypassword'); 

if (crypt($user_input, $password) == $password)
{
   echo "Password verified!";
}
像在另一篇文章中一样,将SHA-1与固定salt一起使用并不是最好的实现。可变盐是一种方法

不幸的是,默认算法是什么取决于您的PHP安装,因此您需要检查它是否仍然被认为是合理安全的