From 2dd8c8f386c32e1d6534a2ff49857c85e1c8b24d Mon Sep 17 00:00:00 2001 From: MeowcaTheoRange Date: Tue, 8 Oct 2024 21:39:20 -0500 Subject: [PATCH] oops! --- index.js | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/index.js b/index.js index bc5fa63..44a04d3 100644 --- a/index.js +++ b/index.js @@ -490,17 +490,17 @@ app.get('/updates', async (req, res) => { const enc_key = Buffer.from(process.env.RESUME_ENCRYPTION_KEY, "hex"); -app.get('/resumeEnc', async (req, res) => { - const iv = crypto.randomBytes(16); - const cipher = crypto.createCipheriv( - "aes-256-cbc", enc_key, iv - ); +// app.get('/resumeEnc', async (req, res) => { +// const iv = crypto.randomBytes(16); +// const cipher = crypto.createCipheriv( +// "aes-256-cbc", enc_key, iv +// ); - let encrypted = cipher.update(req.query.text, 'utf8', 'hex'); - encrypted += cipher.final('hex'); +// let encrypted = cipher.update(req.query.text, 'utf8', 'hex'); +// encrypted += cipher.final('hex'); - res.send(encrypted + "\n" + iv.toString('hex')); -}); +// res.send(encrypted + "\n" + iv.toString('hex')); +// }); function decipher(file, key) { let hexKey;