SHARE
TWEET

Untitled

a guest Mar 20th, 2017 60 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. // Test AES key sending
  2. const aesKey = aesWrapper.generateKey();
  3. let encryptedAesKey = rsaWrapper.encrypt(rsaWrapper.clientPub, (aesKey.toString(‘base64’)));
  4. socket.emit(‘send key from server to client’, encryptedAesKey);
RAW Paste Data
Pastebin PRO Summer Special!
Get 40% OFF on Pastebin PRO accounts!
Top