Class: Obfusc::Random
- Inherits:
-
Object
- Object
- Obfusc::Random
- Defined in:
- lib/obfusc/random.rb
Overview
Grab most comon characters and generate a random list of key and value
Constant Summary collapse
- DIGIT =
(0x30..0x39).map(&:chr)
- ALPHA =
(0x41..0x5a).map(&:chr) + (0x61..0x7a).map(&:chr)
- SPECIAL =
[ ' ', '-', '_', ',', ':', ';', '=', '@', '[', ']', '(', ')', '{', '}', '|' ].freeze
Class Method Summary collapse
Class Method Details
.generate! ⇒ Object
12 13 14 15 16 17 |
# File 'lib/obfusc/random.rb', line 12 def self.generate! hash = {} randonize!(hash, DIGIT + ALPHA) randonize!(hash, SPECIAL) hash end |