summaryrefslogtreecommitdiffstats
path: root/src/helpers/password-helpers.ts
diff options
context:
space:
mode:
authorLibravatar Markus Hatvan <markus_hatvan@aon.at>2021-10-14 13:24:58 +0200
committerLibravatar GitHub <noreply@github.com>2021-10-14 13:24:58 +0200
commitfe1ba2ad6affeb6c0e97c73171d8fa3f31dde73e (patch)
tree10caa332d957421e982c7ddd0c94623d5d62314d /src/helpers/password-helpers.ts
parentchore: convert various JS to TS (#2062) (diff)
downloadferdium-app-fe1ba2ad6affeb6c0e97c73171d8fa3f31dde73e.tar.gz
ferdium-app-fe1ba2ad6affeb6c0e97c73171d8fa3f31dde73e.tar.zst
ferdium-app-fe1ba2ad6affeb6c0e97c73171d8fa3f31dde73e.zip
chore: convert files to TS (#2066)
Diffstat (limited to 'src/helpers/password-helpers.ts')
-rw-r--r--src/helpers/password-helpers.ts6
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 @@
1import crypto from 'crypto'; 1import { createHash, BinaryLike } from 'crypto';
2 2
3export function hash(password: crypto.BinaryLike) { 3export 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
7export function scorePassword(password: string) { 7export function scorePassword(password: string) {