class Rack::Protection::EncryptedCookie::Base64::Marshal

Encode session cookies as Marshaled Base64 data

def decode(str)

def decode(str)
  return unless str
  begin
    ::Marshal.load(super(str))
  rescue StandardError
    nil
  end
end

def encode(str)

def encode(str)
  super(::Marshal.dump(str))
end