All Questions
1
question
1
vote
0
answers
3k
views
Hmac with openssl's command line tool with a key that might contain null bytes
Let's say I want to do an SHA256HMAC digest of a file with the openssl command line utility:
openssl dgst -sha256 -hmac "$(cat $KEY_FILE)" -hex "$TARGET_FILE"
How can I protect this command against ...