Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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?

like image 433
Tarlen Avatar asked Dec 05 '14 08:12

Tarlen


1 Answers

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

like image 200
Tarlen Avatar answered Oct 12 '22 03:10

Tarlen