Home > College Algebra > Ciphers > Double Transposition Cipher (encoder / decoder) example

15. Double Transposition Cipher (encoder / decoder) example ( Enter your problem )

1. Examples





1. Double Transposition Cipher encoder

Text : ABCD efghi 1234
Key1 : key
Key2 : word
Remove Special Characters (except a-z0-9) : True


Solution:
The double transposition cipher applies on columnar transposition cipher twice with two keys

Columnar transposition on Plaintext using Key1 : key

Write the plaintext in row-by-row
k
2
e
1
y
3
abc
def
ghi
123
4__

The columns are sorted alphabetically, based on the keyword and the new table is
e
1
k
2
y
3
bac
edf
hgi
213
_4_

Read the ciphertext in column-by-column
beh2,adg14,cfi3

Plaintext : abcdefghi1234
Key : key
Ciphertext : beh2adg14cfi3

Columnar transposition on this Ciphertext-1 using Key2 : word

Write the plaintext in row-by-row
w
4
o
2
r
3
d
1
beh2
adg1
4cfi
3___

The columns are sorted alphabetically, based on the keyword and the new table is
d
1
o
2
r
3
w
4
2ehb
1dga
icf4
___3

Read the ciphertext in column-by-column
21i,edc,hgf,ba43

Plaintext : beh2adg14cfi3
Key : word
Ciphertext : 21iedchgfba43

Plaintext : abcdefghi1234
Key1 : key
Ciphertext-1 : beh2adg14cfi3
Key2 : word
Ciphertext : 21iedchgfba43

2. Double Transposition Cipher encoder

Text : hello world 1234
Key1 : key
Key2 : word
Remove Special Characters (except a-z0-9) : True


Solution:
The double transposition cipher applies on columnar transposition cipher twice with two keys

Columnar transposition on Plaintext using Key1 : key

Write the plaintext in row-by-row
k
2
e
1
y
3
hel
low
orl
d12
34_

The columns are sorted alphabetically, based on the keyword and the new table is
e
1
k
2
y
3
ehl
olw
rol
1d2
43_

Read the ciphertext in column-by-column
eor14,hlod3,lwl2

Plaintext : helloworld1234
Key : key
Ciphertext : eor14hlod3lwl2

Columnar transposition on this Ciphertext-1 using Key2 : word

Write the plaintext in row-by-row
w
4
o
2
r
3
d
1
eor1
4hlo
d3lw
l2__

The columns are sorted alphabetically, based on the keyword and the new table is
d
1
o
2
r
3
w
4
1ore
ohl4
w3ld
_2_l

Read the ciphertext in column-by-column
1ow,oh32,rll,e4dl

Plaintext : eor14hlod3lwl2
Key : word
Ciphertext : 1owoh32rlle4dl

Plaintext : helloworld1234
Key1 : key
Ciphertext-1 : eor14hlod3lwl2
Key2 : word
Ciphertext : 1owoh32rlle4dl





This material is intended as a summary. Use your textbook for detail explanation.
Any bug, improvement, feedback then Submit Here





Share this solution or page with your friends.
 
 
Copyright © 2026. All rights reserved. Terms, Privacy
 
 

.