mirror of
https://github.com/nx-bat/discordbot-ng.git
synced 2026-09-22 02:19:09 -04:00
How the hell did this get back
This commit is contained in:
@@ -92,7 +92,7 @@ class Encrypter {
|
||||
return decipher.update(encrypted, 'hex', 'utf8') + decipher.final('utf8');
|
||||
}
|
||||
static hash(clearText) {
|
||||
return crypto.createHash('sha256', this.key).update(clearText).digest('base64');
|
||||
return crypto.createHmac('sha256', this.key).update(clearText).digest('base64');
|
||||
}
|
||||
}
|
||||
Encrypter.algorithm = 'aes-256-cbc';
|
||||
|
||||
Reference in New Issue
Block a user