SlideShare a Scribd company logo
Teaching the Group Theory of Permutation Ciphers 
Joshua Holden 
Rose-Hulman Institute of Technology 
http://www.rose-hulman.edu/~holden 
Joshua Holden (RHIT) Group Theory of Permutation Ciphers 1 / 13
A historical example 
Taj ad-Din Ali ibn ad-Duraihim (1312–1361), worked and taught in 
Damascus and Cairo. 
In a book that was considered lost until the late 20th century, ibn 
ad-Duraihim described 24 variations of transposition ciphers. 
Example 
plaintext: dr in kt ot he ro se 
ciphertext: RD NI TK TO EH OR ES 
Joshua Holden (RHIT) Group Theory of Permutation Ciphers 2 / 13
So what? 
We are seeing the first explicit example of a permutation cipher. 
Definition 
A permutation is a bijection from a finite set to itself. 
Example 
plaintext: dr in kt ot he ro se 
ciphertext: RD NI TK TO EH OR ES 
Ibn ad-Duraihim’s permutation is 
 
1 2 
2 1 
 
: 
Joshua Holden (RHIT) Group Theory of Permutation Ciphers 3 / 13
Another example 
Example 
plaintext: ruby wine 
ciphertext: UYBR IENW 
This is a cipher based on the permutation 
 
1 2 3 4 
2 4 3 1 
 
: 
Note 
Some people prefer to use a notation based on where the letters go. 
We will use one based on where they come from. 
Joshua Holden (RHIT) Group Theory of Permutation Ciphers 4 / 13
Keys and keywords 
Clearly the key to a permutation cipher is the permutation. 
We can choose and remember a permutation by a keyword. 
Example 
TALE is a keyword for the permutation 
 
1 2 3 4 
2 4 3 1 
 
: 
plaintext: thep aper andt hepe nllu 
Joshua Holden (RHIT) Group Theory of Permutation Ciphers 5 / 13
Keys and keywords 
Clearly the key to a permutation cipher is the permutation. 
We can choose and remember a permutation by a keyword. 
Example 
TALE is a keyword for the permutation 
 
1 2 3 4 
2 4 3 1 
 
: 
keyword: TALE TALE TALE TALE TALE 
plaintext: thep aper andt hepe nllu 
Joshua Holden (RHIT) Group Theory of Permutation Ciphers 5 / 13
Keys and keywords 
Clearly the key to a permutation cipher is the permutation. 
We can choose and remember a permutation by a keyword. 
Example 
TALE is a keyword for the permutation 
 
1 2 3 4 
2 4 3 1 
 
: 
4132 4132 4132 4132 4132 
keyword: TALE TALE TALE TALE TALE 
plaintext: thep aper andt hepe nllu 
Joshua Holden (RHIT) Group Theory of Permutation Ciphers 5 / 13
Keys and keywords 
Clearly the key to a permutation cipher is the permutation. 
We can choose and remember a permutation by a keyword. 
Example 
TALE is a keyword for the permutation 
 
1 2 3 4 
2 4 3 1 
 
: 
4132 4132 4132 4132 4132 
keyword: TALE TALE TALE TALE TALE 
plaintext: thep aper andt hepe nllu 
ciphertext: HPET PREA NTDA EEPH LULN 
Joshua Holden (RHIT) Group Theory of Permutation Ciphers 5 / 13
Keys and keywords 
Clearly the key to a permutation cipher is the permutation. 
We can choose and remember a permutation by a keyword. 
Example 
TALE is a keyword for the permutation 
 
1 2 3 4 
2 4 3 1 
 
: 
4132 4132 4132 4132 4132 
keyword: TALE TALE TALE TALE TALE 
plaintext: thep aper andt hepe nllu 
ciphertext: HPET PREA NTDA EEPH LULN 
HPETP REANT DAEEP HLULN 
Joshua Holden (RHIT) Group Theory of Permutation Ciphers 5 / 13
Deciphering 
In order to decipher, you need to take the inverse of the permutation. 
The inverse of 
 
1 2 3 4 
2 4 3 1 
 
is 
 
1 2 3 4 
4 1 3 2 
 
. 
Note 
We saw the numbers 4132 earlier! 
Equivalently, alphabetize the keyword and read off the plaintext in 
original keyword order: 
Example 
ciphertext: HBET TLTA ADNE HSET ODRW 
Joshua Holden (RHIT) Group Theory of Permutation Ciphers 6 / 13
Deciphering 
In order to decipher, you need to take the inverse of the permutation. 
The inverse of 
 
1 2 3 4 
2 4 3 1 
 
is 
 
1 2 3 4 
4 1 3 2 
 
. 
Note 
We saw the numbers 4132 earlier! 
Equivalently, alphabetize the keyword and read off the plaintext in 
original keyword order: 
Example 
keyword: AELT AELT AELT AELT AELT 
ciphertext: HBET TLTA ADNE HSET ODRW 
Joshua Holden (RHIT) Group Theory of Permutation Ciphers 6 / 13
Deciphering 
In order to decipher, you need to take the inverse of the permutation. 
The inverse of 
 
1 2 3 4 
2 4 3 1 
 
is 
 
1 2 3 4 
4 1 3 2 
 
. 
Note 
We saw the numbers 4132 earlier! 
Equivalently, alphabetize the keyword and read off the plaintext in 
original keyword order: 
Example 
2431 2431 2431 2431 2431 
keyword: AELT AELT AELT AELT AELT 
ciphertext: HBET TLTA ADNE HSET ODRW 
Joshua Holden (RHIT) Group Theory of Permutation Ciphers 6 / 13
Deciphering 
In order to decipher, you need to take the inverse of the permutation. 
The inverse of 
 
1 2 3 4 
2 4 3 1 
 
is 
 
1 2 3 4 
4 1 3 2 
 
. 
Note 
We saw the numbers 4132 earlier! 
Equivalently, alphabetize the keyword and read off the plaintext in 
original keyword order: 
Example 
2431 2431 2431 2431 2431 
keyword: AELT AELT AELT AELT AELT 
ciphertext: HBET TLTA ADNE HSET ODRW 
plaintext: theb attl eand thes word 
Joshua Holden (RHIT) Group Theory of Permutation Ciphers 6 / 13
How many keys? 
The number of keys for a permutation cipher on n letters is the number 
of permutations, n!. 
But one of them gives the trivial cipher: 
Example 
plaintext: ruby wine 
Joshua Holden (RHIT) Group Theory of Permutation Ciphers 7 / 13
How many keys? 
The number of keys for a permutation cipher on n letters is the number 
of permutations, n!. 
But one of them gives the trivial cipher: 
Example 
keyword: ABCD ABCD 
plaintext: ruby wine 
Joshua Holden (RHIT) Group Theory of Permutation Ciphers 7 / 13
How many keys? 
The number of keys for a permutation cipher on n letters is the number 
of permutations, n!. 
But one of them gives the trivial cipher: 
Example 
1234 1234 
keyword: ABCD ABCD 
plaintext: ruby wine 
Joshua Holden (RHIT) Group Theory of Permutation Ciphers 7 / 13
How many keys? 
The number of keys for a permutation cipher on n letters is the number 
of permutations, n!. 
But one of them gives the trivial cipher: 
Example 
1234 1234 
keyword: ABCD ABCD 
plaintext: ruby wine 
ciphertext: RUBY WINE 
Joshua Holden (RHIT) Group Theory of Permutation Ciphers 7 / 13
Double encipherment? 
Can we improve the security of a permutation cipher by using two 
different keys? 
Example 
4132 4132 4132 4132 4132 
keyword: TALE TALE TALE TALE TALE 
plaintext: thep aper andt hepe nllu 
first ciphertext: HPET PREA NTDA EEPH LULN 
4312 4312 4312 4312 4312 
keyword: POEM POEM POEM POEM POEM 
first ciphertext: hpet prea ntda eeph luln 
second ciphertext: ETPH EARP DATN PHEE LNUL 
Joshua Holden (RHIT) Group Theory of Permutation Ciphers 8 / 13
But look: 
Example 
plaintext: thep aper andt hepe nllu 
second ciphertext: ETPH EARP DATN PHEE LNUL 
This is the same as if you had just used the key 
 
. 
 
1 2 3 4 
3 1 4 2 
The combination of two ciphers is called a product cipher. 
In fact: 
 
 
1 2 3 4 
2 4 3 1 
 
 
 
1 2 3 4 
3 4 2 1 
= 
 
: 
 
1 2 3 4 
3 1 4 2 
Note 
Not everyone writes permutation products in the same order, either. 
Joshua Holden (RHIT) Group Theory of Permutation Ciphers 9 / 13
Noncommutativity 
Note that  
 
1 2 3 4 
2 4 3 1 
 
 
1 2 3 4 
3 4 2 1 
 
is not the same as 
 
1 2 3 4 
3 4 2 1 
 
 
 
1 2 3 4 
2 4 3 1 
 
: 
(I.e., permutation products are not commutative.) 
If you don’t believe it, try encrypting our plaintext using the keyword 
POEM first and then the keyword TALE. 
Joshua Holden (RHIT) Group Theory of Permutation Ciphers 10 / 13
Bad keys 
Some ciphers have bad keys — they don’t decrypt properly. 
Example 
 
 
1 2 3 4 
looks like a permutation, but... 
4 1 1 3 
plaintext: garb agei ngar bage outx 
Joshua Holden (RHIT) Group Theory of Permutation Ciphers 11 / 13
Bad keys 
Some ciphers have bad keys — they don’t decrypt properly. 
Example 
 
 
1 2 3 4 
looks like a permutation, but... 
4 1 1 3 
plaintext: garb agei ngar bage outx 
ciphertext: BGGR IAAE RNNA EBBG XOOT 
Joshua Holden (RHIT) Group Theory of Permutation Ciphers 11 / 13
Bad keys 
Some ciphers have bad keys — they don’t decrypt properly. 
Example 
 
 
1 2 3 4 
looks like a permutation, but... 
4 1 1 3 
plaintext: garb agei ngar bage outx 
ciphertext: BGGR IAAE RNNA EBBG XOOT 
plaintext: g?rb a?ei n?ar b?ge o?tx 
It’s a function but not a permutation — it doesn’t have an inverse. 
Joshua Holden (RHIT) Group Theory of Permutation Ciphers 11 / 13
Group theory 
Okay, what about the math? So far we’ve actually covered: 
An example of a group, the permutation (cipher)s on n letters. 
(Actually, infinitely many groups!) 
The order of the group (number of keys). 
The group identity, the trivial permutation (cipher). 
Inverses in the group, i.e. decryption. 
The group operation, permutation (cipher) products. 
Noncommutativity — permutations are not commutative, and 
neither are permutation ciphers. 
A set which contains a group, but is not a group, because it is not 
closed under inverses, i.e. functions. 
Joshua Holden (RHIT) Group Theory of Permutation Ciphers 12 / 13
HNAT SOFK LSIR EINT GZXN 
NOJET EHYET EMNSG IEOUA 
Joshua Holden (RHIT) Group Theory of Permutation Ciphers 13 / 13

More Related Content

PPTX
natural language processing
ODP
Red, green, ... what now?!
PDF
NFA to DFA
PDF
Logic and Reasoning in the Semantic Web (part I –RDF/RDFS)
PPTX
Equivalence of pda, cfg1
PDF
Solutions advanced sb
PPT
Syntax analysis
PPT
Translating into Common Logic
natural language processing
Red, green, ... what now?!
NFA to DFA
Logic and Reasoning in the Semantic Web (part I –RDF/RDFS)
Equivalence of pda, cfg1
Solutions advanced sb
Syntax analysis
Translating into Common Logic

What's hot (17)

PDF
Logic and Reasoning in the Semantic Web
PDF
PPTX
Unit v
PDF
Chemistry Enabling Chinese, Japanese and Korean Patents
PDF
Theory of Computation Lecture Notes
PPTX
Parts of Speect Tagging
PDF
Unit ii
PPT
ITU - MDD - Textural Languages and Grammars
PDF
Presentation at NLDB 2012
PDF
Introduction to ci with jenkins
PDF
Parsing Expression Grammars and Treetop
ODP
Threading Is Not A Model
PPT
Lecture 7: Definite Clause Grammars
PDF
Handling ambiguities and unknown words in named entity recognition using anap...
PPTX
Context Free Grammar
PDF
“Epenthetic vowels” in Nahuatl: Are they really epenthetic?
PDF
Rule-based reasoning in the Semantic Web
Logic and Reasoning in the Semantic Web
Unit v
Chemistry Enabling Chinese, Japanese and Korean Patents
Theory of Computation Lecture Notes
Parts of Speect Tagging
Unit ii
ITU - MDD - Textural Languages and Grammars
Presentation at NLDB 2012
Introduction to ci with jenkins
Parsing Expression Grammars and Treetop
Threading Is Not A Model
Lecture 7: Definite Clause Grammars
Handling ambiguities and unknown words in named entity recognition using anap...
Context Free Grammar
“Epenthetic vowels” in Nahuatl: Are they really epenthetic?
Rule-based reasoning in the Semantic Web
Ad

Viewers also liked (13)

PDF
Circular Permutation
PDF
1 2 3
PPTX
Chapter 4 Cyclic Groups
PPTX
A Comparative Analysis of Semiconductor Electroplating Bath Additives by Cali...
PPTX
Charged aerosol detector in HPLC.ppt
PPSX
Mo permutation-and-combination
PPTX
HPLC Detectors
PDF
Ionic Liquids : Green solvents for the future
PPTX
Permutation and combination - Math Statistic
PPTX
Detectors hplc
PPTX
Counting Technique, Permutation, Combination
PPT
Introduction to finite element method(fem)
PPT
Permutations & Combinations
Circular Permutation
1 2 3
Chapter 4 Cyclic Groups
A Comparative Analysis of Semiconductor Electroplating Bath Additives by Cali...
Charged aerosol detector in HPLC.ppt
Mo permutation-and-combination
HPLC Detectors
Ionic Liquids : Green solvents for the future
Permutation and combination - Math Statistic
Detectors hplc
Counting Technique, Permutation, Combination
Introduction to finite element method(fem)
Permutations & Combinations
Ad

More from Joshua Holden (20)

PDF
The Interplay Between Art and Math: Lessons from a STEM-based Art and Math co...
PDF
Between the Two Cultures: Teaching Math and Art to Engineers (and Scientists ...
PDF
Statistics for fixed points of x ↦ x^x mod p
PDF
Granny’s Not So Square, After All: Hyperbolic Tilings with Truly Hyperbolic C...
PDF
Stitching Graphs and Painting Mazes: Problems in Generalizations of Eulerian ...
PDF
A statistical look at maps of the discrete logarithm
PDF
Mapping the discrete logarithm
PDF
Fixed points and two-cycles of the self-power map
PDF
Braids, Cables, and Cells II: Representing Art and Craft with Mathematics and...
PDF
A Good Hash Function is Hard to Find, and Vice Versa
PDF
How Do You Say 'Cryptography' in Romanian?
PDF
Braids, Cables, and Cells: An intersection of Mathematics, Computer Science, ...
PPT
Math in Your Hands
PDF
Braids, Cables, and Cells I: An Interesting Intersection of Mathematics, Comp...
PDF
How to Paint Your Way out of a Maze
PDF
Blackwork embroidery and algorithms for maze traversals
PDF
Mathematical Cryptography
PDF
Understanding the Magic: Teaching Cryptography with Just the Right Amount of ...
PDF
Modular Arithmetic and Trap Door Ciphers
PDF
The Pohlig-Hellman Exponentiation Cipher as a Bridge Between Classical and Mo...
The Interplay Between Art and Math: Lessons from a STEM-based Art and Math co...
Between the Two Cultures: Teaching Math and Art to Engineers (and Scientists ...
Statistics for fixed points of x ↦ x^x mod p
Granny’s Not So Square, After All: Hyperbolic Tilings with Truly Hyperbolic C...
Stitching Graphs and Painting Mazes: Problems in Generalizations of Eulerian ...
A statistical look at maps of the discrete logarithm
Mapping the discrete logarithm
Fixed points and two-cycles of the self-power map
Braids, Cables, and Cells II: Representing Art and Craft with Mathematics and...
A Good Hash Function is Hard to Find, and Vice Versa
How Do You Say 'Cryptography' in Romanian?
Braids, Cables, and Cells: An intersection of Mathematics, Computer Science, ...
Math in Your Hands
Braids, Cables, and Cells I: An Interesting Intersection of Mathematics, Comp...
How to Paint Your Way out of a Maze
Blackwork embroidery and algorithms for maze traversals
Mathematical Cryptography
Understanding the Magic: Teaching Cryptography with Just the Right Amount of ...
Modular Arithmetic and Trap Door Ciphers
The Pohlig-Hellman Exponentiation Cipher as a Bridge Between Classical and Mo...

Teaching the Group Theory of Permutation Ciphers

  • 1. Teaching the Group Theory of Permutation Ciphers Joshua Holden Rose-Hulman Institute of Technology http://www.rose-hulman.edu/~holden Joshua Holden (RHIT) Group Theory of Permutation Ciphers 1 / 13
  • 2. A historical example Taj ad-Din Ali ibn ad-Duraihim (1312–1361), worked and taught in Damascus and Cairo. In a book that was considered lost until the late 20th century, ibn ad-Duraihim described 24 variations of transposition ciphers. Example plaintext: dr in kt ot he ro se ciphertext: RD NI TK TO EH OR ES Joshua Holden (RHIT) Group Theory of Permutation Ciphers 2 / 13
  • 3. So what? We are seeing the first explicit example of a permutation cipher. Definition A permutation is a bijection from a finite set to itself. Example plaintext: dr in kt ot he ro se ciphertext: RD NI TK TO EH OR ES Ibn ad-Duraihim’s permutation is 1 2 2 1 : Joshua Holden (RHIT) Group Theory of Permutation Ciphers 3 / 13
  • 4. Another example Example plaintext: ruby wine ciphertext: UYBR IENW This is a cipher based on the permutation 1 2 3 4 2 4 3 1 : Note Some people prefer to use a notation based on where the letters go. We will use one based on where they come from. Joshua Holden (RHIT) Group Theory of Permutation Ciphers 4 / 13
  • 5. Keys and keywords Clearly the key to a permutation cipher is the permutation. We can choose and remember a permutation by a keyword. Example TALE is a keyword for the permutation 1 2 3 4 2 4 3 1 : plaintext: thep aper andt hepe nllu Joshua Holden (RHIT) Group Theory of Permutation Ciphers 5 / 13
  • 6. Keys and keywords Clearly the key to a permutation cipher is the permutation. We can choose and remember a permutation by a keyword. Example TALE is a keyword for the permutation 1 2 3 4 2 4 3 1 : keyword: TALE TALE TALE TALE TALE plaintext: thep aper andt hepe nllu Joshua Holden (RHIT) Group Theory of Permutation Ciphers 5 / 13
  • 7. Keys and keywords Clearly the key to a permutation cipher is the permutation. We can choose and remember a permutation by a keyword. Example TALE is a keyword for the permutation 1 2 3 4 2 4 3 1 : 4132 4132 4132 4132 4132 keyword: TALE TALE TALE TALE TALE plaintext: thep aper andt hepe nllu Joshua Holden (RHIT) Group Theory of Permutation Ciphers 5 / 13
  • 8. Keys and keywords Clearly the key to a permutation cipher is the permutation. We can choose and remember a permutation by a keyword. Example TALE is a keyword for the permutation 1 2 3 4 2 4 3 1 : 4132 4132 4132 4132 4132 keyword: TALE TALE TALE TALE TALE plaintext: thep aper andt hepe nllu ciphertext: HPET PREA NTDA EEPH LULN Joshua Holden (RHIT) Group Theory of Permutation Ciphers 5 / 13
  • 9. Keys and keywords Clearly the key to a permutation cipher is the permutation. We can choose and remember a permutation by a keyword. Example TALE is a keyword for the permutation 1 2 3 4 2 4 3 1 : 4132 4132 4132 4132 4132 keyword: TALE TALE TALE TALE TALE plaintext: thep aper andt hepe nllu ciphertext: HPET PREA NTDA EEPH LULN HPETP REANT DAEEP HLULN Joshua Holden (RHIT) Group Theory of Permutation Ciphers 5 / 13
  • 10. Deciphering In order to decipher, you need to take the inverse of the permutation. The inverse of 1 2 3 4 2 4 3 1 is 1 2 3 4 4 1 3 2 . Note We saw the numbers 4132 earlier! Equivalently, alphabetize the keyword and read off the plaintext in original keyword order: Example ciphertext: HBET TLTA ADNE HSET ODRW Joshua Holden (RHIT) Group Theory of Permutation Ciphers 6 / 13
  • 11. Deciphering In order to decipher, you need to take the inverse of the permutation. The inverse of 1 2 3 4 2 4 3 1 is 1 2 3 4 4 1 3 2 . Note We saw the numbers 4132 earlier! Equivalently, alphabetize the keyword and read off the plaintext in original keyword order: Example keyword: AELT AELT AELT AELT AELT ciphertext: HBET TLTA ADNE HSET ODRW Joshua Holden (RHIT) Group Theory of Permutation Ciphers 6 / 13
  • 12. Deciphering In order to decipher, you need to take the inverse of the permutation. The inverse of 1 2 3 4 2 4 3 1 is 1 2 3 4 4 1 3 2 . Note We saw the numbers 4132 earlier! Equivalently, alphabetize the keyword and read off the plaintext in original keyword order: Example 2431 2431 2431 2431 2431 keyword: AELT AELT AELT AELT AELT ciphertext: HBET TLTA ADNE HSET ODRW Joshua Holden (RHIT) Group Theory of Permutation Ciphers 6 / 13
  • 13. Deciphering In order to decipher, you need to take the inverse of the permutation. The inverse of 1 2 3 4 2 4 3 1 is 1 2 3 4 4 1 3 2 . Note We saw the numbers 4132 earlier! Equivalently, alphabetize the keyword and read off the plaintext in original keyword order: Example 2431 2431 2431 2431 2431 keyword: AELT AELT AELT AELT AELT ciphertext: HBET TLTA ADNE HSET ODRW plaintext: theb attl eand thes word Joshua Holden (RHIT) Group Theory of Permutation Ciphers 6 / 13
  • 14. How many keys? The number of keys for a permutation cipher on n letters is the number of permutations, n!. But one of them gives the trivial cipher: Example plaintext: ruby wine Joshua Holden (RHIT) Group Theory of Permutation Ciphers 7 / 13
  • 15. How many keys? The number of keys for a permutation cipher on n letters is the number of permutations, n!. But one of them gives the trivial cipher: Example keyword: ABCD ABCD plaintext: ruby wine Joshua Holden (RHIT) Group Theory of Permutation Ciphers 7 / 13
  • 16. How many keys? The number of keys for a permutation cipher on n letters is the number of permutations, n!. But one of them gives the trivial cipher: Example 1234 1234 keyword: ABCD ABCD plaintext: ruby wine Joshua Holden (RHIT) Group Theory of Permutation Ciphers 7 / 13
  • 17. How many keys? The number of keys for a permutation cipher on n letters is the number of permutations, n!. But one of them gives the trivial cipher: Example 1234 1234 keyword: ABCD ABCD plaintext: ruby wine ciphertext: RUBY WINE Joshua Holden (RHIT) Group Theory of Permutation Ciphers 7 / 13
  • 18. Double encipherment? Can we improve the security of a permutation cipher by using two different keys? Example 4132 4132 4132 4132 4132 keyword: TALE TALE TALE TALE TALE plaintext: thep aper andt hepe nllu first ciphertext: HPET PREA NTDA EEPH LULN 4312 4312 4312 4312 4312 keyword: POEM POEM POEM POEM POEM first ciphertext: hpet prea ntda eeph luln second ciphertext: ETPH EARP DATN PHEE LNUL Joshua Holden (RHIT) Group Theory of Permutation Ciphers 8 / 13
  • 19. But look: Example plaintext: thep aper andt hepe nllu second ciphertext: ETPH EARP DATN PHEE LNUL This is the same as if you had just used the key . 1 2 3 4 3 1 4 2 The combination of two ciphers is called a product cipher. In fact: 1 2 3 4 2 4 3 1 1 2 3 4 3 4 2 1 = : 1 2 3 4 3 1 4 2 Note Not everyone writes permutation products in the same order, either. Joshua Holden (RHIT) Group Theory of Permutation Ciphers 9 / 13
  • 20. Noncommutativity Note that 1 2 3 4 2 4 3 1 1 2 3 4 3 4 2 1 is not the same as 1 2 3 4 3 4 2 1 1 2 3 4 2 4 3 1 : (I.e., permutation products are not commutative.) If you don’t believe it, try encrypting our plaintext using the keyword POEM first and then the keyword TALE. Joshua Holden (RHIT) Group Theory of Permutation Ciphers 10 / 13
  • 21. Bad keys Some ciphers have bad keys — they don’t decrypt properly. Example 1 2 3 4 looks like a permutation, but... 4 1 1 3 plaintext: garb agei ngar bage outx Joshua Holden (RHIT) Group Theory of Permutation Ciphers 11 / 13
  • 22. Bad keys Some ciphers have bad keys — they don’t decrypt properly. Example 1 2 3 4 looks like a permutation, but... 4 1 1 3 plaintext: garb agei ngar bage outx ciphertext: BGGR IAAE RNNA EBBG XOOT Joshua Holden (RHIT) Group Theory of Permutation Ciphers 11 / 13
  • 23. Bad keys Some ciphers have bad keys — they don’t decrypt properly. Example 1 2 3 4 looks like a permutation, but... 4 1 1 3 plaintext: garb agei ngar bage outx ciphertext: BGGR IAAE RNNA EBBG XOOT plaintext: g?rb a?ei n?ar b?ge o?tx It’s a function but not a permutation — it doesn’t have an inverse. Joshua Holden (RHIT) Group Theory of Permutation Ciphers 11 / 13
  • 24. Group theory Okay, what about the math? So far we’ve actually covered: An example of a group, the permutation (cipher)s on n letters. (Actually, infinitely many groups!) The order of the group (number of keys). The group identity, the trivial permutation (cipher). Inverses in the group, i.e. decryption. The group operation, permutation (cipher) products. Noncommutativity — permutations are not commutative, and neither are permutation ciphers. A set which contains a group, but is not a group, because it is not closed under inverses, i.e. functions. Joshua Holden (RHIT) Group Theory of Permutation Ciphers 12 / 13
  • 25. HNAT SOFK LSIR EINT GZXN NOJET EHYET EMNSG IEOUA Joshua Holden (RHIT) Group Theory of Permutation Ciphers 13 / 13