Class: Ronin::CLI::Commands::Decrypt Private
- Inherits:
-
CipherCommand
- Object
- Core::CLI::Command
- Ronin::CLI::Command
- FileProcessorCommand
- CipherCommand
- Ronin::CLI::Commands::Decrypt
- Defined in:
- lib/ronin/cli/commands/decrypt.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.
Decrypts data.
Usage
ronin decrypt [] [FILE ...]
Options
-k, --key STRING The key String
-K, --key-file FILE The key file
-c, --cipher NAME The cipher to decrypt with. See --list-ciphers (Default: aes-256-cbc)
-P, --password PASSWORD The password to decrypt with
-H md5|sha1|sha256|sha512, The hash algorithm to use for the password (Default: sha256)
--hash
--iv STRING Sets the Initial Vector (IV) value of the cipher
--padding NUM Sets the padding of the decryption cipher
-b, --block-size NUM The size in bytes to read data in (Default: 16384)
--list-ciphers List all available ciphers
-h, --help Print help information
Arguments
[FILE ...] The file(s) to decrypt
Instance Attribute Summary
Attributes included from KeyOptions
Instance Method Summary collapse
-
#cipher ⇒ Ronin::Support::Crypto::Cipher
private
Creates a new decryption cipher.
Methods inherited from CipherCommand
#open_file, #process_input, #run
Methods included from KeyOptions
Methods inherited from FileProcessorCommand
#open_file, #process_file, #process_input, #run
Instance Method Details
#cipher ⇒ Ronin::Support::Crypto::Cipher
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.
Creates a new decryption cipher.
60 61 62 |
# File 'lib/ronin/cli/commands/decrypt.rb', line 60 def cipher super(direction: :decrypt) end |