class Secrets

Defined in:

secrets.cr

Constant Summary

AES_BITS = 256
IV_SIZE = 32
KEY_SIZE = 32

Constructors

Class Method Summary

Instance Method Summary

Constructor Detail

def self.new(name : String, encryption_key : String, data : String) #

[View source]
def self.new(name : String) #

[View source]

Class Method Detail

def self.[](name : SymString) #

[View source]
def self.[]?(name : SymString) #

[View source]
def self.default_keys_dir : Path #

[View source]
def self.default_keys_dir=(default_keys_dir : Path) #

[View source]
def self.default_stores_dir : Path #

[View source]
def self.default_stores_dir=(default_stores_dir : Path) #

[View source]
def self.register(name : SymString, store_path : PathString | Nil = nil, key_path : PathString | Nil = nil, create : Bool = false) #

[View source]
def self.stores : Hash(String, Secrets) #

[View source]

Instance Method Detail

def [](key : SymString) #

[View source]
def []=(key : SymString, value : SymString) #

[View source]
def []?(key : SymString) #

[View source]
def data : Hash(String, String) #

[View source]
def encode #

[View source]
def encryption_key=(encryption_key : String) #

[View source]
def key_path : Path | Nil #

[View source]
def key_path=(key_path : Path | Nil) #

[View source]
def name : String #

[View source]
def save #

[View source]
def store_path : Path | Nil #

[View source]
def store_path=(store_path : Path | Nil) #

[View source]