Method: Origami::Obfuscator.junk_string
- Defined in:
- lib/origami/obfuscation.rb
.junk_string(max_size = 10) ⇒ Object
114 115 116 117 118 119 120 |
# File 'lib/origami/obfuscation.rb', line 114 def self.junk_string(max_size = 10) length = rand(max_size) + 1 strtype = (rand(2).zero?) ? LiteralString : HexaString strtype.new(::Array.new(length) { PRINTABLE[rand(PRINTABLE.size)] }.join) end |