encrypted-message
sending encrypted messages between two ed25519 key pairs generated by sodium-signatures
Usage
var signatures = var encrypted = var sender = signaturesvar receiver = signatures var message = encryptedencrypted // === 'SECRET MESSAGE'
API
msg = encrypted.message(sender, receiver, message)
Returns an encrypted message from sender to receiver.
decrypted = encrypted.openMessage(sender, receviver, message)
Returns decrypted message from a message
License
The MIT LIcense