Home > College Algebra > Ciphers > Chaocipher (encoder / decoder) example

12. Chaocipher example (encoder / decoder) ( Enter your problem )
  1. Examples
Other related methods
  1. A1Z26 Cipher (Letter to number Cipher)
  2. ADFGVX Cipher
  3. ADFGX Cipher
  4. Affine Cipher
  5. Alberti Cipher
  6. Atbash Cipher
  7. Autokey Cipher / Autoclave Cipher
  8. Bacon Cipher
  9. Beaufort Cipher
  10. Bifid Cipher
  11. Caesar Cipher
  12. Chaocipher
  13. Columnar transposition Cipher
  14. Double Transposition Cipher
  15. Enigma machine Cipher
  16. Four Square Cipher
  17. Gronsfeld Cipher
  18. Hill Cipher
  19. Kamasutra Cipher | Vatsyayana Cipher
  20. Morse Code Translator
  21. Multiplicative Cipher | Decimation Cipher
  22. Nihilist Cipher
  23. Playfair Cipher
  24. Polybius Square Cipher
  25. Porta Cipher
  26. Rail fence Cipher
  27. ROT-5 Cipher
  28. ROT-13 Cipher
  29. ROT-18 Cipher
  30. ROT-47 Cipher
  31. ROT-N Cipher
  32. Running Key Cipher
  33. Substitution Cipher
  34. Tap code Cipher | Knock code Cipher
  35. Three Square Cipher
  36. Trifid Cipher
  37. Trithemius Cipher
  38. Two-square Cipher
  39. Vigenere Cipher

11. Caesar Cipher
(Previous method)
13. Columnar transposition Cipher
(Next method)

1. Examples





1. Chaocipher encoder

Text : hello world
Left Disk Alphabet : fbtqcwvkideuagxsyhmpjnrozl
Right Disk Alphabet : ouzdinescfaxjbtphrgqwkyvml


Solution:
The Chaocipher is a encryption method that uses two rotating disks on which a custom alphabet is written. The two disks are identical and linked with a kind of gearing (ratio 1:1) that if one disk is turned clockwise, then the other turns counter-clockwise.

Text : helloworld
LEFT disk (Cipher letters) : fbtqcwvkideuagxsyhmpjnrozl (Cipher letters)
RIGHT disk (Plain letters) : ouzdinescfaxjbtphrgqwkyvml (Plain letters)

`1^(st)` letter is 'h'

Step-1: For the plain letter 'h' (of RIGHT disk), the corresponding cipher letter is 'y' (of LEFT disk)
fbtqcwvkideuagxs,y hmpjnrozl : LEFT disk (Cipher letters)
ouzdinescfaxjbtp h,rgqwkyvml : RIGHT disk (Plain letters)


Step-2: Permute the LEFT disk

2.1 Rotate the alphabet in order to set the cipher letter ('y') at the position 1 (zenith)
114
yhmpjnrozlfbtqcwvkideuagxs


2.2 Extract the letter at position 2 (zenith+1) ('h') and leave the position 2 empty
114
y_mpjnrozlfbtqcwvkideuagxs


2.3 Left Shift all letters from position 3 (zenith+2) to position 14 (nadir = zenith+13) and leave the position 14 empty
114
ympjnrozlfbtq_cwvkideuagxs


2.4 Insert the previously extracted letter ('h') into the empty position 14 (nadir = zenith+13)
114
ympjnrozlfbtqhcwvkideuagxs


Step-3: Permute the RIGHT disk

3.1 Rotate the alphabet in order to set the plain letter ('h') at the position 26 (zenith-1)
114
rgqwkyvmlouzdinescfaxjbtph


3.2 Extract the letter at position 3 (zenith+2) ('q') and leave the position 3 empty
114
rg_wkyvmlouzdinescfaxjbtph


3.3 Left Shift all letters from position 4 (zenith+3) to position 14 (nadir = zenith+13) and leave the position 14 empty
114
rgwkyvmlouzdi_nescfaxjbtph


3.4 Insert the previously extracted letter ('q') into the empty position 14 (nadir = zenith+13)
114
rgwkyvmlouzdiqnescfaxjbtph



`2^(nd)` letter is 'e'

Step-1: For the plain letter 'e' (of RIGHT disk), the corresponding cipher letter is 'w' (of LEFT disk)
ympjnrozlfbtqhc,w vkideuagxs : LEFT disk (Cipher letters)
rgwkyvmlouzdiqn e,scfaxjbtph : RIGHT disk (Plain letters)


Step-2: Permute the LEFT disk

2.1 Rotate the alphabet in order to set the cipher letter ('w') at the position 1 (zenith)
114
wvkideuagxsympjnrozlfbtqhc


2.2 Extract the letter at position 2 (zenith+1) ('v') and leave the position 2 empty
114
w_kideuagxsympjnrozlfbtqhc


2.3 Left Shift all letters from position 3 (zenith+2) to position 14 (nadir = zenith+13) and leave the position 14 empty
114
wkideuagxsymp_jnrozlfbtqhc


2.4 Insert the previously extracted letter ('v') into the empty position 14 (nadir = zenith+13)
114
wkideuagxsympvjnrozlfbtqhc


Step-3: Permute the RIGHT disk

3.1 Rotate the alphabet in order to set the plain letter ('e') at the position 26 (zenith-1)
114
scfaxjbtphrgwkyvmlouzdiqne


3.2 Extract the letter at position 3 (zenith+2) ('f') and leave the position 3 empty
114
sc_axjbtphrgwkyvmlouzdiqne


3.3 Left Shift all letters from position 4 (zenith+3) to position 14 (nadir = zenith+13) and leave the position 14 empty
114
scaxjbtphrgwk_yvmlouzdiqne


3.4 Insert the previously extracted letter ('f') into the empty position 14 (nadir = zenith+13)
114
scaxjbtphrgwkfyvmlouzdiqne



`3^(rd)` letter is 'l'

Step-1: For the plain letter 'l' (of RIGHT disk), the corresponding cipher letter is 'o' (of LEFT disk)
wkideuagxsympvjnr,o zlfbtqhc : LEFT disk (Cipher letters)
scaxjbtphrgwkfyvm l,ouzdiqne : RIGHT disk (Plain letters)


Step-2: Permute the LEFT disk

2.1 Rotate the alphabet in order to set the cipher letter ('o') at the position 1 (zenith)
114
ozlfbtqhcwkideuagxsympvjnr


2.2 Extract the letter at position 2 (zenith+1) ('z') and leave the position 2 empty
114
o_lfbtqhcwkideuagxsympvjnr


2.3 Left Shift all letters from position 3 (zenith+2) to position 14 (nadir = zenith+13) and leave the position 14 empty
114
olfbtqhcwkide_uagxsympvjnr


2.4 Insert the previously extracted letter ('z') into the empty position 14 (nadir = zenith+13)
114
olfbtqhcwkidezuagxsympvjnr


Step-3: Permute the RIGHT disk

3.1 Rotate the alphabet in order to set the plain letter ('l') at the position 26 (zenith-1)
114
ouzdiqnescaxjbtphrgwkfyvml


3.2 Extract the letter at position 3 (zenith+2) ('z') and leave the position 3 empty
114
ou_diqnescaxjbtphrgwkfyvml


3.3 Left Shift all letters from position 4 (zenith+3) to position 14 (nadir = zenith+13) and leave the position 14 empty
114
oudiqnescaxjb_tphrgwkfyvml


3.4 Insert the previously extracted letter ('z') into the empty position 14 (nadir = zenith+13)
114
oudiqnescaxjbztphrgwkfyvml



`4^(th)` letter is 'l'

Step-1: For the plain letter 'l' (of RIGHT disk), the corresponding cipher letter is 'r' (of LEFT disk)
olfbtqhcwkidezuagxsympvjn,r : LEFT disk (Cipher letters)
oudiqnescaxjbztphrgwkfyvm l, : RIGHT disk (Plain letters)


Step-2: Permute the LEFT disk

2.1 Rotate the alphabet in order to set the cipher letter ('r') at the position 1 (zenith)
114
rolfbtqhcwkidezuagxsympvjn


2.2 Extract the letter at position 2 (zenith+1) ('o') and leave the position 2 empty
114
r_lfbtqhcwkidezuagxsympvjn


2.3 Left Shift all letters from position 3 (zenith+2) to position 14 (nadir = zenith+13) and leave the position 14 empty
114
rlfbtqhcwkide_zuagxsympvjn


2.4 Insert the previously extracted letter ('o') into the empty position 14 (nadir = zenith+13)
114
rlfbtqhcwkideozuagxsympvjn


Step-3: Permute the RIGHT disk

3.1 Rotate the alphabet in order to set the plain letter ('l') at the position 26 (zenith-1)
114
oudiqnescaxjbztphrgwkfyvml


3.2 Extract the letter at position 3 (zenith+2) ('d') and leave the position 3 empty
114
ou_iqnescaxjbztphrgwkfyvml


3.3 Left Shift all letters from position 4 (zenith+3) to position 14 (nadir = zenith+13) and leave the position 14 empty
114
ouiqnescaxjbz_tphrgwkfyvml


3.4 Insert the previously extracted letter ('d') into the empty position 14 (nadir = zenith+13)
114
ouiqnescaxjbzdtphrgwkfyvml



`5^(th)` letter is 'o'

Step-1: For the plain letter 'o' (of RIGHT disk), the corresponding cipher letter is 'r' (of LEFT disk)
,r lfbtqhcwkideozuagxsympvjn : LEFT disk (Cipher letters)
o,uiqnescaxjbzdtphrgwkfyvml : RIGHT disk (Plain letters)


Step-2: Permute the LEFT disk

2.1 Rotate the alphabet in order to set the cipher letter ('r') at the position 1 (zenith)
114
rlfbtqhcwkideozuagxsympvjn


2.2 Extract the letter at position 2 (zenith+1) ('l') and leave the position 2 empty
114
r_fbtqhcwkideozuagxsympvjn


2.3 Left Shift all letters from position 3 (zenith+2) to position 14 (nadir = zenith+13) and leave the position 14 empty
114
rfbtqhcwkideo_zuagxsympvjn


2.4 Insert the previously extracted letter ('l') into the empty position 14 (nadir = zenith+13)
114
rfbtqhcwkideolzuagxsympvjn


Step-3: Permute the RIGHT disk

3.1 Rotate the alphabet in order to set the plain letter ('o') at the position 26 (zenith-1)
114
uiqnescaxjbzdtphrgwkfyvmlo


3.2 Extract the letter at position 3 (zenith+2) ('q') and leave the position 3 empty
114
ui_nescaxjbzdtphrgwkfyvmlo


3.3 Left Shift all letters from position 4 (zenith+3) to position 14 (nadir = zenith+13) and leave the position 14 empty
114
uinescaxjbzdt_phrgwkfyvmlo


3.4 Insert the previously extracted letter ('q') into the empty position 14 (nadir = zenith+13)
114
uinescaxjbzdtqphrgwkfyvmlo



`6^(th)` letter is 'w'

Step-1: For the plain letter 'w' (of RIGHT disk), the corresponding cipher letter is 'x' (of LEFT disk)
rfbtqhcwkideolzuag,x sympvjn : LEFT disk (Cipher letters)
uinescaxjbzdtqphrg w,kfyvmlo : RIGHT disk (Plain letters)


Step-2: Permute the LEFT disk

2.1 Rotate the alphabet in order to set the cipher letter ('x') at the position 1 (zenith)
114
xsympvjnrfbtqhcwkideolzuag


2.2 Extract the letter at position 2 (zenith+1) ('s') and leave the position 2 empty
114
x_ympvjnrfbtqhcwkideolzuag


2.3 Left Shift all letters from position 3 (zenith+2) to position 14 (nadir = zenith+13) and leave the position 14 empty
114
xympvjnrfbtqh_cwkideolzuag


2.4 Insert the previously extracted letter ('s') into the empty position 14 (nadir = zenith+13)
114
xympvjnrfbtqhscwkideolzuag


Step-3: Permute the RIGHT disk

3.1 Rotate the alphabet in order to set the plain letter ('w') at the position 26 (zenith-1)
114
kfyvmlouinescaxjbzdtqphrgw


3.2 Extract the letter at position 3 (zenith+2) ('y') and leave the position 3 empty
114
kf_vmlouinescaxjbzdtqphrgw


3.3 Left Shift all letters from position 4 (zenith+3) to position 14 (nadir = zenith+13) and leave the position 14 empty
114
kfvmlouinesca_xjbzdtqphrgw


3.4 Insert the previously extracted letter ('y') into the empty position 14 (nadir = zenith+13)
114
kfvmlouinescayxjbzdtqphrgw



`7^(th)` letter is 'o'

Step-1: For the plain letter 'o' (of RIGHT disk), the corresponding cipher letter is 'j' (of LEFT disk)
xympv,j nrfbtqhscwkideolzuag : LEFT disk (Cipher letters)
kfvml o,uinescayxjbzdtqphrgw : RIGHT disk (Plain letters)


Step-2: Permute the LEFT disk

2.1 Rotate the alphabet in order to set the cipher letter ('j') at the position 1 (zenith)
114
jnrfbtqhscwkideolzuagxympv


2.2 Extract the letter at position 2 (zenith+1) ('n') and leave the position 2 empty
114
j_rfbtqhscwkideolzuagxympv


2.3 Left Shift all letters from position 3 (zenith+2) to position 14 (nadir = zenith+13) and leave the position 14 empty
114
jrfbtqhscwkid_eolzuagxympv


2.4 Insert the previously extracted letter ('n') into the empty position 14 (nadir = zenith+13)
114
jrfbtqhscwkidneolzuagxympv


Step-3: Permute the RIGHT disk

3.1 Rotate the alphabet in order to set the plain letter ('o') at the position 26 (zenith-1)
114
uinescayxjbzdtqphrgwkfvmlo


3.2 Extract the letter at position 3 (zenith+2) ('n') and leave the position 3 empty
114
ui_escayxjbzdtqphrgwkfvmlo


3.3 Left Shift all letters from position 4 (zenith+3) to position 14 (nadir = zenith+13) and leave the position 14 empty
114
uiescayxjbzdt_qphrgwkfvmlo


3.4 Insert the previously extracted letter ('n') into the empty position 14 (nadir = zenith+13)
114
uiescayxjbzdtnqphrgwkfvmlo



`8^(th)` letter is 'r'

Step-1: For the plain letter 'r' (of RIGHT disk), the corresponding cipher letter is 'z' (of LEFT disk)
jrfbtqhscwkidneol,z uagxympv : LEFT disk (Cipher letters)
uiescayxjbzdtnqph r,gwkfvmlo : RIGHT disk (Plain letters)


Step-2: Permute the LEFT disk

2.1 Rotate the alphabet in order to set the cipher letter ('z') at the position 1 (zenith)
114
zuagxympvjrfbtqhscwkidneol


2.2 Extract the letter at position 2 (zenith+1) ('u') and leave the position 2 empty
114
z_agxympvjrfbtqhscwkidneol


2.3 Left Shift all letters from position 3 (zenith+2) to position 14 (nadir = zenith+13) and leave the position 14 empty
114
zagxympvjrfbt_qhscwkidneol


2.4 Insert the previously extracted letter ('u') into the empty position 14 (nadir = zenith+13)
114
zagxympvjrfbtuqhscwkidneol


Step-3: Permute the RIGHT disk

3.1 Rotate the alphabet in order to set the plain letter ('r') at the position 26 (zenith-1)
114
gwkfvmlouiescayxjbzdtnqphr


3.2 Extract the letter at position 3 (zenith+2) ('k') and leave the position 3 empty
114
gw_fvmlouiescayxjbzdtnqphr


3.3 Left Shift all letters from position 4 (zenith+3) to position 14 (nadir = zenith+13) and leave the position 14 empty
114
gwfvmlouiesca_yxjbzdtnqphr


3.4 Insert the previously extracted letter ('k') into the empty position 14 (nadir = zenith+13)
114
gwfvmlouiescakyxjbzdtnqphr



`9^(th)` letter is 'l'

Step-1: For the plain letter 'l' (of RIGHT disk), the corresponding cipher letter is 'm' (of LEFT disk)
zagxy,m pvjrfbtuqhscwkidneol : LEFT disk (Cipher letters)
gwfvm l,ouiescakyxjbzdtnqphr : RIGHT disk (Plain letters)


Step-2: Permute the LEFT disk

2.1 Rotate the alphabet in order to set the cipher letter ('m') at the position 1 (zenith)
114
mpvjrfbtuqhscwkidneolzagxy


2.2 Extract the letter at position 2 (zenith+1) ('p') and leave the position 2 empty
114
m_vjrfbtuqhscwkidneolzagxy


2.3 Left Shift all letters from position 3 (zenith+2) to position 14 (nadir = zenith+13) and leave the position 14 empty
114
mvjrfbtuqhscw_kidneolzagxy


2.4 Insert the previously extracted letter ('p') into the empty position 14 (nadir = zenith+13)
114
mvjrfbtuqhscwpkidneolzagxy


Step-3: Permute the RIGHT disk

3.1 Rotate the alphabet in order to set the plain letter ('l') at the position 26 (zenith-1)
114
ouiescakyxjbzdtnqphrgwfvml


3.2 Extract the letter at position 3 (zenith+2) ('i') and leave the position 3 empty
114
ou_escakyxjbzdtnqphrgwfvml


3.3 Left Shift all letters from position 4 (zenith+3) to position 14 (nadir = zenith+13) and leave the position 14 empty
114
ouescakyxjbzd_tnqphrgwfvml


3.4 Insert the previously extracted letter ('i') into the empty position 14 (nadir = zenith+13)
114
ouescakyxjbzditnqphrgwfvml



`10^(th)` letter is 'd'

Step-1: For the plain letter 'd' (of RIGHT disk), the corresponding cipher letter is 'w' (of LEFT disk)
mvjrfbtuqhsc,w pkidneolzagxy : LEFT disk (Cipher letters)
ouescakyxjbz d,itnqphrgwfvml : RIGHT disk (Plain letters)


Plaintext : helloworld
LEFT disk : fbtqcwvkideuagxsyhmpjnrozl
RIGHT disk : ouzdinescfaxjbtphrgqwkyvml
Ciphertext : yworrxjzmw





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



11. Caesar Cipher
(Previous method)
13. Columnar transposition Cipher
(Next method)





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

.