Skip to content

Instantly share code, notes, and snippets.

@liu316484231
liu316484231 / verify.js
Created November 26, 2015 01:28 — forked from evanhalley/verify.js
Using JavaScript / Node.js to do server side IAB signature verification
var crypto = require('crypto');
// the Base64 encoded Google Play license key / Base64-encoded RSA public key from the Google Play Dev Console
var publicKey = "ABCEDF1234....";
/** sample
{
"orderId":"12999763169054705758.1371079406387615",
"packageName":"com.example.app",
"productId":"exampleSku",