Related questions
How to create a secure random AES key in Java?
What is the recommended way of generating a secure, random AES key in Java, using the standard JDK?
In other posts, I have found this, but using a SecretKeyFactory might be a better idea:
KeyGenerator keyGen = KeyGenerator.getInstance("AES");
SecureRandom …
AES-256 and PKCS7Padding fails in Java
I have a couple of library, C#, PHP and Android where they all encrypt/decrypt a string in the same way so they are all compatible with each other, i.e. C# writes and encrypts data to a database and …