Open danp opened 11 years ago
:+1:
I almost implemented this when I wrote the fixes to the crypto, but in the end, didn't have the time.
Cool, I might take a stab at it if I get time.
+1
It's built on top of Rack::Session::Cookie
, and you can do this:
use Rack::Session::EncryptedCookie, secret: 'test2', old_secret: 'test'
Rack::Session::Cookie
supports an:old_secret
which allows for graceful secret rotation without breaking existing sessions. Would be great ifEncryptedCookie
supported something similar.cc @tmaher