diff --git a/security/src/main/java/fr/atlasworld/common/crypto/encryptor/SecretKeyEncryptor.java b/security/src/main/java/fr/atlasworld/common/crypto/encryptor/SecretKeyEncryptor.java index 41776b4..fdd78ee 100644 --- a/security/src/main/java/fr/atlasworld/common/crypto/encryptor/SecretKeyEncryptor.java +++ b/security/src/main/java/fr/atlasworld/common/crypto/encryptor/SecretKeyEncryptor.java @@ -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