crypto/Esempio.py

10 lines
221 B
Python
Raw Normal View History

from crittografia.unicode import codifica
2012-12-25 23:19:52 +01:00
stringa = codifica("Testo da cifrare.")
a = stringa.rot13()
2013-08-01 15:32:30 +02:00
b = stringa.vigenère(verme="verme")
2012-12-25 23:19:52 +01:00
c = stringa.vernam()
2013-08-01 15:32:30 +02:00
d = stringa.gödel(primo=1117)
2012-12-25 23:19:52 +01:00
2013-08-01 15:32:30 +02:00
print(a, b, c, d, sep="\n")