Skip to main content
CrystalDocs
Search documentation
Search
Browse Docs
CrystalShards
About
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
RNS::Cryptography::Token::Mode