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