I spent a hour to understand how to generate OAuth comsumer key for Google OAuth.
Here is the easiest way to do it.
Querying encrypted data in Rails using Deterministic Encryption
-
Encrypting data is easy — querying it isn’t. Rails' deterministic
encryption makes encrypted fields both searchable and secure.




