To solve this problem when I store sensitive things, I use attr_encrypted like this:
Gemfile: gem 'attr_encrypted'
account.rb: attr_encrypted, :account_number, :key => ENV["some_key"]
Gemfile: gem 'attr_encrypted'
account.rb: attr_encrypted, :account_number, :key => ENV["some_key"]
No comments yet.