Combines encrypt_file and decrypt_file into one method file.