class Stremio::Addon::DevKit::UserData::Session(T)

Overview

A Session defines a way to encode/decode user content in a secure and url safe manner

Defined in:

stremio-addon-devkit/userdata/session.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(ring : KeyRing | KeyRing::Opt, iv_static : T) #

[View source]

Instance Method Detail

def decode(data) : String #

[View source]
def decode_to_bytes(data) : Bytes #

[View source]
def encode(data, compress : Bool = true, random_generator = Random::Secure) : String #

[View source]