How To Encrypt Fields in Ruby on Rails with Lockbox

Posted on

In this tutorial I’m going to show you how to use the Lockbox gem ( https://github.com/ankane/lockbox ) to encrypt field within your Database.

This is a good solution for when you need to store some sensitive data (such an oauth credentials, or an API key) within your database.