"js" — pure-JS (js-sha256). Default. Works in every runtime including
the browser. Slow (~5-10× slower than native at MB+ payloads).
"native" — node:cryptocreateHash. Built into Node, Deno and Bun
(no extra dependency). Not available in browsers without a polyfill —
selecting "native" in a browser bundle will throw at first put/get.
SHA-256 backend selector.
"js"— pure-JS (js-sha256). Default. Works in every runtime including the browser. Slow (~5-10× slower than native at MB+ payloads)."native"—node:cryptocreateHash. Built into Node, Deno and Bun (no extra dependency). Not available in browsers without a polyfill — selecting"native"in a browser bundle will throw at first put/get.