Skip to content

Instantly share code, notes, and snippets.

View mmoayyed's full-sized avatar

Misagh Moayyed mmoayyed

View GitHub Profile
import org.apache.commons.codec.binary.Hex
import org.apache.commons.codec.digest.HmacUtils
import javax.crypto.Mac
import javax.crypto.spec.SecretKeySpec
import java.nio.charset.StandardCharsets
def key =
"0x9B7A8A71592A41F4C935A159768E7771AF4F814CA7DDAC80491A355B072090CF7A3D26DCBD7123C26A1134D291FD5044355B1F124D7127902693F85921545F20109D52472A1E0F0D3E0069357FA7000C2CDA1EEAAADF5B81046687472DC8CA730DC3AD0C0359B7ED2F04398FAD8FE3C47881D5AA82BA065D969C931CBE2B92A4"