Create CryptoFactory.java

You can use this class in your project to encrypt and decrypt files. It uses 256-bit AES with Cipher Block Chaining (CBC).