MCPcopy Index your code
hub / github.com/coder/code-server / hashLegacy

Function hashLegacy

src/node/util.ts:164–166  ·  view source on GitHub ↗
(str: string)

Source from the content-addressed store, hash-verified

162 * Kept for legacy reasons.
163 */
164export const hashLegacy = (str: string): string => {
165 return crypto.createHash("sha256").update(str).digest("hex")
166}
167
168/**
169 * Used to check if the password matches the hash using

Callers 2

isHashLegacyMatchFunction · 0.85
handlePasswordValidationFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected