I\'ve got a question about how Rails handles cookie encryption/decryption.
I\'ve got this in my config/environment.rb
config.action_controller.sess
If you pull the session.data field straight from the session data stored in your app's database (if you are using active_record_store in your environment.rb file)
config.action_controller.session_store = :active_record_store
... here is how you decode it and return the hash:
Marshal.load(ActiveSupport::Base64.decode64(@session.data))
... or in Rails >= 3.2 (thanks Chuck Vose)
Marshal.load(Base64.decode64(@session.data))
It is not encrypted at all.