attr_encrypted
Generates attr_accessors that encrypt and decrypt attributes transparently. It can be used with ANY class, although you get a few more features if you’re using it with ActiveRecord. Its plugable encrypting backend makes it very flexible. http://github.com/shuber/attr_encrypted
Comments
I’ve considered writing something similar for DataMapper. But I always got stuck on secure key management.
I like how you can define the :key as a proc to handle user-specific keys.
Just added DataMapper support
And Sequel support
Post a comment