add encrypt_file and decrypt_file methods