this SO article discusses some encryption / decryption options that you might want to learn. Without knowing too much about your application, I would say look there first and see if you can find everything that matches the account. As a big side, pay attention to whatever protection method you choose, be sure to add filters to your application.rb file, otherwise you may find your unencrypted data appearing in the log files. for this you just need to add something like a .rb application:
config.filter_parameters += [:password, :YOUR_FILTERED_PARAM]
source share