Skip to content

Instantly share code, notes, and snippets.

View Roshanmutha's full-sized avatar

RoshanKumar Mutha Roshanmutha

View GitHub Profile
@Roshanmutha
Roshanmutha / gist:b003932b5e0858d73ec02b3def1ddc4f
Created December 26, 2016 08:56 — 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;
/**