-
Notifications
You must be signed in to change notification settings - Fork 101
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Ruby 2.4.0 throws deprecation warning about OpenSSL::Cipher::Cipher #135
Comments
It could be helpful if somebody had the time to try alternatives (could Fast AES be used?) or if you have the time/skillzz to attempt an update: My guess is that the deprecation warning will hold back people on updating to ruby 2.4 |
I'm happy to take a stab at resolving this, is @jmazzi accepting pull requests? Also, someone in the issues thread I linked originally has created a fork that fixes this issue, but that is of course problematic in the long term. |
@safetymonkey I'm more than thrilled to accept pull requests with tests. My preference would be to remove AES as a dependency completely, even if it's not backward compatible. The AES project has not been maintained in a while. |
FWIW I started on a replacement implementation for AES in #140, but I've not had time to add a migration path yet. |
@itspriddle at this point I'm ok with 1.0 becoming EOL and moving to a 2.0. The migration tools can come later, but I'd like to stay ahead of the problem for new installs if we can. |
#140 has been refactored to include Ruby 2.4 support. Note that it is a breaking change for users of the AesNew encryptor. Migration steps are included in the comments of the PR. Can you guys give it a try and report back if there are any issues? If it's good we can prepare a 2.0.0 RC. Thanks! |
Hi @itspriddle, I've followed your general migration path and tested it locally. I got no problem with my data. |
Experimental PR in #140 |
I tried updating my app to use Ruby 2.4.0 (bumped up from 2.3.3) and while the server runs and my rspec tests pass I get the 6 instances of the following warning:
/Users/me/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/aes-0.5.0/lib/aes/aes.rb:151: warning: constant OpenSSL::Cipher::Cipher is deprecated
As far as I can tell, this is coming from the
aes
gem, which crypt_keeper relies upon. It hasn't been in active development in years, and the latest version (0.5.0) appears to have this problem as a known issue that's gone unaddressed. (chicks/aes#8) Unfortunately, the owner of the repository hasn't had any public contributions to Github since 2015.I am not sure what the best option is here, as there don't appear to be a ton of AES encrypt/decrypt gems that have been updated recently.
The text was updated successfully, but these errors were encountered: