Download as pptx, pdf, or txt
Download as pptx, pdf, or txt
You are on page 1of 10

FOUR-

SQUARE
CIPHER
Sibgha Saleem UET-02
Shanza Arooj UET-37
Arooba Masood UET-52
Introduction 01 03 Algorithm

Security Analysis 02 04 Implementation

2
INTRODUCTION

● The four-square cipher is a


modified version of the Playfair
cipher.
● It incorporates components of
Playfair cipher and the
Polyalphabetic cipher to create a
more complex encryption
algorithm.
● There are four 5*5 grids
involved.

3
The algorithm of the four-
square cipher provides better
security than the Playfair
cipher and the two-square
cipher.
SECURITY

4
ALGORITHM ENCYPTION

1 2 3

There are four Grids and two The whole plaintext should Find the first letter of each pair in the
Keys. Top-Left and Bottom- be split into pairs. Each pair upper left table and the second letter
Right contain letters in should consist of two in the lower right table. Then, create a
the alphabetical order. In consecutive letters. If rectangle that covers over four tables.
Top-Right first fill secret required, a rare letter Q The letters are encrypted by replacing
key1 then all the other should be appended to them by another two letters, that are
alphabets. Bottom-Left with the original text. pointed by two other corners of the
secret key2. rectangle.

5
ALGORITHM DECRYPTION

1 2 3

There are four Grids and two The whole plaintext should Find the first letter of each pair in the
Keys. Top-Left and Bottom- be split into pairs. Each pair upper left table and the second letter
Right contain letters in should consist of two in the lower right table. Then, create a
the alphabetical order. In consecutive letters. rectangle that covers over four tables.
Top-Right first fill secret The letters are encrypted by replacing
key1 then all the other them by another two letters, that are
alphabets. Bottom-Left with pointed by two other corners of the
secret key2. rectangle.

6
EXAMPLE

● Key1: Titus Flavius Sabinus

● Key2: Vespasia Polla

● Plain Text: HELLO

● Pairs: HE LL OQ

● CipherText: NS CD CR

7
IMPLEMENTATION

8
REFRENCE

http://www.crypto-it.net/eng/
simple/four-square.html

9
THANK YOU

You might also like