diff options
Diffstat (limited to 'src/helpers/password-helpers.ts')
-rw-r--r-- | src/helpers/password-helpers.ts | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/helpers/password-helpers.ts b/src/helpers/password-helpers.ts index e5d9a4a25..053321bbf 100644 --- a/src/helpers/password-helpers.ts +++ b/src/helpers/password-helpers.ts | |||
@@ -1,7 +1,7 @@ | |||
1 | import crypto from 'crypto'; | 1 | import { createHash, BinaryLike } from 'crypto'; |
2 | 2 | ||
3 | export function hash(password: crypto.BinaryLike) { | 3 | export function hash(password: BinaryLike) { |
4 | return crypto.createHash('sha256').update(password).digest('base64'); | 4 | return createHash('sha256').update(password).digest('base64'); |
5 | } | 5 | } |
6 | 6 | ||
7 | export function scorePassword(password: string) { | 7 | export function scorePassword(password: string) { |