Merge pull request #331 from VermiumSifell/main
🏷️ temporarely fixed encryption types
This commit is contained in:
commit
af8ed873fb
1 changed files with 1 additions and 1 deletions
|
@ -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()]);
|
||||
|
|
Loading…
Add table
Reference in a new issue