Skip to content

Commit

Permalink
ignore ts warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
wheresvic committed May 16, 2023
1 parent 44ae465 commit 463e792
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/mongoose-field-encryption.js
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,9 @@ const decrypt = function (encryptedHex, secret) {
return decryptAes256Ctr(encryptedArray[0], secret);
}

// @ts-ignore
const iv = new Buffer.from(encryptedArray[0], "hex");
// @ts-ignore
const encrypted = new Buffer.from(encryptedArray[1], "hex");
const decipher = crypto.createDecipheriv(algorithm, secret, iv);
const decrypted = decipher.update(encrypted);
Expand Down

0 comments on commit 463e792

Please sign in to comment.