Functions
decrypt
- decrypt(keys: Keypair, from: string, input: Uint8Array, nonce: Uint8Array | null, authenticate?: Boolean): Promise<Uint8Array>
-
Parameters
-
keys: Keypair
-
from: string
-
input: Uint8Array
-
nonce: Uint8Array | null
-
Default value authenticate: Boolean = true
Returns Promise<Uint8Array>
encrypt
- encrypt(keys: Keypair, to: string, input: Uint8Array, nonce: Uint8Array | null, authenticate?: Boolean): Promise<Uint8Array>
-
Parameters
-
keys: Keypair
-
to: string
-
input: Uint8Array
-
nonce: Uint8Array | null
-
Default value authenticate: Boolean = true
Returns Promise<Uint8Array>