MCPcopy
hub / github.com/angular/angular / sha1

Function sha1

packages/service-worker/worker/src/sha1.ts:20–24  ·  view source on GitHub ↗
(str: string)

Source from the content-addressed store, hash-verified

18 */
19
20export function sha1(str: string): string {
21 const utf8 = str;
22 const words32 = stringToWords32(utf8, Endian.Big);
23 return _sha1(words32, utf8.length * 8);
24}
25
26export function sha1Binary(buffer: ArrayBuffer): string {
27 const words32 = arrayBufferToWords32(buffer, Endian.Big);

Callers 6

happy_spec.tsFile · 0.90
initializeSwForFunction · 0.90
removeAssetFromCacheFunction · 0.90
hashManifestFunction · 0.90
hashMethod · 0.90
addFileMethod · 0.90

Calls 2

stringToWords32Function · 0.70
_sha1Function · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…