MCPcopy Create free account
hub / github.com/Useful-Scripts-Extension/useful-script / sha1_ft

Function sha1_ft

scripts/passwordGenerator.js:70–75  ·  view source on GitHub ↗
(t, b, c, d)

Source from the content-addressed store, hash-verified

68 }
69
70 function sha1_ft(t, b, c, d) {
71 if (t < 20) return (b & c) | (~b & d);
72 if (t < 40) return b ^ c ^ d;
73 if (t < 60) return (b & c) | (b & d) | (c & d);
74 return b ^ c ^ d;
75 }
76
77 function sha1_kt(t) {
78 return t < 20

Callers 1

core_sha1Function · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected