An Investigation Into Mathematical Cryptography with Applications

Total Page:16

File Type:pdf, Size:1020Kb

An Investigation Into Mathematical Cryptography with Applications Project Report BSc (Hons) Mathematics An Investigation into Mathematical Cryptography with Applications Samuel Worton 1 CONTENTS Page: 1. Summary 3 2. Introduction to Cryptography 4 3. A History of Cryptography 6 4. Introduction to Modular Arithmetic 12 5. Caesar Cipher 16 6. Affine Cipher 17 7. Vigenère Cipher 19 8. Autokey Cipher 21 9. One-Time Pad 22 10. Pohlig-Hellman Encryption 24 11. RSA Encryption 27 12. MATLAB 30 13. Conclusion 35 14. Glossary 36 15. References 38 2 1. SUMMARY AND ACKNOWLEDGEMENTS In this report, I will explore the history of cryptography, looking at the origins of cryptosystems in the BC years all the way through to the current RSA cryptosystem which governs the digital era we live in. I will explain the mathematics behind cryptography and cryptanalysis, which is largely based around number theory and in particular, modular arithmetic. I will relate this to several famous, important and relevant cryptosystems, and finally I will use the MATLAB program to write codes for a few of these cryptosystems. I would like to thank Mr. Kuldeep Singh for his feedback and advice during all stages of my report, as well as enthusiasm towards the subject. I would also like to thank Mr. Laurence Taylor for generously giving his time to help me in understanding and producing the MATLAB coding used towards the end of this investigation. Throughout this report I have been aided by the book ‘Elementary Number Theory’ by Mr. David M. Burton, amongst others, which was highly useful in refreshing my number theory knowledge and introducing me to the concepts of cryptography; also Mr. Kuldeep Singh’s ‘Maths For All’ website for the same reasons. I hope you find this investigation very interesting and stimulating, as I did while producing it. 3 2. INTRODUCTION TO CRYPTOGRAPHY For as long as forms of communication have existed, there has always been a need to protect and secure information, from the sender to the recipient, without external parties being able to receive any of the information. Cryptography is the study into this field of protecting information, typically in the form of a message. Let’s begin with an example of this: Suppose two people, Alice and Bob, are exchanging messages over the internet. These messages are private between the two of them, so nobody or nothing else should be able to access or alter the information in the messages (this is known as eavesdropping). When Alice types a message to Bob, this is called plaintext – it is the information which is intended for Bob. When she sends the message, it is encrypted by a key which transforms the information into ciphertext – it has no clear relation to the original plaintext, and generally makes no sense. Once Bob receives the ciphertext, he can use a key (often the same key that Alice used) in order to decrypt the ciphertext and revert it back to plaintext, containing the original information that Alice wanted to send. The algorithm of using a key to encrypt and decrypt a message is known as a cipher, and altogether with the plaintext and ciphertext, we have a cryptosystem. FIGURE 1 – A DIAGRAM OF A TYPICAL CRYPTOSYSTEM (CETEF, 2013) As aforementioned, there are cases when the keys used in the cipher can be the same or different: • If the keys are the same (i.e. �f = �h), then the cipher is symmetric or private. This is because the key is symmetric between both parties, and must remain private between them to avoid the information being revealed to eavesdroppers. Both the sender and receiver need to know the key in advance for the system to work. This can be unpractical, as the two parties may not be able to securely share a key without another party gaining this information. • If the keys are different (i.e. �f ≠ �h), then the cipher is asymmetric or public. A user of such a cryptosystem creates a public key (�f) for encryption, and a private key (�h) for decryption, which is kept secret. Someone can then encrypt a message using the public key, and the recipient would decrypt with the private key. The two keys are mathematically related, but in such a way that calculating the decryption key from knowledge of the encryption key is unfeasible, making it a secure way to transfer information. 4 Ciphers and codes are closely related and are often used as synonyms for one another, in reference to encryption of a message. There is a difference between the two in practice, however. Ciphers are the encryption of individual or small groups of letters, whereas codes encrypt words or phrases wholly. For example, a cipher could replace ‘RUN’ with ‘QTM’, where each individual letter has been altered; a code could substitute ‘RUN’ with ‘RHYTHM UNDER NIGHTFALL’ – a new phrase has been introduced which disguises the real message. Codes require codebooks to list the codes and the words/phrases they encrypt. Ciphers do not require a codebook and so they have made codes redundant in modern cryptography. In this report I will not analyse any code-based cryptosystems. Cryptanalysis is the antithesis of cryptography – namely, it is the study of breaking ciphers and the techniques used to do so. Cryptanalysts will study ciphers and cryptosystems tirelessly to find any weaknesses in the system that could reveal parts or all of the plaintext information. This is usually done without any prior knowledge of the key or algorithm. Cryptographic methods have advanced over time, and naturally, cryptanalysis has too – each time a new encryption algorithm is developed, cryptanalysts work on deciphering the cryptosystem, resulting in newer, stronger algorithms being formed, and so on. The cycle between the creation of algorithms and breaking of systems repeats continuously and will most likely repeat for a very long time (Thawte, 2013). Cryptography is not only limited to exchanging messages. In recent years it has advanced prodigiously with the expansion of the internet and digital services, so that it is now a fundamental part of online banking and shopping, authentication and ATM cards, to name a few. Technology is always developing, and so the need for secure ways to encrypt information is fundamental to protect users from hackers and other malevolent parties. This makes cryptography a fast-growing subject in the current day and age. What was once perceived as an art in the field of linguistics has developed vastly to mathematics and computer science. 5 3. A HISTORY OF CRYPTOGRAPHY Whilst the study of cryptography has expanded in recent times with the increasing need for privacy and protection of data, the art of encrypting messages and secrets has existed for thousands of years. As a result, the term ‘classical cryptography’ has been created to encompass the origins of the field, where such cryptosystems were very simple - compared to modern systems - and were typically designed and implemented by hand. During this time there were two predominant types of ciphers: • Substitution cipher – plaintext characters are systematically replaced with other letters, numbers or symbols to create a ciphertext, but the order of the characters is not altered. Substitution ciphers can be separated into two different categories: o Monoalphabetic cipher – only one cipher alphabet is used for substitution, so each letter in the plaintext alphabet only has one encryption character. Once the key has been found, decryption becomes a simple task. o Polyalphabetic cipher – more than one cipher alphabet is used, so a character in the plaintext can be represented by more than one character in the plaintext, making it a much more secure form of encryption. • Transposition cipher – characters in the plaintext are rearranged in different orders or patterns, so the ciphertext is a permutation of the original characters, which remain unchanged. If the permutation can be found out, decryption only requires rearranging the ciphertext back into the plaintext. The word cryptography is derived from the Greek words ‘kryptos’ and ‘graphein’, which mean ‘hidden’ and ‘writing’ respectively. Ancient Greece was one of the first regions to record a recognisable cryptosystem, along with Ancient Rome (Damico, 2009). In Ancient Greece, a ‘scytale’ (pronounced ski-tah-lay) was one of the earliest forms of a cryptosystem. A ribbon was wrapped around a stick of a certain diameter with a message on the ribbon that could only be read while the ribbon was on the stick; once unravelled the letters on the ribbon would read as nonsense. The key was essentially a stick of the same diameter so both the sender and recipient could decipher the message. FIGURE 2 – AN ANCIENT GREEK SCYTALE This is an example of a transposition cipher (McCullough, 2003). Julius Caesar, the Roman emperor of the 1st century BC, developed a cipher so he could send messages of military and political importance to other members of the Roman Empire. He did this to reduce the risk of the message being intercepted and understood by enemies. The algorithm of the cipher was a simple shift substitution, which at the time was secure enough to protect military information; however, Caesar abandoned it soon after (Burton, 2011). 6 As centuries passed and more people worldwide became literate, cryptosystems began to improve. Leon Battista Alberti created one of the first polyalphabetic ciphers and cipher machines in the 15th century, by designing a cipher disk (known as the Formula) made up of two concentric disks; the outermost containing the plaintext alphabet and the innermost containing the ciphertext equivalent. The inner disk was rotated by a fixed system so that the plaintext characters had more than one representation in the ciphertext – at the time it was deemed unbreakable, since it was resistant to monoalphabetic decryption methods, and without knowledge of the cryptosystem itself, nobody would realise that a polyalphabetic system FIGURE 3 – THE ‘FORMULA’ was used (Kahn, 1967).
Recommended publications
  • COS433/Math 473: Cryptography Mark Zhandry Princeton University Spring 2017 Cryptography Is Everywhere a Long & Rich History
    COS433/Math 473: Cryptography Mark Zhandry Princeton University Spring 2017 Cryptography Is Everywhere A Long & Rich History Examples: • ~50 B.C. – Caesar Cipher • 1587 – Babington Plot • WWI – Zimmermann Telegram • WWII – Enigma • 1976/77 – Public Key Cryptography • 1990’s – Widespread adoption on the Internet Increasingly Important COS 433 Practice Theory Inherent to the study of crypto • Working knowledge of fundamentals is crucial • Cannot discern security by experimentation • Proofs, reductions, probability are necessary COS 433 What you should expect to learn: • Foundations and principles of modern cryptography • Core building blocks • Applications Bonus: • Debunking some Hollywood crypto • Better understanding of crypto news COS 433 What you will not learn: • Hacking • Crypto implementations • How to design secure systems • Viruses, worms, buffer overflows, etc Administrivia Course Information Instructor: Mark Zhandry (mzhandry@p) TA: Fermi Ma (fermima1@g) Lectures: MW 1:30-2:50pm Webpage: cs.princeton.edu/~mzhandry/2017-Spring-COS433/ Office Hours: please fill out Doodle poll Piazza piaZZa.com/princeton/spring2017/cos433mat473_s2017 Main channel of communication • Course announcements • Discuss homework problems with other students • Find study groups • Ask content questions to instructors, other students Prerequisites • Ability to read and write mathematical proofs • Familiarity with algorithms, analyZing running time, proving correctness, O notation • Basic probability (random variables, expectation) Helpful: • Familiarity with NP-Completeness, reductions • Basic number theory (modular arithmetic, etc) Reading No required text Computer Science/Mathematics Chapman & Hall/CRC If you want a text to follow along with: Second CRYPTOGRAPHY AND NETWORK SECURITY Cryptography is ubiquitous and plays a key role in ensuring data secrecy and Edition integrity as well as in securing computer systems more broadly.
    [Show full text]
  • The Mathemathics of Secrets.Pdf
    THE MATHEMATICS OF SECRETS THE MATHEMATICS OF SECRETS CRYPTOGRAPHY FROM CAESAR CIPHERS TO DIGITAL ENCRYPTION JOSHUA HOLDEN PRINCETON UNIVERSITY PRESS PRINCETON AND OXFORD Copyright c 2017 by Princeton University Press Published by Princeton University Press, 41 William Street, Princeton, New Jersey 08540 In the United Kingdom: Princeton University Press, 6 Oxford Street, Woodstock, Oxfordshire OX20 1TR press.princeton.edu Jacket image courtesy of Shutterstock; design by Lorraine Betz Doneker All Rights Reserved Library of Congress Cataloging-in-Publication Data Names: Holden, Joshua, 1970– author. Title: The mathematics of secrets : cryptography from Caesar ciphers to digital encryption / Joshua Holden. Description: Princeton : Princeton University Press, [2017] | Includes bibliographical references and index. Identifiers: LCCN 2016014840 | ISBN 9780691141756 (hardcover : alk. paper) Subjects: LCSH: Cryptography—Mathematics. | Ciphers. | Computer security. Classification: LCC Z103 .H664 2017 | DDC 005.8/2—dc23 LC record available at https://lccn.loc.gov/2016014840 British Library Cataloging-in-Publication Data is available This book has been composed in Linux Libertine Printed on acid-free paper. ∞ Printed in the United States of America 13579108642 To Lana and Richard for their love and support CONTENTS Preface xi Acknowledgments xiii Introduction to Ciphers and Substitution 1 1.1 Alice and Bob and Carl and Julius: Terminology and Caesar Cipher 1 1.2 The Key to the Matter: Generalizing the Caesar Cipher 4 1.3 Multiplicative Ciphers 6
    [Show full text]
  • Network Security
    Cristina Nita-Rotaru CS6740: Network security Additional material: Cryptography 1: Terminology and classic ciphers Readings for this lecture Required readings: } Cryptography on Wikipedia Interesting reading } The Code Book by Simon Singh 3 Cryptography The science of secrets… } Cryptography: the study of mathematical techniques related to aspects of providing information security services (create) } Cryptanalysis: the study of mathematical techniques for attempting to defeat information security services (break) } Cryptology: the study of cryptography and cryptanalysis (both) 4 Cryptography Basic terminology in cryptography } cryptography } plaintexts } cryptanalysis } ciphertexts } cryptology } keys } encryption } decryption plaintext ciphertext plaintext Encryption Decryption Key_Encryption Key_Decryption 5 Cryptography Cryptographic protocols } Protocols that } Enable parties } Achieve objectives (goals) } Overcome adversaries (attacks) } Need to understand } Who are the parties and the context in which they act } What are the goals of the protocols } What are the capabilities of adversaries 6 Cryptography Cryptographic protocols: Parties } The good guys } The bad guys Alice Carl Bob Eve Introduction of Alice and Bob Check out wikipedia for a longer attributed to the original RSA paper. list of malicious crypto players. 7 Cryptography Cryptographic protocols: Objectives/Goals } Most basic problem: } Ensure security of communication over an insecure medium } Basic security goals: } Confidentiality (secrecy, confidentiality) } Only the
    [Show full text]
  • Cryptanalysis of Selected Block Ciphers
    Downloaded from orbit.dtu.dk on: Sep 24, 2021 Cryptanalysis of Selected Block Ciphers Alkhzaimi, Hoda A. Publication date: 2016 Document Version Publisher's PDF, also known as Version of record Link back to DTU Orbit Citation (APA): Alkhzaimi, H. A. (2016). Cryptanalysis of Selected Block Ciphers. Technical University of Denmark. DTU Compute PHD-2015 No. 360 General rights Copyright and moral rights for the publications made accessible in the public portal are retained by the authors and/or other copyright owners and it is a condition of accessing publications that users recognise and abide by the legal requirements associated with these rights. Users may download and print one copy of any publication from the public portal for the purpose of private study or research. You may not further distribute the material or use it for any profit-making activity or commercial gain You may freely distribute the URL identifying the publication in the public portal If you believe that this document breaches copyright please contact us providing details, and we will remove access to the work immediately and investigate your claim. Cryptanalysis of Selected Block Ciphers Dissertation Submitted in Partial Fulfillment of the Requirements for the Degree of Doctor of Philosophy at the Department of Mathematics and Computer Science-COMPUTE in The Technical University of Denmark by Hoda A.Alkhzaimi December 2014 To my Sanctuary in life Bladi, Baba Zayed and My family with love Title of Thesis Cryptanalysis of Selected Block Ciphers PhD Project Supervisor Professor Lars R. Knudsen(DTU Compute, Denmark) PhD Student Hoda A.Alkhzaimi Assessment Committee Associate Professor Christian Rechberger (DTU Compute, Denmark) Professor Thomas Johansson (Lund University, Sweden) Professor Bart Preneel (Katholieke Universiteit Leuven, Belgium) Abstract The focus of this dissertation is to present cryptanalytic results on selected block ci- phers.
    [Show full text]
  • Cryptology: an Historical Introduction DRAFT
    Cryptology: An Historical Introduction DRAFT Jim Sauerberg February 5, 2013 2 Copyright 2013 All rights reserved Jim Sauerberg Saint Mary's College Contents List of Figures 8 1 Caesar Ciphers 9 1.1 Saint Cyr Slide . 12 1.2 Running Down the Alphabet . 14 1.3 Frequency Analysis . 15 1.4 Linquist's Method . 20 1.5 Summary . 22 1.6 Topics and Techniques . 22 1.7 Exercises . 23 2 Cryptologic Terms 29 3 The Introduction of Numbers 31 3.1 The Remainder Operator . 33 3.2 Modular Arithmetic . 38 3.3 Decimation Ciphers . 40 3.4 Deciphering Decimation Ciphers . 42 3.5 Multiplication vs. Addition . 44 3.6 Koblitz's Kid-RSA and Public Key Codes . 44 3.7 Summary . 48 3.8 Topics and Techniques . 48 3.9 Exercises . 49 4 The Euclidean Algorithm 55 4.1 Linear Ciphers . 55 4.2 GCD's and the Euclidean Algorithm . 56 4.3 Multiplicative Inverses . 59 4.4 Deciphering Decimation and Linear Ciphers . 63 4.5 Breaking Decimation and Linear Ciphers . 65 4.6 Summary . 67 4.7 Topics and Techniques . 67 4.8 Exercises . 68 3 4 CONTENTS 5 Monoalphabetic Ciphers 71 5.1 Keyword Ciphers . 72 5.2 Keyword Mixed Ciphers . 73 5.3 Keyword Transposed Ciphers . 74 5.4 Interrupted Keyword Ciphers . 75 5.5 Frequency Counts and Exhaustion . 76 5.6 Basic Letter Characteristics . 77 5.7 Aristocrats . 78 5.8 Summary . 80 5.9 Topics and Techniques . 81 5.10 Exercises . 81 6 Decrypting Monoalphabetic Ciphers 89 6.1 Letter Interactions . 90 6.2 Decrypting Monoalphabetic Ciphers .
    [Show full text]
  • A Complete Bibliography of Publications in Cryptologia
    A Complete Bibliography of Publications in Cryptologia Nelson H. F. Beebe University of Utah Department of Mathematics, 110 LCB 155 S 1400 E RM 233 Salt Lake City, UT 84112-0090 USA Tel: +1 801 581 5254 FAX: +1 801 581 4148 E-mail: [email protected], [email protected], [email protected] (Internet) WWW URL: http://www.math.utah.edu/~beebe/ 04 September 2021 Version 3.64 Title word cross-reference 10016-8810 [?, ?]. 1221 [?]. 125 [?]. 15.00/$23.60.0 [?]. 15th [?, ?]. 16th [?]. 17-18 [?]. 18 [?]. 180-4 [?]. 1812 [?]. 18th (t; m)[?]. (t; n)[?, ?]. $10.00 [?]. $12.00 [?, ?, ?, ?, ?]. 18th-Century [?]. 1930s [?]. [?]. 128 [?]. $139.99 [?]. $15.00 [?]. $16.95 1939 [?]. 1940 [?, ?]. 1940s [?]. 1941 [?]. [?]. $16.96 [?]. $18.95 [?]. $24.00 [?]. 1942 [?]. 1943 [?]. 1945 [?, ?, ?, ?, ?]. $24.00/$34 [?]. $24.95 [?, ?]. $26.95 [?]. 1946 [?, ?]. 1950s [?]. 1970s [?]. 1980s [?]. $29.95 [?]. $30.95 [?]. $39 [?]. $43.39 [?]. 1989 [?]. 19th [?, ?]. $45.00 [?]. $5.95 [?]. $54.00 [?]. $54.95 [?]. $54.99 [?]. $6.50 [?]. $6.95 [?]. $69.00 2 [?, ?]. 200/220 [?]. 2000 [?]. 2004 [?, ?]. [?]. $69.95 [?]. $75.00 [?]. $89.95 [?]. th 2008 [?]. 2009 [?]. 2011 [?]. 2013 [?, ?]. [?]. A [?]. A3 [?, ?]. χ [?]. H [?]. k [?, ?]. M 2014 [?]. 2017 [?]. 2019 [?]. 20755-6886 [?, ?]. M 3 [?]. n [?, ?, ?]. [?]. 209 [?, ?, ?, ?, ?, ?]. 20th [?]. 21 [?]. 22 [?]. 220 [?]. 24-Hour [?, ?, ?]. 25 [?, ?]. -Bit [?]. -out-of- [?, ?]. -tests [?]. 25.00/$39.30 [?]. 25.00/839.30 [?]. 25A1 [?]. 25B [?]. 26 [?, ?]. 28147 [?]. 28147-89 000 [?]. 01Q [?, ?]. [?]. 285 [?]. 294 [?]. 2in [?, ?]. 2nd [?, ?, ?, ?]. 1 [?, ?, ?, ?]. 1-4398-1763-4 [?]. 1/2in [?, ?]. 10 [?]. 100 [?]. 10011-4211 [?]. 3 [?, ?, ?, ?]. 3/4in [?, ?]. 30 [?]. 310 1 2 [?, ?, ?, ?, ?, ?, ?]. 312 [?]. 325 [?]. 3336 [?, ?, ?, ?, ?, ?]. affine [?]. [?]. 35 [?]. 36 [?]. 3rd [?]. Afluisterstation [?, ?]. After [?]. Aftermath [?]. Again [?, ?]. Against 4 [?]. 40 [?]. 44 [?]. 45 [?]. 45th [?]. 47 [?]. [?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?]. Age 4in [?, ?]. [?, ?]. Agencies [?]. Agency [?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?].
    [Show full text]
  • Codebreakers
    1 Some of the things you will learn in THE CODEBREAKERS • How secret Japanese messages were decoded in Washington hours before Pearl Harbor. • How German codebreakers helped usher in the Russian Revolution. • How John F. Kennedy escaped capture in the Pacific because the Japanese failed to solve a simple cipher. • How codebreaking determined a presidential election, convicted an underworld syndicate head, won the battle of Midway, led to cruel Allied defeats in North Africa, and broke up a vast Nazi spy ring. • How one American became the world's most famous codebreaker, and another became the world's greatest. • How codes and codebreakers operate today within the secret agencies of the U.S. and Russia. • And incredibly much more. "For many evenings of gripping reading, no better choice can be made than this book." —Christian Science Monitor THE Codebreakers The Story of Secret Writing By DAVID KAHN (abridged by the author) A SIGNET BOOK from NEW AMERICAN LIBRARV TIMES MIRROR Copyright © 1967, 1973 by David Kahn All rights reserved. No part of this book may be reproduced or transmitted in any form or by any means, electronic or mechanical, including photocopying, recording or by any information storage and retrieval system, without permission in writing from the publisher. For information address The Macmillan Company, 866 Third Avenue, New York, New York 10022. Library of Congress Catalog Card Number: 63-16109 Crown copyright is acknowledged for the following illustrations from Great Britain's Public Record Office: S.P. 53/18, no. 55, the Phelippes forgery, and P.R.O. 31/11/11, the Bergenroth reconstruction.
    [Show full text]
  • A Anhang: Perfekte Sicherheit Und Praktische Sicherheit
    A Anhang: Perfekte Sicherheit und praktische Sicherheit "The logic of secrecy was the mirror-image of the logic of information" Colin Burke, 1994 Perfekte Sicherheit wurde seit jeher gerne von den Erfindern von Chiffriersy­ stemen, im besonderen von Chiffriermaschinen, versprochen (Bazeries: je suis indechiffrable, 2.1.1 Abb. 19). Jedoch gab erst 1949 Claude E. Shannon eine saubere Definition davon, was mit perfekter Sicherheit gemeint sei; er gab sie im allgemeinen Rahmen seiner Informationstheorie. 1 Da der wahrschein­ lichkeitstheoretische Apparat, den sie benutzt, auBerhalb des Rahmens dieses Buches liegt, geben wir nur eine verkiirzte, dafiir aber axiomatische Ubersicht. A.I Axiome einer axiomatischen Informationstheorie Man geht zweckmaBigerweise aus von der Unsicherheit (engl. uncertainty, equivocation) iiber eine Menge X von Ereignissen, der "Entropie" von X - eine reelle Zahl . Auch Y und Z seien Mengen von Ereignissen. Hy(X) bezeichne die Unsicherheit iiber X, falls Y bekannt ist. A.I.1 Intuitiv einleuchtende Axiome fUr die zweistellige Mengenfunktion H sind: (0) 0::; Hy(X) ("Unsicherheit ist nichtnegativ") Fiir 0 = Hy(X) sagen wir "Y bestimmt eindeutig X." (1) Hyuz(X) ::;Hz(X) ("Unsicherheit nimmtnicht zu, wennmehr bekannt") Fiir Hyuz(X)=Hz(X) sagen wir "Y sagt nichts aus iiber X." Von entscheidender Bedeutung ist das Axiom (2) Hz(X U Y) = Hyuz(X) + Hz(Y) . ("Unsicherheit kann additiv iiber der Vereinigung von Ereignissen aufgebaut werden"). 1 Shannon hatte friihzeitig Beriihrung mit der Kryptanalysej er arbeitete 1936-1938 im Team von Vannevar Bush, der den COMPARATOR zur Bestimmung der Zeichen­ Koinzidenz entwickelte. Seine bis 1940 zuriickreichende Arbeit in den Bell Laboratories (vgl. 16.5) fiihrte zu einem vertraulichen Bericht (A Mathematical Theory of Communi­ cation) vom 1.
    [Show full text]
  • Alpha-Qwerty Cipher: an Extended Vigenère Cipher
    Advanced Computing: An International Journal ( ACIJ ), Vol.3, No.3, May 2012 ALPHA-QWERTY CIPHER: AN EXTENDED VIGENÈRE CIPHER Md. Khalid Imam Rahmani 1, Neeta Wadhwa 1 and Vaibhav Malhotra 1 1Department of Computer Science and Engineering, Echelon Institute of Technology, Faridabad, India. [email protected] [email protected] [email protected] ABSTRACT The Vigenère Cipher is a traditional method which involves encrypting alphabetic text by using a series of different Caesar Ciphers based on the letters of a keyword. The Vigenère Cipher works on the set of 26 English alphabets. In this paper we introduce the Alpha-Qwerty Cipher and reverse Alpha-Qwerty Ciphers which are the extensions to the Vigenère Cipher. This cipher works on a set of 92 characters by introducing case sensitivity and by adding digits and some other symbols to the existing Vigenère Cipher which is of 26 characters. This paper also modifies the mapping sequence from the plain text to the cipher text. KEYWORDS Cryptography, Alpha-Qwerty cipher, Vigenère cipher, Polyaplhabetic ciphers 1. INTRODUCTION Cryptography is defined as the art and science of generating secret messages. An original plaintext is coded into the cipher text through the process of enciphering or encryption and plaintext is restored from the cipher text through deciphering or decryption. The many schemes used for encryption constitute the area of study known as cryptography. Cryptanalysis is "breaking the code" without knowledge of the encryption technique. The areas of cryptography and cryptanalysis together are called cryptology [1, 2]. There are basically 4 objectives of cryptography described in [3]. • Authentication: The process of proving one's identity.
    [Show full text]
  • A Brief History of Cryptography
    A Brief History of Cryptography Problems from the History of Mathematics Lecture 23 | April 27, 2018 Brown University Early Substitution Ciphers The earliest known ciphers are simple cases of what are now called monoalphabetic substitution ciphers. These include 1. The Atbash Cipher, designed for use with the Hebrew alphabet but extended to other ordered alphabets. One replaces each instance of the first letter with the last, etc: A B C D E F G ··· T U V W X Y Z Z Y X W V U T ··· G F E D C B A 2. The Caesar Cipher, named after Julius Caesar, encodes an alphabet by shifting each letter forward a fixed number1 of places: A B C D E F G ··· T U V W X Y Z D E F G H I J ··· W X Y Z A C C 1Classically, 3. 1 General Monoalphabetic Substitution Ciphers In general, monoalphabetic substitution cipher are keyed by a choice of permutation of the letters in the alphabet. This may seem secure, since there are 26! ≈ 1061 permutations of fA,...,Zg to test in a brute force attack. This assumption was proven false by Al-Kindi (c. 800), who pioneered the use of frequency analysis in cryptanalysis. Monoalphabetic ciphers are now longer used in serious cryptography, but they endure as popular puzzles and are a mainstay of newspapers.2 2Eg. Cryptoquip. 2 English Letter Frequencies The following figure plots the relative frequencies of the letters A-Z in Madame Bovary (blue) and Moby Dick (orange): 0.14 0.12 0.10 0.08 0.06 0.04 0.02 5 10 15 20 25 3 Polyalphabetic Ciphers The next iteration of ciphers are now known as polyalphabetic ciphers.
    [Show full text]
  • Mathematical Introduction to Coding Theory and Cryptography Yi Ouyang
    Mathematical Introduction to Coding Theory and Cryptography Yi Ouyang School of Mathematical Sciences, University of Science and Technology of China Email address: [email protected] Contents Chapter 1. Preliminaries 1 1. Theory of Integers 1 2. Polynomials over a field 4 3. Finite fields 6 Notations 9 Part 1. Coding Theory 11 Chapter 2. Introduction to Coding Theory 13 1. Background 13 2. Basic Definitions 15 Chapter 3. Linear Codes 19 1. Basic definitions 19 2. Hamming codes 23 3. Equivalence of codes 23 4. Encoding and decoding Algorithms 24 Chapter 4. Bounds of codes and codes with good bounds 29 1. Bounds of codes 29 2. Golay Codes 33 3. Other examples of optimal codes 36 Chapter 5. Constructing Codes from Other Codes 39 1. General Rules for Construction 39 2. Reed Muller Codes 41 Chapter 6. Weight Enumerators and the MacWilliams Theorem 47 1. MacWilliams Identity 47 Chapter 7. Sequences over finite fields 53 1. Sequences and Power Series over Finite Fields 53 2. Linear Feedback Shift Registers(LFSR) 57 3. Berlekamp-Massey Algorithm 60 Chapter 8. Cyclic codes and BCH codes 63 1. Cyclic codes 63 2. Trace Expression of Cyclic codes 67 iii iv CONTENTS 3. The BCH codes 69 4. Goppa Code 75 Chapter 9. Generalized GRS codes 79 1. Generalized GRS codes 79 2. Decoding GRS codes 80 Part 2. Cryptography 83 Chapter 10. History and Basic knowledge about Cryptography 85 1. Cryptography from early age 85 Chapter 11. Hard Computational Problems 91 1. Trapdoor function and One-way function 91 2. Factoring and RSA 92 Chapter 12.
    [Show full text]
  • Charles Babbage Friedrich W. Kasiski
    Charles Babbage 1791-1871, England • Difference Engine • Analytical Engine • Interested in cryptography Charles Babbage and the Vigenére Cipher key RUNRUNRUNRUNRUNRUNRUNRUNRUNRUN plain tobeornottobethatisthequestion cipher KIOVIEEIGKIOVNURNVJNUVKHVMGZIA Observation: if the same piece of key meets the same piece of plaintext, then the ciphertext is identical. Therefore, if we see identical pieces of ciphertext, we can try assuming that key/plaintext repeated. In that case the difference between positions has to be a multiple of the key-length. Friedrich W. Kasiski Die Geheimschriften und die Dechiffrirkunst, 1863 First general and published solution to polyalphabetic cipher with repeating keyword (Vigenére cipher) using Kasiski examination. Kasiski Examination • Find (long) repeated ciphertext fragments • Discard spurious repetitions • gcd of position differences is multiple of keylength 1 Kasiski Examination key RUNRUNRUNRUNRUNRUNRUNRUNRUNRUN plain tobeornottobethatisthequestion cipher KIOVIEEIGKIOVNURNVJNUVKHVMGZIA key COMETCOMETCOMETCOMETCOMETCOME plain thereisanotherfamouspianoplay cipher VVQVXKGMRHVVQVYCAAYLRWMRHRZMC However: http://www.ics.uci.edu/~gts/268/vigenere.html Le Chiffre Indéchiffrable Later methods: • Index of coincidence (William Friedman) • Kappa Test (Solomon Kullback) • Chi Test (Solomon Kullback) Vigenére cipher still in use in WWI. Kappa Test Kappa test with strips Kappa test with perforated sheets From Bauer. Decrypted Secrets (Section 17.3.2) 2 Wheatstone and Playfair Playfair Cipher • Invented by Charles Wheatstone • Publicized by Lyon Playfair in 1854 • First literal digraphic system • Mixed alphabet, keyword • Used in the Boer War (1899-1902) Playfair Cipher I P L A Y F encodes pairs of letters I R B C D 1. find pairs of letters in matrix E G H K M 2. same row: move one pair to the right N O Q S T 3.
    [Show full text]