You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
To avoid the problem, now I'm using "rb" attribute to read files like binary.
content = File.open(path, "rb") { |f| f.read }
return Encryptor.encrypt(:value => content, :key => @securekey)
Another particular problem I've had is when using JRuby.
From Ruby encrypted file to JRuby, It's decrypt successfully.
From JRuby encrypted file to Ruby, It has different exceptions (bad encrypt, length size, etc.), but I think is because a bad implementation of JCE from part of JRuby gems.
OpenSSL::Cipher::CipherError in MigrateController#index
wrong final block length
I am using default configuration and files with UTF-8 encoding
The text was updated successfully, but these errors were encountered: