mirror of
https://github.com/tcsenpai/hmacrypt.git
synced 2025-06-04 10:00:05 +00:00
11 lines
269 B
Python
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)
|