(pw: string)
| 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"); |
no test coverage detected