Skip to content

Commit

Permalink
fix: change decrypt function gf-495 (#505)
Browse files Browse the repository at this point in the history
  • Loading branch information
perekotypole authored Sep 24, 2024
1 parent a793d37 commit c2dc8fe
Showing 1 changed file with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,9 @@ class BaseEncryption implements Encryption {
public decrypt(encryptedData: string): string {
const decipher = crypto.createDecipheriv(this.algorithm, this.secret, null);

return decipher.update(
encryptedData,
this.outputEncoding,
this.inputEncoding,
return (
decipher.update(encryptedData, this.outputEncoding, this.inputEncoding) +
decipher.final(this.inputEncoding)
);
}

Expand Down

0 comments on commit c2dc8fe

Please sign in to comment.