Class Xchacha20poly1305Ietf
Methods
Static
decrypt
- decrypt(ciphertext: Uint8Array, key: Uint8Array, nonce: Uint8Array): Promise<Uint8Array>
-
Parameters
-
ciphertext: Uint8Array
-
key: Uint8Array
-
nonce: Uint8Array
Returns Promise<Uint8Array>
Static
encrypt
- encrypt(message: Uint8Array, key: Uint8Array, nonce: Uint8Array): Promise<Uint8Array>
-
Parameters
-
message: Uint8Array
-
key: Uint8Array
-
nonce: Uint8Array
Returns Promise<Uint8Array>