问题
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