Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/chjj/tty.js
/ hashed
Function
hashed
lib/tty.js:239–242 ·
view source on GitHub ↗
(hash)
Source
from the content-addressed store, hash-verified
237
}
238
239
function
hashed(hash) {
240
if
(!hash)
return
;
241
return
hash.length === 40 && !/[^a-f0-9]/.test(hash);
242
}
243
244
function
verify(user, pass, next) {
245
var
username = sha1(user)
Callers
1
tty.js
File · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected