diff options
| author | Ev Bogue <ev@evbogue.com> | 2019-09-05 11:27:57 -0500 | 
|---|---|---|
| committer | Ev Bogue <ev@evbogue.com> | 2019-09-05 11:27:57 -0500 | 
| commit | c85b74b1bd73d0d948c7523dc7ba668f430f0a64 (patch) | |
| tree | 163436fb928b288bccf674015274c90542d5fc45 | |
| parent | 1d11adf294433b1cf9a3376806d52fe6e1aea0bd (diff) | |
remove consoles and commented non-working statement
| -rw-r--r-- | bog.js | 4 | 
1 files changed, 0 insertions, 4 deletions
| @@ -70,13 +70,9 @@ async function box (msg, recp, keys) {  //bog.unbox -- decrypts a message sent to our pubkey  async function unbox (boxed, sender, keys) { -  console.log(sender) -  console.log(keys.privateKey) -  console.log(boxed)    var nonceMsg = nacl.util.decodeBase64(boxed)    var nonce = nonceMsg.slice(0, nacl.box.nonceLength)    var msg = nonceMsg.slice(nacl.box.nonceLength, nonceMsg.length) -  //var message = nacl.box.open(msg, nonce, ed2curve.convertPublicKey(sender.substring(1)), ed2curve.convertSecretKey(nacl.util.decodeBase64(keys.privateKey)))    var message = nacl.box.open(msg, nonce, ed2curve.convertPublicKey(nacl.util.decodeBase64(sender.substring(1))), ed2curve.convertSecretKey(nacl.util.decodeBase64(keys.privateKey)))    return message  } | 
