Created
August 26, 2019 07:29
-
-
Save marcus7777/8dd6e3c3e00b78c43e51ccec48c8ca68 to your computer and use it in GitHub Desktop.
Revisions
-
marcus7777 created this gist
Aug 26, 2019 .There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,6 @@ //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)