sha1
sha1(
data):MaybePromiseLike<Uint8Array<ArrayBuffer>>
Defined in: packages/crypto-hash/src/legacy/sha1.ts:13
SHA-1. Prefers the Web Crypto kernel (crypto.subtle, real Promise) when
available; falls back to the TS kernel (synchronous, no Promise allocation)
otherwise — same dual-kernel shape as sha256. Web Crypto keeps "SHA-1" as
a valid digest() algorithm specifically for legacy interop (verified
empirically against Node’s implementation), even though SHA-1 itself is
broken — see _sha1-core.ts’s module doc.
Parameters
Section titled “Parameters”Uint8Array<ArrayBuffer>
Returns
Section titled “Returns”MaybePromiseLike<Uint8Array<ArrayBuffer>>