Skip to content

Instantly share code, notes, and snippets.

View mkorszunsands's full-sized avatar

mkorszunsands

View GitHub Profile
@mkorszunsands
mkorszunsands / SignatureVerifier.java
Last active January 29, 2023 09:51
Verify Google Play in-app purchase signatures
import sun.misc.BASE64Decoder;
import java.io.IOException;
import java.security.KeyFactory;
import java.security.NoSuchAlgorithmException;
import java.security.PublicKey;
import java.security.Signature;
import java.security.spec.InvalidKeySpecException;
import java.security.spec.X509EncodedKeySpec;