Skip to content

Instantly share code, notes, and snippets.

@hachibu
Created July 2, 2021 14:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hachibu/520aed401da7a5f261013e8cb4e5dc8d to your computer and use it in GitHub Desktop.
Save hachibu/520aed401da7a5f261013e8cb4e5dc8d to your computer and use it in GitHub Desktop.
#!/usr/bin/env bash
message="$1"
key="$2"
algorithm="sha1"
echo "$message" | base64 | openssl "$algorithm" -hmac "$key"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment