Hybrid Cryptography on Rails

1 · Andrew Kane · March 1, 2019, 12:50 a.m.
Hybrid cryptography allows certain servers to encrypt data without the ability to decrypt it. This can greatly limit damage in the event of a breach. Suppose we have a service that sends text messages to customers. Customers enter their phone number through the website or mobile app. With hybrid cryptography, we can set up web servers to only encrypt phone numbers. Text messages can be sent through background jobs which run on a different set of servers - ones that can decrypt and don’t allow i...