blob: 7f2573eccd1e438835fba7070bffe0a7fe1909a9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
// Vignere tableau
a = ascii('A')
// Print header
printf(" \t")
for i=1:26
printf("%c ",ascii(a+i-1))
end
printf("\n\n")
//end of header
for i=1:26
printf("%c\t",ascii(a+i-1))
for j=0:25
printf("%c ",ascii( a + modulo( i+j+key, 26 ) ) )
end
printf("\n")
end
|