Files
common/docs/util-crypto/modules/_nacl_decrypt_.md
T
2019-01-11 10:00:17 +00:00

905 B

Functions

naclDecrypt

▸ naclDecrypt(encrypted: Uint8Array, nonce: Uint8Array, secret: Uint8Array): Uint8Array | null

Defined in nacl/decrypt.ts:22

name: naclDecrypt

signature: naclDecrypt (message: Uint8Array, nonce: Uint8Array, secret: Uint8Array): Uint8Array

summary: Decrypts a message using the supplied secretKey and nonce

description: Returns an decrypted message, using the secret and nonce.

example:

import { naclDecrypt } from '@polkadot/util-crypto';

naclDecrypt([...], [...], [...]); // => [...]

Parameters:

Name Type
encrypted Uint8Array
nonce Uint8Array
secret Uint8Array

Returns: Uint8Array | null