Active Support Message Verifier MessageVerifier makes it easy to generate and verify messages which are signed to prevent tampering. In a Rails application, you can use Rails.application.| api.rubyonrails.org
Macaroons are one of my favorite cryptographic constructions. They were almost the first one I really understood, and they heavily influence my designs [https://privacypass.github.io/] for anything involving authorization. There's a lot to love about macaroons. They're elegant and fast. They're secure and easy to reason about. They| gtank writes here