Module: Tokogen::Alphabet

Defined in:
lib/tokogen/alphabet.rb

Constant Summary collapse

BASE62 =
(('A'..'Z').to_a + ('a'..'z').to_a + ('0'..'9').to_a).join.freeze
BASE58 =
(('A'..'Z').to_a + ('a'..'z').to_a + ('0'..'9').to_a - %w(0 O I l)).join.freeze
BASE64 =
(('A'..'Z').to_a + ('a'..'z').to_a + ('0'..'9').to_a + ['+', '/']).join.freeze
BASE85 =

Note: This is NOT ASCII85 coding alphabet, it’s from RFC1924. Do not use in unless you’re sure you need it!

(('A'..'Z').to_a + ('a'..'z').to_a + ('0'..'9').to_a + ['!', '#', '$', '%', '&', '(', ')', '*', '+', '-', ';', '<', '=', '>', '?', '@', '^', '_', '`', '{', '|', '}', '~']).join.freeze
BASE2 =

Some simple alphabets. Mainly used for testing but you can use them too.

('0'..'1').to_a.join.freeze
BASE3 =
('0'..'2').to_a.join.freeze