Encrypt data using XChaCha20-Poly1305 with the fastest available backend.
const key = randomBytes(32);const result = wasmAeadEncrypt({ key, plaintext: "secret" });console.log(result.backend); // "js" | "wasm-simd" Copy
const key = randomBytes(32);const result = wasmAeadEncrypt({ key, plaintext: "secret" });console.log(result.backend); // "js" | "wasm-simd"
Encrypt data using XChaCha20-Poly1305 with the fastest available backend.