Created
August 26, 2019 07:29
-
-
Save marcus7777/8dd6e3c3e00b78c43e51ccec48c8ca68 to your computer and use it in GitHub Desktop.
gunMsging.js
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//Alice's Side | |
var sharedKey = SEA.secret(BobePub, myPair (access via gun._.SEA)) | |
var encMessage = SEA.encrypt(msg, sharedKey) | |
//on other side, Bob | |
var sharedKey = SEA.secret(AliceEPub, Bob.pair) | |
var decryptMessage = SEA.decrypt(encMessage, sharedKey) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment