killchain-compendium/Cryptography/Hash-Cheatsheet.md

234 B

Hash Cheatsheet

Create Hash

  • Generate a SHA256 hash
sha256sum $INPUT_FILE

Create MAC

  • Both tools produce the same MAC in the following way
hmac256 $KEY $INPUT_FILE
sha256hmac $INPUT_FILE --key $KEY