module Yogurt
Defined in:
yogurt/command_line/main.cryogurt/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
- .cast_character(tuple : Tuple(Array(Char), Int32), cast : CharacterCast, with_symbol : Bool)
- .cast_to_ranges(cast : CharacterCast, with_symbol : Bool) : Array(Tuple(Char, Char, Bool)) | Nil
- .center(full : Int32, limit : Int32) : Tuple(Int32, Int32)
- .center(text : String, limit : Int32) : Tuple(Int32, Int32)
- .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
- .create_pin(secret_key : String, secure_id : String, iterations : Int64 = 131072_i64, pbkdf2_iterations : Int64 = 2_i64 ** 5_i64) : String
- .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
- .create_secure_id(value : String, length : Int32 = 32)
- .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
- .fill_text(text : String, with_symbol : Bool = true) : String
- .format_user_name(text : String) : String
- .total(text : String, space : Int32 = 1) : Tuple(Int32, Int32, Int32, Int32)
Class Method Detail
def self.cast_character(tuple : Tuple(Array(Char), Int32), cast : CharacterCast, with_symbol : Bool)
#
def self.cast_to_ranges(cast : CharacterCast, with_symbol : Bool) : Array(Tuple(Char, Char, Bool)) | Nil
#
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
#
def self.create_pin(secret_key : String, secure_id : String, iterations : Int64 = 131072_i64, pbkdf2_iterations : Int64 = 2_i64 ** 5_i64) : String
#
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
#
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
#
def self.total(text : String, space : Int32 = 1) : Tuple(Int32, Int32, Int32, Int32)
#