Class: Ronin::Payloads::Encoders::SQL::Encode

Inherits:
Ronin::Payloads::Encoders::SQLEncoder show all
Defined in:
lib/ronin/payloads/encoders/builtin/sql/encode.rb

Overview

A SQL encoder that encodes the given String as a SQL hex string.

Instance Method Summary collapse

Methods inherited from Encoder

register, #validate

Instance Method Details

#encode(data) ⇒ String

SQL encodes the given data.

Parameters:

  • data (String)

Returns:

  • (String)


52
53
54
# File 'lib/ronin/payloads/encoders/builtin/sql/encode.rb', line 52

def encode(data)
  Support::Encoding::SQL.encode(data)
end