Merge pull request #331 from VermiumSifell/main

🏷️ temporarely fixed encryption types
This commit is contained in:
Axel Olausson Holtenäs 2022-05-21 00:38:09 +02:00 committed by GitHub
commit af8ed873fb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -4,7 +4,7 @@ import { secretKey, algorithm } from "@config/encryption";
const iv = crypto.randomBytes(16);
const encrypt = (text: any): { iv: error; content: error } => {
const encrypt = (text: any): { iv: any; content: any } => {
const cipher = crypto.createCipheriv(algorithm, secretKey, iv);
const encrypted = Buffer.concat([cipher.update(text), cipher.final()]);