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

Function hash

src/node/util.ts:143–145  ·  view source on GitHub ↗
(password: string)

Source from the content-addressed store, hash-verified

141 * Used to hash the password.
142 */
143export const hash = async (password: string): Promise<string> => {
144 return await argon2.hash(password)
145}
146
147/**
148 * Used to verify if the password matches the hash

Callers 1

handlePasswordValidationFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected