EncryptedAttributes
Usage
Rails 2.3.x
Create an initializer that will configure the EncryptedAttributes module with your Key and IV.
EncryptedAttributes.setup(:key => 'YOUR RANDOM KEY', :iv => 'YOUR RANDOM INITIALIZATION VECTOR')
Encrypt your columns like.
class Deployment < ActiveRecord::Base
serialize :secret_config, Hash
encrypt :secret_config
end
Contributing
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Added some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request