MCPcopy Index your code
hub / github.com/DeepNotesApp/DeepNotes / computePasswordHash

Function computePasswordHash

apps/app-server/src/utils/crypto.ts:45–53  ·  view source on GitHub ↗
(password: Uint8Array)

Source from the content-addressed store, hash-verified

43export type PasswordValues = ReturnType<typeof derivePasswordValues>;
44
45export function computePasswordHash(password: Uint8Array) {
46 mainLogger.info('Started hashing password');
47
48 const result = sodium.crypto_pwhash_str(password, 2, 32 * 1048576);
49
50 mainLogger.info('Finished hashing password');
51
52 return result;
53}
54
55export function getDeviceHash(input: {
56 ip: string;

Callers 3

createGroupFunction · 0.90
enableFunction · 0.90
changeFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected