CAC: Columnar Transposition

5 0 0
                                    

Columnar transposition is a type of transposition cipher, this uses columns to create an encrypted message by using a given key.

-Encryption-

Key:Page
Word:Detective Codes

1st step: Isulat ang keyword at ilagay sa ibaba nito ang napiling plaintext.

P  A   G   E --->Keyword
D  E   T   E
C  T   I    V
E  C  O   D
E  S  X   X

Upang mapantay ang message,kailangan nating magdagdag ng X.

2nd Step: Ngayon leave the message and rearrange the key: "PAGE" number it from 1 to 4 BASED on the Alphabetical places.

P-4
A-1
G-3
E-2

3rd step: Ilapat muli ang message at gamitin ang numberings.

4  1  3  2
D  E  T E
C  T  I  V
E  C  O D
E  S  X  X

4th step: I-arrange ang columns mula 1 hanggang 4.

1  2   3  4
E  E  T   D
T  V  I   C
C  D O  E
S X  X  E

Note: Kung ano 'yong mga letters na katapat ng number na iyon,ay iyon lang.Kung mag-a-arrange,kasama pati yung letters na katapat nila.

-DECRYPTION-

Keyword: PAGE
Encrypted Message:
ETCSEVDXTIOXDCEE

Reverse the process.

—Hatiin ang buong message according sa letters ng Key. PAGE = 4 letters. So magiging:
ETCS EVDX TIOX DCEE

—List every 4-letter group in columns, bawat group isang column at isusulat sa left side muna  mula sa taas pa baba, then next group naman, mula sa taas baba and so on and so forth.
like this:
E E T D
T V I  C
C D O E
S X X E

—Leave it for a while and work on the key: PAGE.
Ayusin niyo yung code in Alphabetical order to obtain this: AEGP

— Now place the alphabetical ordered key at top.
A E G P
E E T D
T V I  C
C D O E
S X X E

— Ngayon may kaakibat na column na ang alphabetized key, irearrange sa original key kasama ang letters sa column nito. To obtain this:

P A G E
D E T E
C T I V
E C O D
E S X X

— List it down by rows.
DETECTIVECODES XX
(Note: X is use to be a null)

All About Project En-Decrypt✓[on~editing]Tahanan ng mga kuwento. Tumuklas ngayon