Functions
decrypt
- decrypt(privKey: Uint8Array, pubKey: Uint8Array, input: any, nonce: Uint8Array | null, authenticate?: Boolean): Promise<Uint8Array>
-
Parameters
-
privKey: Uint8Array
-
pubKey: Uint8Array
-
input: any
-
nonce: Uint8Array | null
-
Default value authenticate: Boolean = true
Returns Promise<Uint8Array>
encrypt
- encrypt(privKey: Uint8Array, pubKey: Uint8Array, input: any, nonce: Uint8Array | null, authenticate?: Boolean): Promise<Uint8Array>
-
Parameters
-
privKey: Uint8Array
-
pubKey: Uint8Array
-
input: any
-
nonce: Uint8Array | null
-
Default value authenticate: Boolean = true
Returns Promise<Uint8Array>