In ruby on rails how to encrypt data and store in database

522 Views Asked by At

I am using rails v 5.1.7 and ruby v 2.6.3 i need to encrypt data like mobile number at db level how to achieve this, any gem suggestion to use

1

There are 1 best solutions below

0
On

You can use this gem for encryption data store in database column

https://github.com/attr-encrypted/attr_encrypted