Quick Content Security Policy source hashes, because typing is painful.
- Multiple input files
- Supports all CSP hashing algorithms
- No platform dependencies
Instead of this:
result=$(cat ./sample.txt | openssl sha256 -binary | openssl base64)
echo "'sha256-$result:'"
You write this:
qcsp ./sample.txt
# sha 384
qcsp ./sample.txt -asha384
# sha 512
qcsp ./sample.txt -asha512