aboutsummaryrefslogtreecommitdiffstats
path: root/src/helpers/password-helpers.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/helpers/password-helpers.ts')
-rw-r--r--src/helpers/password-helpers.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/helpers/password-helpers.ts b/src/helpers/password-helpers.ts
index 053321bbf..d5f2d0c49 100644
--- a/src/helpers/password-helpers.ts
+++ b/src/helpers/password-helpers.ts
@@ -1,10 +1,10 @@
1import { createHash, BinaryLike } from 'crypto'; 1import { createHash, BinaryLike } from 'crypto';
2 2
3export function hash(password: BinaryLike) { 3export function hash(password: BinaryLike): string {
4 return createHash('sha256').update(password).digest('base64'); 4 return createHash('sha256').update(password).digest('base64');
5} 5}
6 6
7export function scorePassword(password: string) { 7export function scorePassword(password: string): number {
8 let score = 0; 8 let score = 0;
9 if (!password) { 9 if (!password) {
10 return score; 10 return score;