hmacrypt/file_encryption_example.py
thecookingsenpai c0ec66f63b Version 1
2024-01-28 16:55:26 +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)