Modifed AES test to encrypt files