diff --git a/src/shared/Encrypter.ts b/src/shared/Encrypter.ts index 9c251fc..e9047fc 100644 --- a/src/shared/Encrypter.ts +++ b/src/shared/Encrypter.ts @@ -37,6 +37,6 @@ export class Encrypter { } 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'); } } \ No newline at end of file