Missing nonce in example?
VogtAI opened this issue · comments
VogtAI commented
Hey,
it seems to me that the nonce is missing in this line:
var encryptedMessage = nacl.box(anotherMessage, theirDHPublicKey, myDHSecretKey);
should be
var encryptedMessage = nacl.box(anotherMessage, nonce, theirDHPublicKey, myDHSecretKey);
Dmitry Chestnykh commented
Thanks, fixed.