Adventures in Paranoia with Sinatra and Sequel
summary
Pure-Ruby crypto demos use OpenSSL bindings: AES for per-field symmetric keys, RSA to wrap table keys, SHA-512 HMACs as cheap searchable fingerprints, and iterative hashing with 100000 rounds to slow attackers. A Sequel plugin generates UUID-style primary ids, stores encrypted blobs plus IVs, and injects getters/setters plus SHA-512 fingerprints for equality searches. Session protection appears as a custom Rack middleware. Prototype code exists and mostly works; Sinatra coverage is trimmed for time.
AI-written summary · about
chapters (6)
- 0:00Start
- 5:40ruby crypto standard library support for cryptography
- 18:29field encryption with encrypted search
- 22:30table encryption securing table access with hybrid cryptography
- 23:10transport security encrypting & signing cookies with rack
- 24:18adventures in paranoia








