class Cryogen::Key

Defined in:

cryogen/key.cr

Constant Summary

CIPHER_KEY_BYTES = 32
KEY_BYTES = CIPHER_KEY_BYTES + SIGNING_KEY_BYTES
SIGNING_KEY_BYTES = 32

Constructors

Instance Method Summary

Constructor Detail

def self.from_base64(stringified_key : String) : self #

[View source]
def self.generate : self #

[View source]
def self.load(key_file : String) : self #

[View source]
def self.new(key_material : Bytes) #

[View source]

Instance Method Detail

def cipher_key : Bytes #

[View source]
def save!(key_file : String) #

[View source]
def signing_key : Bytes #

[View source]
def to_base64 : String #

[View source]