Log key for testing

This commit is contained in:
Tarrgon
2026-06-30 14:42:51 -04:00
parent 9b468f2232
commit d85279564a
2 changed files with 7 additions and 5 deletions
+3 -2
View File
@@ -5,10 +5,11 @@ import crypto from 'crypto';
export class Encrypter {
private static algorithm = 'aes-256-cbc';
private static key: Buffer;
private static key: string;
static initialize(encryptionKey: string) {
this.key = crypto.scryptSync(encryptionKey, 'salt', 32);
console.log(`Initializing encrypter with key: ${encryptionKey}`);
this.key = encryptionKey;
}
static encrypt(clearText: string): string {