ggshield hmsl decrypt
Description
Decrypt query's output and show secrets information.
ggshield hmsl decrypt [OPTIONS] PATH
Options
-
-m,--mapping FILENAME: File containing the hashes and their names.Default:
mapping.txt. -
--format [text|json]: Format to use for the output. -
--json: Shorthand for--format json.
This command supports all ggshield global options.
Example
Thanks to the mapping file computed in the first stage, filter and decrypt the result of our API call.
ggshield hmsl decrypt results.dump
Found 2 leaked secrets.
> Secret 1
Secret name: "hjshnk5**************************89sjkja"
Secret hash: "e9b39209f72228f30b60c19493a3f756ac97dc02ae7f52db2a3abbe3c3269339"
Distinct locations: 96
First occurrence:
URL: "https://github.com/ChrisJStone/gitflow-cjs/commit/1c9b5b4286361ee88d64305e5a0080f03570cc5e#diff-02557643ffc95ebd4d6d5a96c612319db32179d87b36cb1f78d2f4305c80b994R10"
> Secret 2
Secret name: "sup3*************orGG"
Secret hash: "d775db0302080c1b7516109e929dd4b214a0f353ed3b66ff2e56c47d55a102ed"
Distinct locations: 33
First occurrence:
URL: "https://github.com/akansha-nec/Sample2/commit/b06ae6b5e0869657faff9aef37fe2a1afc39370f#diff-9d6176320759464781692ac6ec7d84d987716bad52218e13ac3219c6004e630fR4"
It expects to find a mapping.txt file in the current directory. If you used a prefix, or moved the file, use the -m option to specify the location of the mapping file.