









Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!










Classical cryptography ย Cryptograms ย cryptogram is the combination of the plaintext (PT) and the ciphertext (CT) obtained as result of encrypting the plaintext, using some encryption method. ย Cryptograms may be divided into ciphers and codes.
Classical cryptography ย A code message is a cryptogram which has been produced by using a code book consisting of arbitrary combinations of letters, entire words, figures substituted for words, partial words, phrases, of PT. ย Whereas a cipher system acts upon individual letters or definite groups taken as units, a code deals with entire words or phrases or even sentences taken as units. ย Cipher systems are divided into two classes: substitution and transposition. ย A Substitution cipher is a cryptogram in which the original letters of the plain text, taken either singly or in groups of constant length, have been replaced by other letters, figures, signs, or combination of them in accordance with a definite system and key. ย A transposition cipher is a cryptogram in which the original letters of the plain text have merely been rearranged according to a definite system. Modern cipher systems use both substitution and transposition to create secret messages
Classical cryptography ย Cipher systems can be further divided into ย monoalphabetic ciphers - those in which only one substitution/transposition is used. ย polyalphabetic - where several substitutions/ transpositions are used.
Historical developments ย Machine ciphers ย Jefferson cylinder , developed in 1790 s, comprised 36 disks, each with a random alphabet, order of disks was key, message was set, then another row became cipher. ย Wheatstone disc , originally invented by Wadsworth in 1817 , but developed by Wheatstone in 1860 's, comprised two concentric wheels used to generate a polyalphabetic cipher
Historical developments ย Enigma Rotor machine , one of a very important class of cipher machines, heavily used during 2 nd world war, comprised a series of rotor wheels with internal cross-connections, providing a substitution using a continuously changing alphabet enciphered by substitution or transposition.
Caesar cipher - a monoalphabetic cipher ย For example: ย L FDPH L VDZ L FRQTXHUHG ย I CAME I SAW I CONQUERED ย In this case the mapping is: ย ABCDEFGHIJKLMNOPQRSTUVWXYZ ย DEFGHIJKLMNOPQRSTUVWXYZABC ย Mathematicaly, one can describe this cipher as: ย Encryption E_(k) : i - > i + k mod 26 ย Decryption D_(k) : i - > i - k mod 26
Cryptanalysis of the Caesar cipher ย The action of a Caesar cipher is to replace each plaintext letter with a different one a fixed number of places down the alphabet. ย The cipher illustrated here uses a left shift of three, so that (for example) each occurrence of E in the plaintext becomes B in the ciphertext.
Exercise 1 ย Create a simple Caesar Cipher Program in Java for Encryption & Decription! ย Input the plaintext message : Hello Wordl! Enter the value by which each character in the plaintext message gets shifted : 2 ย Ciphertext :?
Pseudo Code for Caesar Cipher
Java Code for Caesar Decryption