在本地运行登台数据​​库时出现OpenSSL :: Cipher :: CipherError [英] OpenSSL::Cipher::CipherError when running staging DB on local

查看:454
本文介绍了在本地运行登台数据​​库时出现OpenSSL :: Cipher :: CipherError的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我只是将登台服务器数据库复制到我的开发中,现在无论何时加载任何数据,我都会收到此错误

I just copied our staging server database into my development, and now I receive this error whenever I load any data

OpenSSL::Cipher::CipherError

在以下代码段出现

credentials = encrypted_credentials.inject({}) do |hash, (key, value)|
   hash[key] = AESCrypt.decrypt(value, password) <-----------
   hash
end

有人知道这是为什么吗?

Anybody have a clue why this is?

推荐答案

原来我使用了错误的加密密码,因为它存储在环境变量中

Turned out I was using the wrong encryption password, because it was stored in a environment variable

这篇关于在本地运行登台数据​​库时出现OpenSSL :: Cipher :: CipherError的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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