Aldonis kontrolo pri tekstolongo
This commit is contained in:
parent
3030f7cfd6
commit
410a7fc367
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue