class

RNS::Cryptography::Token

Inherits Reference < Object

Constants

TOKEN_OVERHEAD = 48

Constructors

new(key : Bytes)
Source

Class methods

generate_key(mode : Symbol = :aes_256_cbc) : Bytes
Source

Instance methods

decrypt(token : Bytes) : Bytes
Source
encrypt(data : Bytes) : Bytes
Source
verify_hmac(token : Bytes) : Bool
Source

Nested types