(value: string)
| 30 | } |
| 31 | |
| 32 | export function getHash(value: string) { |
| 33 | const salt = bcrypt.genSaltSync(getPasswordSaltRounds()) |
| 34 | return bcrypt.hashSync(value, salt) |
| 35 | } |
| 36 | |
| 37 | export function compareHash(value1: string, value2: string) { |
| 38 | return bcrypt.compareSync(value1, value2) |
no test coverage detected