Hi,
I am trying to encrypt and decrypt plain text using following six square method Can anyone pls provide help on how to achieve this using array programming
Square-1
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
Square-2
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
Square-3
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
Square-4
g m r i t
a b c d e
f h j k l
n o p s u
v w x y z
Square-5
a b c d e
f h j k l
g m r i t
n o p s u
v w x y z
Square-6
a b c d e
f h j k l
n o p s u
v w x y z
g m r i t
It uses six 5 by 5 matrices each arranged in a square, as shown in table-1.Each of the 5 by 5 matrices contains the letters of the alphabet (usually omitting "Q" to reduce the alphabet to fit into the square)
While scanning the plain text the first alphabet’s plain text is in square-1 and its cipher is in same row and column location of square-4. The second alphabet, its plain text is in square-2 and cipher text is in same row and column location of square-5. The third alphabet, its plain text is in square-3 and cipher text is in same row and column location of square-6
For example if the plain text is:
Professor Khurana will arrive
It’s cipher text is:
nmeazjplh fclovdg oihh vomivz gs
Thanks in Advance!!