forgot this one

This commit is contained in:
Tarrgon
2026-06-30 13:36:36 -04:00
parent 18c550ecda
commit 055a13e1d2
+1 -1
View File
@@ -91,7 +91,7 @@ class Encrypter {
return decipher.update(encrypted, 'hex', 'utf8') + decipher.final('utf8'); return decipher.update(encrypted, 'hex', 'utf8') + decipher.final('utf8');
} }
static hash(clearText) { static hash(clearText) {
return crypto.createHash('sha256', this.key).update(clearText).digest('base64'); return crypto.createHash('sha256', this.key).update(clearText.toString()).digest('base64');
} }
} }
Encrypter.algorithm = 'aes-256-cbc'; Encrypter.algorithm = 'aes-256-cbc';