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