OpenSSL::Cipher::CipherError when running staging DB on local

試著忘記壹切 提交于 2020-01-24 04:08:30

问题


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

OpenSSL::Cipher::CipherError

Which occurs at the following piece of code

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

Anybody have a clue why this is?


回答1:


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



来源:https://stackoverflow.com/questions/27311946/opensslcipherciphererror-when-running-staging-db-on-local

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!