crypt_keeper icon indicating copy to clipboard operation
crypt_keeper copied to clipboard

crypt_keeper re-encrypts attributes on every save

Open zelaznik opened this issue 2 years ago • 1 comments

It looks like this issue was raised back in 2013:

https://github.com/jmazzi/crypt_keeper/issues/61

However the hope was that a future edition of Rails could solve the problem. This has not been the case. I'm wondering if there are any decent work-arounds. We've noticed some performance issues. We also keep a version history of changed values in the database, so these encrypted values get stored every time something is saved to the database, even if the plain-text values are the same.

I know that not a lot of people maintain this gem, so if you know the general direction for how this can be fixed, let me know, and I could possibly submit a PR.

zelaznik avatar Sep 16 '22 17:09 zelaznik

I unfortunately do not have much guidance to offer on this. I would suggest reviewing active_record intervals to see if there are any options.

jmazzi avatar Sep 18 '22 16:09 jmazzi