Skip to content

Instantly share code, notes, and snippets.

View breinhart's full-sized avatar

Brian Reinhart breinhart

View GitHub Profile

Keybase proof

I hereby claim:

  • I am breinhart on github.
  • I am breinhart (https://keybase.io/breinhart) on keybase.
  • I have a public key ASAotE73upYat61baqSCHi9wAog--ZAmD3aHsq4ZAkXMUgo

To claim this, I am signing this object:

@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;
/**