Wednesday, September 25, 2019

Java AES Key Generation, Encryption and Decryption

Simple Note

Test File:

Utils Implementation

If you get Illegal key size error, probably need to download JCE Jars, please refer to

InvalidKeyException Illegal key size


Java Security: Illegal key size or default parameters?

Other References

The article teach me use char[] over String
Why is char[] preferred over String for passwords?

This one teach me basic Encryption and Decryption
Initial bytes incorrect after Java AES/CBC decryption

How to convert between char[] and byte[]
Converting char[] to byte[]

No comments:

Post a Comment