mirror of
https://github.com/pezkuwichain/pezkuwi-common.git
synced 2026-04-22 04:27:59 +00:00
16 lines
452 B
TypeScript
16 lines
452 B
TypeScript
/**
|
|
* @name naclDecrypt
|
|
* @summary Decrypts a message using the supplied secretKey and nonce
|
|
* @description
|
|
* Returns an decrypted message, using the `secret` and `nonce`.
|
|
* @example
|
|
* <BR>
|
|
*
|
|
* ```javascript
|
|
* import { naclDecrypt } from '@pezkuwi/util-crypto';
|
|
*
|
|
* naclDecrypt([...], [...], [...]); // => [...]
|
|
* ```
|
|
*/
|
|
export declare function naclDecrypt(encrypted: Uint8Array, nonce: Uint8Array, secret: Uint8Array): Uint8Array | null;
|