Class: Ronin::CLI::Commands::Encode Private

Inherits:
StringMethodsCommand show all
Defined in:
lib/ronin/cli/commands/encode.rb

Overview

This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.

Encodes each character of data into a variety of encodings.

Usage

ronin encode [options] [FILE ...]

Options

-f, --file FILE                  Optional file to process
    --string STRING              Optional string to process
-M, --multiline                  Process each line separately
-n, --keep-newlines              Preserves newlines at the end of each line
    --base16                     Base16 encodes the data
    --base32                     Base32 encodes the data
-b, --base64=[strict|url]        Base64 encodes the data
-z, --zlib                       Zlib compresses the data
-g, --gzip                       gzip compresses the data
-c, --c                          Encodes the data as a C string
-X, --hex                        Hex encode the data (ex: "414141...")
-H, --html                       HTML encodes the data
-u, --uri                        URI encodes the data
    --http                       HTTP encodes the data
-j, --js                         JavaScript encodes the data
-S, --shell                      Encodes the data as a Shell String
-P, --powershell                 Encodes the data as a PowerShell String
    --punycode                   Encodes the data as Punycode
-Q, --quoted-printable           Encodes the data as Quoted Printable
-R, --ruby                       Encodes the data as a Ruby String
    --uuencode                   uuencodes the data
-x, --xml                        XML encodes the data
-h, --help                       Print help information

Arguments

[FILE ...]                       Optional file(s) to process

Since:

  • 2.0.0

Instance Attribute Summary

Attributes included from MethodOptions

#method_calls

Attributes inherited from StringProcessorCommand

#input_values

Method Summary

Methods inherited from StringMethodsCommand

#process_string

Methods included from MethodOptions

#apply_method_options, #initialize

Methods inherited from StringProcessorCommand

#initialize, #print_string, #process_input, #process_string, #run

Methods inherited from FileProcessorCommand

#open_file, #process_file, #process_input, #run