SHARE
TWEET

send 0xfd

a guest Mar 22nd, 2013 28 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. var serverKey = ursa.generatePrivateKey(1024);
  2. var publicKeyStrArr = serverKey.toPublicPem("utf8").split("\n");
  3. var publicKeyStr = "";
  4. for (var i=1;i<publicKeyStrArr.length - 2;i++) {
  5. publicKeyStr += publicKeyStrArr[i]
  6. }
  7. client.publicKey = new Buffer(publicKeyStr,'base64');
  8.  
  9. (Send public key)
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top