API reference / @evolu/common / Crypto / SymmetricCrypto
Interface: SymmetricCrypto
Defined in: packages/common/src/Crypto.ts:110
Symmetric cryptography.
Properties
| Property | Modifier | Type | Defined in |
|---|---|---|---|
decrypt | readonly | (ciphertext, encryptionKey, nonce) => Result<Uint8Array<ArrayBufferLike>, SymmetricCryptoDecryptError> | packages/common/src/Crypto.ts:121 |
encrypt | readonly | (plaintext, encryptionKey) => object | packages/common/src/Crypto.ts:113 |
nonceLength | readonly | number & Brand<"Int"> & Brand<"NonNegative"> | packages/common/src/Crypto.ts:111 |