Aldonis kontrolo pri tekstolongo

This commit is contained in:
1010 2024-02-15 06:04:30 +00:00
parent 3030f7cfd6
commit 410a7fc367
1 changed files with 5 additions and 0 deletions

View File

@ -70,6 +70,11 @@ while True:
secret = input(_("Sekreta mesaĝo: "))
password = input(_("Pasvorto: "))
pub_msg = input(_("Publika teksto: "))
if len(pub_msg) < 2:
print(_("La longo de publika teksto devas esti almenaŭ du signoj!"))
continue
encrypt_msg = encrypt(secret, password)
hiding = hex2hid(encrypt_msg)
wrapping = wrap(hiding)