Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Useful-Scripts-Extension/useful-script
/ b64_sha1
Function
b64_sha1
scripts/passwordGenerator.js:29–31 ·
view source on GitHub ↗
(s)
Source
from the content-addressed store, hash-verified
27
var
chrsz = 8;
28
29
function
b64_sha1(s) {
30
return
binb2b64(core_sha1(str2binb(s), s.length * chrsz));
31
}
32
33
function
core_sha1(x, len) {
34
x[len >> 5] |= 0x80 << (24 - len);
Callers
1
doIt
Function · 0.85
Calls
3
binb2b64
Function · 0.85
core_sha1
Function · 0.85
str2binb
Function · 0.85
Tested by
no test coverage detected