Miscellaneous script for my everyday usage.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

get-sri-hash 149B

123456
  1. #!/usr/bin/env zsh
  2. # Calculates subresource integrity hash with OpenSSL.
  3. # Arg 1: Input file
  4. openssl dgst -sha384 -binary ${1} | openssl base64 -A