Skip to main content
CrystalDocs
Search documentation
Search
Browse Docs
CrystalShards
About
class
PasswordGenerator
Inherits
Reference
<
Object
Password generator class
Constants
AMBIGUOUS = "0
O1lI
"
DIGITS = "0123456789"
LOWERCASE = "abcdefghijklmnopqrstuvwxyz"
SYMBOLS = "!@#$%^&*()_+-=[]{}|;:,.<>?"
UPPERCASE = "
ABCDEFGHIJKLMNOPQRSTUVWXYZ
"
Class methods
assess_strength
(password :
String
) :
String
Source
calculate_entropy
(password :
String
) :
Float64
Source
generate
(length :
Int32
= 16, include_uppercase :
Bool
= true, include_lowercase :
Bool
= true, include_digits :
Bool
= true, include_symbols :
Bool
= true, exclude_consecutive_repeats :
Bool
= true, exclude_ambiguous :
Bool
= false) :
String
Source