class Stremio::Addon::DevKit::UserData::V1(T)
- Stremio::Addon::DevKit::UserData::V1(T)
- Reference
- Object
Defined in:
stremio-addon-devkit/userdata/v1.crConstructors
-
.new(ring : KeyRing | KeyRing::Opt, iv_static : T)
Constructs UserData Version 1 Interface
Instance Method Summary
- #decode(data) : Bytes
- #encode(data, compress : Bool = true, random_generator = Random::Secure) : Bytes
Constructor Detail
Constructs UserData Version 1 Interface
Parameters:
@ring
can either be aKeyRing
orKeyRing::Opt::Disable
@iv_static
a static portion of the initial vector used to encrypt the user data
WARNING Using KeyRing::Opt::Disable
means that encryption will not be used