next up previous contents
Successivo: Cifrario di Hill Su: Principali Cifrari Precedente: Cifrario Affine

Cifrario di Vigenère

  Il cifrario di Vigenère è un ottimo esempio di cifrario a sostituzione di tipo polialfabetico ed è dovuto agli studi di Blaise de Vigenère, che visse nel diciassettesimo secolo. Sia m un intero positivo fissato. Definiamo tex2html_wrap_inline1806 = tex2html_wrap_inline1808 = tex2html_wrap_inline1924 = tex2html_wrap_inline1926 . Si ricordi che tex2html_wrap_inline1926 è l'insieme delle stringhe di lunghezza m su tex2html_wrap_inline1830 . Per una chiave k = ( tex2html_wrap_inline1936 ) tex2html_wrap_inline1938 , definiamo la funzione di cifratura come

displaymath1940

e quella di decifratura come

displaymath1942

dove tutte le operazioni sono fatte in tex2html_wrap_inline1830 .
Utilizzando la corrispondenza tex2html_wrap_inline1946 , tex2html_wrap_inline1948 , ..., tex2html_wrap_inline1950 della Tabella 1, possiamo associare ogni chiave k con una stringa alfabetica di lunghezza m.
L'idea del cifrario è di codificare m caratteri alfabetici alla volta: il messaggio viene partizionato in blocchi di m caratteri e ogni blocco è cifrato con la stessa chiave. Ai blocchi di n;SPMlt; m caratteri vengono aggiunti i mancanti m-n in modo arbitrario. Lo spazio delle chiavi è tex2html_wrap_inline1964 . Questo cifrario è stato ritenuto sicuro per circa due secoli, in quanto la chiave non è costituita solo dai valori tex2html_wrap_inline1966 , ma anche dal numero delle chiavi m.

Per semplicitá vediamo la cifratura con un esempio.

  pippo360

a b c d e f g h i j k l m n o p q r s t u v w x y z
b c d e f g h i j k l m n o p q r s t u v w x y z a
c d e f g h i j k l m n o p q r s t u v w x y z a b
d e f g h i j k l m n o p q r s t u v w x y z a b c
e f g h i j k l m n o p q r s t u v w x y z a b c d
f g h i j k l m n o p q r s t u v w x y z a b c d e
g h i j k l m n o p q r s t u v w x y z a b c d e f
h i j k l m n o p q r s t u v w x y z a b c d e f g
i j k l m n o p q r s t u v w x y z a b c d e f g h
j k l m n o p q r s t u v w x y z a b c d e f g h i
k l m n o p q r s t u v w x y z a b c d e f g h i j
l m n o p q r s t u v w x y z a b c d e f g h i j k
m n o p q r s t u v w x y z a b c d e f g h i j k l
n o p q r s t u v w x y z a b c d e f g h i j k l m
o p q r s t u v w x y z a b c d e f g h i j k l m n
p q r s t u v w x y z a b c d e f g h i j k l m n o
q r s t u v w x y z a b c d e f g h i j k l m n o p
r s t u v w x y z a b c d e f g h i j k l m n o p q
s t u v w x y z a b c d e f g h i j k l m n o p q r
t u v w x y z a b c d e f g h i j k l m n o p q r s
u v w x y z a b c d e f g h i j k l m n o p q r s t
v w x y z a b c d e f g h i j k l m n o p q r s t u
w x y z a b c d e f g h i j k l m n o p q r s t u v
x y z a b c d e f g h i j k l m n o p q r s t u v w
y z a b c d e f g h i j k l m n o p q r s t u v w x
z a b c d e f g h i j k l m n o p q r s t u v w x y

- Tabella di Vigenère -

Questo cifrario è tanto piú resistente agli attacchi crittoanalitici quanto piú lunga è la chiave.


next up previous contents
Successivo: Cifrario di Hill Su: Principali Cifrari Precedente: Cifrario Affine

Aniello Castiglione e Gerardo Maiorano < anicas,germai@zoo.diaedu.unisa.it >