module Yogurt

Defined in:

yogurt/command_line/main.cr
yogurt/version.cr
yogurt/yogurt.cr

Constant Summary

ILLEGAL_SYMBOLS = ['"', '\'', '/', '\\']
LOWERCASE_RANGES = [{'a', 'z', false}, {'z', 'a', true}]
NUMBER_RANGES = [{'0', '9', false}, {'9', '0', true}]
SYMBOL_RANGES = [{'!', '/', false}, {'@', ':', true}]
UPPERCASE_RANGES = [{'A', 'Z', false}, {'Z', 'A', true}]
UUID_REGEX = /(.{8})(.{4})(.{4})(.{4})(.{12})/
UUID_REPLACEMENT = "\\1-\\2-\\3-\\4-\\5"
VERSION = "0.1.1"

Class Method Summary

Class Method Detail

def self.cast_character(tuple : Tuple(Array(Char), Int32), cast : CharacterCast, with_symbol : Bool) #

[View source]
def self.cast_to_ranges(cast : CharacterCast, with_symbol : Bool) : Array(Tuple(Char, Char, Bool)) | Nil #

[View source]
def self.center(full : Int32, limit : Int32) : Tuple(Int32, Int32) #

[View source]
def self.center(text : String, limit : Int32) : Tuple(Int32, Int32) #

[View source]
def self.create_email(domain : String, user_name : String, secure_id : String, length : Int32 = 15, iterations : Int64 = 131072_i64, pbkdf2_iterations : Int64 = 2_i64 ** 5_i64, callback : Proc(Int64, String, Nil) | Nil = nil) : String #

[View source]
def self.create_pin(secret_key : String, secure_id : String, iterations : Int64 = 131072_i64, pbkdf2_iterations : Int64 = 2_i64 ** 5_i64) : String #

[View source]
def self.create_secret_key(master_key : String, secure_id : String, length : Int32 = 20, iterations : Int64 = 131072_i64, with_symbol : Bool = true, pbkdf2_iterations : Int64 = 2_i64 ** 5_i64, callback : Proc(Int64, String, Nil) | Nil = nil) : String #

[View source]
def self.create_secure_id(value : String, length : Int32 = 32) #

[View source]
def self.create_user_name(secret_key : String, secure_id : String, length : Int32 = 15, iterations : Int64 = 131072_i64, pbkdf2_iterations : Int64 = 2_i64 ** 5_i64, callback : Proc(Int64, String, Nil) | Nil = nil) : String #

[View source]
def self.fill_text(text : String, with_symbol : Bool = true) : String #

[View source]
def self.format_user_name(text : String) : String #

[View source]
def self.total(text : String, space : Int32 = 1) : Tuple(Int32, Int32, Int32, Int32) #

[View source]