Raagh
This commit is contained in:
parent
83e70a4322
commit
136f3caa0a
1 changed files with 1 additions and 1 deletions
|
@ -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) => {
|
||||
|
|
Loading…
Reference in a new issue