MCPcopy Create free account
hub / github.com/Linen-dev/linen.dev / generateHash

Function generateHash

packages/utilities/src/password.ts:7–11  ·  view source on GitHub ↗
(password: string, salt: string)

Source from the content-addressed store, hash-verified

5}
6
7export function generateHash(password: string, salt: string): string {
8 const hash = createHmac('sha512', salt);
9 hash.update(password);
10 return hash.digest('hex');
11}
12
13export function secureCompare(a: string, b: string): boolean {
14 if (

Callers 9

password.spec.tsFile · 0.90
createFunction · 0.90
createFunction · 0.90
authorizeMethod · 0.90
createAuthMethod · 0.90
createIpsumCommunityFunction · 0.90
createSitCommunityFunction · 0.90
createDolorCommunityFunction · 0.90
createLinenCommunityFunction · 0.90

Calls 1

updateMethod · 0.45

Tested by

no test coverage detected