killchain-compendium/Cryptography/Hash-Cheatsheet.md

19 lines
234 B
Markdown
Raw Normal View History

2023-02-09 21:31:25 +01:00
# Hash Cheatsheet
## Create Hash
* Generate a SHA256 hash
```sh
sha256sum $INPUT_FILE
```
## Create MAC
* Both tools produce the same MAC in the following way
```sh
hmac256 $KEY $INPUT_FILE
sha256hmac $INPUT_FILE --key $KEY
```