We need an Hmac

This commit is contained in:
Tarrgon
2026-06-30 14:08:02 -04:00
parent 055a13e1d2
commit 11a6c8e38c
+1 -1
View File
@@ -37,6 +37,6 @@ export class Encrypter {
} }
static hash(clearText: string): string { static hash(clearText: string): string {
return crypto.createHash('sha256', this.key).update(clearText).digest('base64'); return crypto.createHmac('sha256', this.key).update(clearText).digest('base64');
} }
} }