Skip to content

Commit

Permalink
Fixed bug where SecretKeyEncryptor#decrypt would use the encryptCipher.
Browse files Browse the repository at this point in the history
  • Loading branch information
Raft08 committed Mar 29, 2024
1 parent 4b0e27e commit ecaeec5
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ public byte[] encrypt(byte[] bytes) throws IllegalBlockSizeException, BadPadding

@Override
public byte[] decrypt(byte[] bytes) throws IllegalBlockSizeException, BadPaddingException {
return this.encryptCipher.doFinal(bytes);
return this.decryptCipher.doFinal(bytes);
}

@Override
Expand Down

0 comments on commit ecaeec5

Please sign in to comment.