Skip to content

Instantly share code, notes, and snippets.

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

Cristi Dita ditacristianionut

🏠
Working from home
View GitHub Profile
@ditacristianionut
ditacristianionut / SignatureVerifier.java
Created January 29, 2023 09:51 — forked from mkorszunsands/SignatureVerifier.java
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;