changed around how encrypt_file and decrypt_file work