include node_modules so release .zip is deployable

This commit is contained in:
2023-11-24 17:44:25 -05:00
parent 6c86cfe5d2
commit 8b11c41267
8963 changed files with 874175 additions and 1 deletions
+23
View File
@@ -0,0 +1,23 @@
import { utf8ToBytes } from './utils.js';
export { utf8ToBytes };
/**
* Alias to xsalsa20poly1305, for compatibility with libsodium / nacl
*/
export declare function secretbox(key: Uint8Array, nonce: Uint8Array): {
seal: (plaintext: Uint8Array) => Uint8Array;
open: (ciphertext: Uint8Array) => Uint8Array;
};
export declare function randomKey(): Uint8Array;
/**
* Encrypt plaintext under key with random nonce, using xchacha20poly1305.
* User never touches nonce: it is prepended to ciphertext.
*/
export declare function encrypt(key: Uint8Array, plaintext: Uint8Array): Uint8Array;
/**
* Decrypt plaintext under key with random nonce, using xchacha20poly1305.
* User never touches nonce: it is prepended to ciphertext.
*/
export declare function decrypt(key: Uint8Array, ciphertext: Uint8Array): Uint8Array;
export declare function aes_encrypt(key: Uint8Array, plaintext: Uint8Array): Promise<Uint8Array>;
export declare function aes_decrypt(key: Uint8Array, ciphertext: Uint8Array): Promise<Uint8Array>;
//# sourceMappingURL=simple.d.ts.map