module Nanoid
Defined in:
nanoid.crConstant Summary
-
SAFE_ALPHABET =
"_-0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"
-
VERSION =
{{ (`shards version /srv/crystaldoc.info/github-mamantoha-nanoid.cr-v0.7.1/src`).chomp.stringify }}
Class Method Summary
-
.complex_generate(size : Int32, alphabet : String) : String
Generate secure URL-friendly unique ID
- .generate(size = 21, alphabet = SAFE_ALPHABET, secure = true) : String
-
.non_secure_generate(size : Int32, alphabet : String) : String
Non-secure predictable random generator
- .simple_generate(size : Int32) : String
Class Method Detail
def self.complex_generate(size : Int32, alphabet : String) : String
#
Generate secure URL-friendly unique ID
def self.non_secure_generate(size : Int32, alphabet : String) : String
#
Non-secure predictable random generator