Method: Rex::Text.hexify

Defined in:
lib/rex/text/hex.rb

.hexify(str, col = DefaultWrap, line_start = '', line_end = '', buf_start = '', buf_end = '') ⇒ Object

Converts a string to a hex version with wrapping support



129
130
131
# File 'lib/rex/text/hex.rb', line 129

def self.hexify(str, col = DefaultWrap, line_start = '', line_end = '', buf_start = '', buf_end = '')
  self.hexify_general(str, "\\x", col, line_start, line_end, buf_start, buf_end)
end