Created
September 2, 2013 08:22
-
-
Save anonymous/6410459 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var orderString = 'some string'; | |
var private_key = fs.readFileSync('./pem/rsa_private_key.pem'); | |
var signer = crypto.createSign('RSA-SHA1'); | |
signer.update(orderString); | |
var sign = signer.sign(private_key,'base64'); | |
response.end(sign); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment