A recipient private key
A sender public key
An encrypted message payload in bytes
16-bytes AES auth tag and 12-byte AES initialization vector
Encode a message, separated from encode() to help testing
A sender private key
A recipient public key
A text message
An initialization vector
Decode an encrypted (AES-GCM algorithm) message payload
A recipient private key
A sender public key
An encrypted message payload
Decrypt data
Encode a message using AES-GCM algorithm
A sender private key
A recipient public key
A text message
Is payload string a hexadecimal string (default = false)
Encrypt data
Generate random bytes by length
The length of the random bytes
Generated using TypeDoc
Decode an encrypted message payload