Implement encryption of file

I can answer my own question: yes… I see the code below that checks the key size to make sure it's a valid AES key.