Skip to content

Instantly share code, notes, and snippets.

View BryanLe2811's full-sized avatar
🏠
Working from home

Bryan Le BryanLe2811

🏠
Working from home
  • TquilaANZ
  • Sydney
View GitHub Profile
@BryanLe2811
BryanLe2811 / gist:fd249ca05ea4d30184752556d1214c3e
Created October 13, 2020 03:44 — 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;
/**