theoEnc/server.py
2023-10-14 15:56:37 +02:00

15 lines
371 B
Python
Executable File

#!/usr/bin/python3
from theoEnc.E2EE import E2EE
from theoEnc.random import random_string
seed = random_string(20)
print("Seed: " + seed)
e2ee = E2EE(seed)
while True:
input("Neuer Schlüsselteil: [ENTER] ")
ckeypart = e2ee.generate_compressed_key_part(10)
print("\nKey: " + e2ee.get_key() + "\nNeuer kompressierter Schlüsselteil: " + ckeypart.decode())