Skip to content

Instantly share code, notes, and snippets.

@ufo22940268
Created April 9, 2015 06:34
Show Gist options
  • Save ufo22940268/6b97b7a031be5c034578 to your computer and use it in GitHub Desktop.
Save ufo22940268/6b97b7a031be5c034578 to your computer and use it in GitHub Desktop.
var alipub = ursa.createPublicKey(fs.readFileSync('../../ali_public_key.pem'), 'base64');
msg = alipub.publicDecrypt(msg, 'base64').toString();
console.log("msg = " + msg)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment