Showing posts with label substitution. Show all posts
Showing posts with label substitution. Show all posts

Friday, May 28, 2010

Vigener Subtitution

Vigener is an Algorithm of plain encryption with caesar columnar subtitution.
so,every plain in colum encrypt with caesar Algortm by an different key.

Key : A T T A C K
Plain : M I S S I O
Chiper: M B L S K Y
Plain : N C A N C E
Chiper: N V T N E O
Plain : L E D
Chiper: L X W

So from the plain mission canceled encrypt with key ATTACK we can get the chiper text : MBLSK YNVTN EOLXW

we can make the php program of Vigener algorthm:
1. make the input text.

2. make the program.

3. testing the program.



Plain(with point '.') :

Key(with point '.') :



Caesar Algorithm

Caesar is an Algorithm which create by Yulius Caesar for encrypt his message text with
Chiper = Plain + 3 ;

Modern Caesar is not only plain + 3, but the key can be the other of modulus 26 or can use the mix alphabtic for encryption.

we can make a php program of caesar :


1. make the input page.





2. make the algorithm of caesar.





3. Testing the program.



Text(with point '.') :
Key(a number) :