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
It sounds like previous versions of Ruby's SSL support truncated keys greater than 32 characters. So the extra padding applied in AESHelperOld was simply stripped out. (see: attr-encrypted/encryptor#26)
The monkey patch above works locally for me in both Ruby 2.3.3 and Ruby 2.4.2
Trying to generate a scoped key on Ruby 2.4.1 both with gem versions 0.9.3 and 0.9.7:
keen (0.9.7) lib/keen/aes_helper_old.rb:27:in
key=' keen (0.9.7) lib/keen/aes_helper_old.rb:27:in
aes256_encrypt'keen (0.9.7) lib/keen/scoped_key.rb:33:in `encrypt!'
Here is code you can use to generate the exception:
Also, my master key is exactly 32 characters long. If I were to use it to something like 'x' it no longer throws the exception.
The text was updated successfully, but these errors were encountered: