mirror of
https://github.com/pezkuwichain/pezkuwi-common.git
synced 2026-04-25 08:17:58 +00:00
chore: update to version 14.0.11 and align website URLs
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
import { naclSecretboxOpen } from './tweetnacl.js';
|
||||
/**
|
||||
* @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 function naclDecrypt(encrypted, nonce, secret) {
|
||||
return naclSecretboxOpen(encrypted, nonce, secret);
|
||||
}
|
||||
Reference in New Issue
Block a user