diff --git a/src/lib/encryption.ts b/src/lib/encryption.ts index f36568b..635b457 100644 --- a/src/lib/encryption.ts +++ b/src/lib/encryption.ts @@ -1,6 +1,6 @@ import { createCipheriv, createDecipheriv, scrypt, randomBytes } from "node:crypto"; -const KEY = ((await scryptAsync(process.env.ENCRYPTION_KEY, 32)) as Buffer).toString("hex"); +const KEY = (await scryptAsync(process.env.ENCRYPTION_KEY, 32)) as Buffer; function scryptAsync(password: string, length: number) { return new Promise((resolve, reject) => {