decrypt

Description

The decrypt command takes a previously encrypted value and recovers the original plaintext using the Detect encryption key. The same key file used during encryption must be supplied for successful decryption.

Syntax

decrypt -p "<encrypted_value_to_decrypt>"

Examples

Decrypt using the default key:

CliTool.bat decrypt -p "aGVsbG8gd29ybGQ=..."

Linux:

./CliTool.sh decrypt -p "aGVsbG8gd29ybGQ=..."
Note: Currently, the decrypt syntax does not support properties files.

Parameters

Parameter Required Description
-p <encrypted_value_to_decrypt> Yes The encrypted string value to decrypt. This should be the output previously produced by the encrypt command.
-key-file-path <path_to_file> No Path to a .properties file containing the active encryption key. Must match the key used during encryption. If omitted, the default built-in key is used.

Sample Output

Decrypted value: MySecretPassword
Note:
  • The -p flag must immediately precede the encrypted value.
  • If a custom key file was used during encryption, the same key file must be supplied when decrypting; otherwise decryption will fail or produce incorrect output.
  • If -key-file-path is not provided, the command will print:

    [WARN] No key file path provided, using default key.