Skip to content
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

OpenSSL::Cipher#decrypt/encrypt deprecated #3

Open
danielbln opened this issue Feb 16, 2010 · 0 comments
Open

OpenSSL::Cipher#decrypt/encrypt deprecated #3

danielbln opened this issue Feb 16, 2010 · 0 comments

Comments

@danielbln
Copy link

webrick/mongrel throw the following warnings:

mortimer/vendor/gems/sentry-0.3.1/lib/sentry/symmetric_sentry.rb:25: warning: argumtents for OpenSSL::Cipher::Cipher#encrypt and OpenSSL::Cipher::Cipher#decrypt were deprecated; use OpenSSL::Cipher::Cipher#pkcs5_keyivgen to derive key and IV

Explanation:
http://stackoverflow.com/questions/1349397

Possible alternative:
http://github.com/shuber/attr_encrypted/

Sometimes mortimer seems to lock up for about 1-5 seconds when resetting user passwords and/or logging out (tested under webrick and mongrel/apache), I suspect the warning has something to do with that, but don't have any proof yet.

It seems that sentry calls deprecated functions (no surprise here, last sentry upstream commit is from 2006). This could be a security issue, since from what I understand it generates weaker keys than it should.

Unfortunately I'm not yet comfortable enough with the codebase to provide a workaround/patch.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant