2013-07-13 23:47:37 +02:00
|
|
|
from crittografia.unicode import codifica
|
2012-12-25 23:19:52 +01:00
|
|
|
|
2013-07-13 23:47:37 +02:00
|
|
|
stringa = codifica("Testo da cifrare.")
|
2013-01-05 01:20:04 +01:00
|
|
|
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")
|