class Rack::Session::Encryptor
def deserialized_message(data)
Return the deserialized message. The first 2 bytes will be read as the
def deserialized_message(data) # Read the first 2 bytes as the padding_bytes size padding_bytes, = data.unpack('v') # Slice out the serialized_data and deserialize it serialized_data = data.slice(2 + padding_bytes, data.bytesize) serializer.load serialized_data end