Module: Password::CharacterSets

Defined in:
lib/simple-password-gen.rb

Constant Summary collapse

SAFE_CHARS =
("A".."Z").to_a | ("a".."z").to_a | ("0".."9").to_a | "-_.,;+!*()[]{}|~^<>\"'$=".split(//)
URL_UNSAFE =
"#%/:@&?".split(//)
LOOKALIKE =
"Ss5Bb8|Iio01lO".split(//)
ALL_CHARS =
SAFE_CHARS | URL_UNSAFE
URL_SAFE =
SAFE_CHARS
VISUAL_SAFE =
SAFE_CHARS - LOOKALIKE
CONSONANTS =
%w( b c d f g h j k l m n p r s t v w x z)
VISUAL_SAFE_CONSONANTS =
CONSONANTS & VISUAL_SAFE
VOWELS =
%w(a     e     i         o       u     y)
VISUAL_SAFE_VOWELS =
VOWELS & VISUAL_SAFE
COMPOUND =
CONSONANTS | %w(ch cr fr nd ng nk nt ph pr qu rd sch sh sl sp st th tr)