(password: string)
| 2 | |
| 3 | export default class Utils { |
| 4 | public static HashPassword(password: string): string { |
| 5 | return bcrypt.hashSync(password); |
| 6 | } |
| 7 | |
| 8 | public static ComparePassword(plain: string, hash: string): boolean { |
| 9 | return bcrypt.compareSync(plain, hash); |