hmacrypt/examples/file_encryption_example.py
2024-02-06 16:27:04 +01:00

11 lines
269 B
Python

import src.hmacrypt as hmacrypt
with open("test", "w+") as f:
f.write("secret message")
encrypted = hmacrypt.self_encrypt_file("test", "test_encrypted")
print(encrypted)
decrypted = hmacrypt.self_decrypt_file("test_encrypted", "test_decrypted")
print(decrypted)