From 136f3caa0a190eaabb02c83f7d244fab8d5f746a Mon Sep 17 00:00:00 2001 From: cirroskais Date: Fri, 26 Jul 2024 01:18:24 -0400 Subject: [PATCH] Raagh --- src/lib/encryption.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) => {