Guest User

send 0xfd

a guest
Mar 22nd, 2013
29
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