Skip to content

Instantly share code, notes, and snippets.

View lightway82's full-sized avatar

Nick lightway82

View GitHub Profile
@lightway82
lightway82 / gist:ccbfa50b61c18b8c2518388d98dedaa3
Created January 1, 2017 18:25 — 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;
/**