Skip to content

Instantly share code, notes, and snippets.

View breinhart's full-sized avatar

Brian Reinhart breinhart

View GitHub Profile
@breinhart
breinhart / HmacSha1Signature.java
Last active April 1, 2020 14:55 — forked from ishikawa/gist:88599
Java Sample Code for Calculating HMAC-SHA1 Signatures
import java.security.InvalidKeyException;
import java.security.NoSuchAlgorithmException;
import java.security.SignatureException;
import java.util.Formatter;
import javax.crypto.Mac;
import javax.crypto.spec.SecretKeySpec;
/**