class Rack::Protection::EncryptedCookie::Base64::ZipJSON

def decode(str)

def decode(str)
  return unless str
  ::JSON.parse(Zlib::Inflate.inflate(super(str)))
rescue StandardError
  nil
end

def encode(obj)

def encode(obj)
  super(Zlib::Deflate.deflate(::JSON.dump(obj)))
end