Class: Ronin::CLI::Commands::Md5 Private
- Inherits:
-
StringProcessorCommand
- Object
- Core::CLI::Command
- Ronin::CLI::Command
- FileProcessorCommand
- StringProcessorCommand
- Ronin::CLI::Commands::Md5
- Defined in:
- lib/ronin/cli/commands/md5.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.
Calculates MD5 hashes of data.
Usage
ronin md5 [] [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
-h, --help Print help information
Arguments
[FILE ...] Optional file(s) to process
Instance Attribute Summary
Attributes inherited from StringProcessorCommand
Instance Method Summary collapse
-
#process_string(string) ⇒ String
private
Computes a MD5 checksum for the given String.
Methods inherited from StringProcessorCommand
#initialize, #print_string, #process_input, #run
Methods inherited from FileProcessorCommand
#open_file, #process_file, #process_input, #run
Constructor Details
This class inherits a constructor from Ronin::CLI::StringProcessorCommand
Instance Method Details
#process_string(string) ⇒ String
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Computes a MD5 checksum for the given String.
60 61 62 |
# File 'lib/ronin/cli/commands/md5.rb', line 60 def process_string(string) Digest::MD5.hexdigest(string) end |