MCPcopy Create free account
hub / github.com/MemTensor/MemOS / hashPassword

Method hashPassword

packages/memos-core/src/viewer/server.ts:261–263  ·  view source on GitHub ↗
(pw: string)

Source from the content-addressed store, hash-verified

259 }
260
261 private hashPassword(pw: string): string {
262 return crypto.createHash("sha256").update(pw + "memos-lite-salt-2026").digest("hex");
263 }
264
265 private createSession(): string {
266 const token = crypto.randomBytes(32).toString("hex");

Callers 3

handleSetupMethod · 0.95
handleLoginMethod · 0.95
handlePasswordResetMethod · 0.95

Calls 1

updateMethod · 0.45

Tested by

no test coverage detected