add comment and test

This commit is contained in:
Looly
2020-09-01 15:53:16 +08:00
parent 981bc843e1
commit 025728e389
5 changed files with 28 additions and 3 deletions

View File

@@ -204,7 +204,7 @@ public class SymmetricCrypto implements Serializable {
} else {
cipher.init(Cipher.ENCRYPT_MODE, secretKey, params);
}
return cipher.doFinal(paddingDataWithZero(data, cipher.getBlockSize()));
return cipher.doFinal(paddingDataWithZero(data, cipher.getBlockSize()));
} catch (Exception e) {
throw new CryptoException(e);
} finally {