Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/ruby-on-rails/55.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

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/linq/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
Ruby on rails Authlogic密码为';数据库中没有加密吗?_Ruby On Rails_Basic Authentication - Fatal编程技术网

Ruby on rails Authlogic密码为';数据库中没有加密吗?

Ruby on rails Authlogic密码为';数据库中没有加密吗?,ruby-on-rails,basic-authentication,Ruby On Rails,Basic Authentication,我开始使用Authoric对RoR应用程序进行身份验证 我注意到,即使我正在使用: acts_as_authentic do |c| c.crypto_provider = Authlogic::CryptoProviders::Sha512 end 密码在我的数据库(postgres)中未加密。如果您正在创建一个新的应用程序,则没有理由使用Sha512-它是为了与使用旧密码的应用程序兼容。改用默认的SCrypt。注:我不知道。。。但是如果我猜的话,我会说它实际上可能不会对您的本地开发

我开始使用Authoric对RoR应用程序进行身份验证

我注意到,即使我正在使用:

acts_as_authentic do |c|
    c.crypto_provider = Authlogic::CryptoProviders::Sha512
end

密码在我的数据库(postgres)中未加密。

如果您正在创建一个新的应用程序,则没有理由使用
Sha512
-它是为了与使用旧密码的应用程序兼容。改用默认的SCrypt。注:我不知道。。。但是如果我猜的话,我会说它实际上可能不会对您的本地开发人员数据库进行加密。。。(可能值得阅读文档,看看是否是这样)@max是的,这是一个新的应用程序。我要试着咆哮一下。我希望在数据库中散列密码,并期望authlogic比较散列