Cryptography and Network Security

Slides:



Advertisements
Similar presentations
CLASSICAL ENCRYPTION TECHNIQUES
Advertisements

Cryptography and Network Security
Cryptography and Network Security Chapter 2
Cryptography and Network Security Chapter 2. Chapter 2 – Classical Encryption Techniques Many savages at the present day regard their names as vital parts.
Announcement Grading adjusted –10% participation and two exams 20% each Newsgroup up Assignment upload webpage up Homework 1 will be released over the.
CSCE 790G: Computer Network Security
Cryptography and Network Security Third Edition by William Stallings Lecture slides by Lawrie Brown.
1 Day 04- Cryptography Acknowledgements to Dr. Ola Flygt of Växjö University, Sweden for providing the original slides.
Chapter 2 – Classical Encryption Techniques. Classical Encryption Techniques Symmetric Encryption Or conventional / private-key / single-key sender and.
Review What is security: history and definition Security policy, mechanisms and services Security models.
CPSC CPSC 3730 Cryptography Chapter 2 Classical Encryption Techniques.
Classical Encryption Techniques
Overview of Cryptographic Techniques Hector M Lugo-Cordero CIS 4361 Secure Operating System Administration 1.
Chapter 2 – Classical Encryption Techniques
Cryptography and Network Security Third Edition by William Stallings Lecture slides by Lawrie Brown.
Cryptography. Secret (crypto) Writing (graphy) –[Greek word] Practice and study of hiding information Concerned with developing algorithms for: –Conceal.
Cryptography and Network Security Chapter 2. Chapter 2 – Classical Encryption Techniques Many savages at the present day regard their names as vital parts.
Dr. Lo’ai Tawalbeh 2007 Chapter 2: Classical Encryption Techniques Dr. Lo’ai Tawalbeh New York Institute of Technology (NYIT) Jordan’s Campus INCS.
1 University of Palestine Information Security Principles ITGD 2202 Ms. Eman Alajrami 2 nd Semester
Chapter 2 Classical Encryption Techniques. Symmetric Encryption n conventional / private-key / single-key n sender and recipient share a common key n.
Hill Cipher Developed by the mathematician Lester Hill in The encryption algorithm takes m successive plain text and substitute for them m cipher.
Cryptography and Network Security Third Edition by William Stallings Lecture slides by Lawrie Brown.
Computer Science&Technology School of Shandong University Instructor: Hou Mengbo houmb AT sdu.edu.cn Office: Information Security Research Group.
Cryptography and Network Security Chapter 2. Symmetric Encryption  or conventional / private-key / single-key  sender and recipient share a common key.
Cryptography and Network Security (CS435) Part Two (Classic Encryption Techniques)
Cryptography and Network Security Chapter 2 Fourth Edition by William Stallings Lecture slides by Lawrie Brown.
Symmetric Encryption or conventional / private-key / single-key sender and recipient share a common key all classical encryption algorithms are private-key.
Network Security Lecture 12 Presented by: Dr. Munam Ali Shah.
 Classic Crypto  Slides based on those developed by Dr. Lawrie Brown at the Australian Defence Force Academy, University College, UNSW  See
1 Chapter 2-1 Conventional Encryption Message Confidentiality.
Network Security Lecture 11 Presented by: Dr. Munam Ali Shah.
Rather than just shifting the alphabet Could shuffle (jumble) the letters arbitrarily Each plaintext letter maps to a different random cipher text letter.
Module :MA3036NI Cryptography and Number Theory Lecture Week 3 Symmetric Encryption-2.
1 University of Palestine Information Security Principles ITGD 2202 Ms. Eman Alajrami.
Computer and Network Security Rabie A. Ramadan Lecture 2.
Data Security and Encryption (CSE348) 1. Lecture # 4 2.
Data Security and Encryption (CSE348) 1. Lecture # 3 2.
1 Cryptography and Network Security Third Edition by William Stallings Lecture slides by Lawrie Brown [Changed by Somesh Jha]
1 Cryptography and Network Security Fourth Edition by William Stallings Lecture slides by Lawrie Brown [Changed by Somesh Jha]
Information Systems Security 3. Chapter 2 – Classical Encryption Techniques Many savages at the present day regard their names as vital parts of themselves,
Symmetric Cipher Model Plaintext input 1- encryption algorithm 2- secret key Encryption Cipher text output Cipher text input 1- Decryption algorithm 2-
Chapter 2 – Classical Encryption Techniques. Symmetric Encryption or conventional / private-key / single-key sender and recipient share a common key all.
Chapter 2 – Classical Encryption Techniques Many savages at the present day regard their names as vital parts of themselves, and therefore take great pains.
Network Security Lecture 13 Presented by: Dr. Munam Ali Shah.
1 Cryptography and Network Security Fourth Edition by William Stallings Lecture slides by Lawrie Brown [Changed by Somesh Jha]
Cryptography and Network Security Chapter 2 Fifth Edition by William Stallings Lecture slides by Lawrie Brown.
1 Classical Encryption Techniques. 2 Symmetric cipher model –Cryptography –Cryptanalysis Substitution techniques –Caesar cipher –Monoalphabetic cipher.
Cryptography and Network Security Third Edition by William Stallings Lecture slides by Lawrie Brown.
Cryptography and Network Security Third Edition by William Stallings Lecture slides by Lawrie Brown.
By Marwan Al-Namari & Hafezah Ben Othman Author: William Stallings College of Computer Science at Al-Qunfudah Umm Al-Qura University, KSA, Makkah 1.
Cryptography and Network Security Third Edition by William Stallings Lecture slides by Lawrie Brown.
Prof. Wenguo Wang Network Information Security Prof. Wenguo Wang Tel College of Computer Science QUFU NORMAL UNIVERSITY.
Cryptography and Network Security Chapter 2 Fifth Edition by William Stallings Lecture slides by Lawrie Brown.
CSEN 1001 Computer and Network Security Amr El Mougy Mouaz ElAbsawi.
Substitution Ciphers.
Conventional Encryption Message Confidentiality
SUBSTITUTION CIPHERS A substitution technique is one in which the letters/number/symbols of plain text are replaced by other letters/numbers/symbols.
Classical Techniques: Substitution
Communication Security
Lecture Classical Encryption Techniques Dr. Nermin Hamza
CS4780 Cryptography and Information Security
Substitution Ciphers.
CSCI-235 Micro-Computer Applications
Outline Some Basic Terminology Symmetric Encryption
Computer and Network Security
Cryptography and Network Security Sixth Edition by William Stallings.
Conventional Encryption Message Confidentiality
A Technical Seminar Presentation CLASSICAL CRYPTOGRAPHY
“Classical Encryption Techniques”
Information Security IT423
Presentation transcript:

Cryptography and Network Security CLASSICAL ENCRYPTION TECHNIQUES

Classical Substitution Ciphers letters of plaintext are replaced by other letters or by numbers or symbols Or if plaintext is viewed as a sequence of bits, then substitution involves replacing plaintext bit patterns with ciphertext bit patterns OER ASSIGNMENT RC1249_TEAM004 20-MAY-2016 2

Caesar Cipher earliest known substitution cipher by Julius Caesar first attested use in military affairs replaces each letter by 3rd letter after example: meet me after the toga party PHHW PH DIWHU WKH WRJD SDUWB OER ASSIGNMENT RC1249_TEAM004 20-MAY-2016 3

Caesar Cipher can define transformation as: a b c d e f g h i j k l m n o p q r s t u v w x y z D E F G H I J K L M N O P Q R S T U V W X Y Z A B C mathematically give each letter a number a b c d e f g h i j k l m n o p q r s t u v w x y z 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 then have Caesar cipher as: c = E(p) = (p + k) mod (26) p = D(c) = (c – k) mod (26) OER ASSIGNMENT RC1249_TEAM004 20-MAY-2016 4

Cryptanalysis of Caesar Cipher • only have 26 possible ciphers A maps to A,B...Z • could simply try each in turn • a brute force search • given ciphertext, just try all shifts of letters • do need to recognize when have plaintext • eg.. break ciphertext "GCUA VQ DTGCM" OER ASSIGNMENT RC1249_TEAM004 20-MAY-2016

Monoalphabetic Cipher rather than just shifting the alphabet just shuffle (jumble) the letters arbitrarily each plaintext letter maps to a different random ciphertext letter hence key is 26 letters long Plain: abcdefghijklmnopqrstuvwxyz Cipher: DKVQFIBJWPESCXHTMYAUOLRGZN Plaintext: ifwewishtoreplaceletters Ciphertext: WIRFRWAJUHYFTSDVFSFUUFYA OER ASSIGNMENT RC1249_TEAM004 20-MAY-2016 6

Monoalphabetic Cipher Security now we have a total of 26! = 4 x 10^26 keys • with so many keys, one might think it is secure • problem is with the language characteristics OER ASSIGNMENT RC1249_TEAM004 20-MAY-2016

English Letter Frequencies OER ASSIGNMENT RC1249_TEAM004 20-MAY-2016

Playfair Cipher not even the large number of keys in a monoalphabetic cipher provides security one approach to improving security was to encrypt multiple letters the Playfair Cipher is an example invented by Charles Wheatstone in 1854, but named after his friend Baron Playfair OER ASSIGNMENT RC1249_TEAM004 20-MAY-2016 9

Playfair Key Matrix a 5X5 matrix of letters based on a keyword fill in letters of keyword (minus duplicates) fill rest of matrix with other letters eg. using the keyword MONARCHY M O N A R C H Y B D E F G I/J K L P Q S T U V W X Z OER ASSIGNMENT RC1249_TEAM004 20-MAY-2016 10

Encrypting and Decrypting plaintext is encrypted two letters at a time if a pair is a repeated letter, insert filler like 'X’ (low probability of appearance in language) if both letters fall in the same row, replace each with letter to right (wrapping back to start from end) if both letters fall in the same column, replace each with the letter below it (again wrapping to top from bottom) otherwise each letter is replaced by the letter in the same row and in the column of the other letter of the pair Wireless Wi re le sx sz XG MK UL XA XT OER ASSIGNMENT RC1249_TEAM004 20-MAY-2016 11

Security of Playfair Cipher • security much improved over monoalphabetic since have 26 x 26 = 676 digrams • would need a 676 entry frequency table to analyze (verses 26 for a monoalphabetic) and correspondingly more ciphertext • was widely used for many years by US & British military in WW1 • it can be broken, given a few hundred letters since still it has much of plaintext structure OER ASSIGNMENT RC1249_TEAM004 20-MAY-2016

Hill Cipher Developed by Lester Hill in 1929 The encryption algorithm takes m successive plaintext letters and substitutes for them m ciphertext letters The substitution is determined by m linear equations and is assigned a numerical value (a=0, b=1,…..,z=25) or . Or C=PK mod 26 and P= CK^-1 mod 26 OER ASSIGNMENT RC1249_TEAM004 20-MAY-2016 13

Hill Cipher C and P are row vectors of length 3 representing the plaintext and ciphertext.K is a 3 X 3 matrix representing the encryption key. Operations are performed on mod 26. For example, consider the plaintext: paymoremoney and The first three letters of the plaintext are represented by the vector (15 0 24). Then(15 0 24)K = (303 303 531) mod 26 = (17 17 11) = RRL. Continuing in this fashion, the ciphertext for the entire plaintext is RRLMWBKASPDH. . OER ASSIGNMENT RC1249_TEAM004 20-MAY-2016 14

Polyalphabetic Ciphers A set of related monoalphabetic substitution rules is used use a key to select which alphabet is used for each letter of the message use each alphabet in turn repeat from start after end of key is reached make cryptanalysis harder with more alphabets to guess and flatter frequency distribution Key: deceptive 3 4 2 4 15 19 8 21 4 plaintext: wireless 22 8 17 4 11 4 18 18 ciphertext: zmtiaxao 25 12 19 8 26 23 26 39 OER ASSIGNMENT RC1249_TEAM004 20-MAY-2016 15

Vigenère Cipher In this scheme, the set of related monoalphabetic substitution rules consists of the 26 Caesar ciphers with shifts of 0 through 25. Each cipher is denoted by a key letter, which is the ciphertext letter that substitutes for the plaintext letter a. Thus, a Caesar cipher with a shift of 3 is denoted by the key value 3 OER ASSIGNMENT RC1249_TEAM004 20-MAY-2016 16

Example of Vigenère Cipher Let the key be “deceptive” Plaintext be “we are discovered save yourself” key: deceptivedeceptivedeceptive plaintext: wearediscoveredsaveyourself ciphertext:ZICVTWQNGRZGVTWAVZHCQYGLMGJ OER ASSIGNMENT RC1249_TEAM004 20-MAY-2016 17

When expressed numerically OER ASSIGNMENT RC1249_TEAM004 20-MAY-2016

Vernam Cipher and One-time Pad Introduced by an AT&T engineer named Gilbert Vernam in 1918. The scheme uses Keyword as long as the plaintext and has no statistical relationship to it. Vernam system works on binary data with ith bit of text exclusive ored with ith bit of key to produce ith bit of cipher In one one-time pad key is used only once This scheme is unbreakable OER ASSIGNMENT RC1249_TEAM004 20-MAY-2016 19 19

Vernam Cipher Ci = Pi XOR Ki and Pi = Ci XOR Ki OER ASSIGNMENT RC1249_TEAM004 20-MAY-2016

Transposition Cipher Mapping is performed by some sort of permutation on the plaintext letters. Example: Rail fence of depth 2 text : meet me after the toga party m e m a t r h t g p r y e t e f e t e o a t cipher: MEMATRHTGPRYETEFETEOAAT Rail fence of depth 2 OER ASSIGNMENT RC1249_TEAM004 20-MAY-2016 21 21

Summary Caesar Cipher Monoalphabetic Cipher Playfair Cipher Polyphabetic Cipher Vigenère Cipher Vernam Cipher and One-time Pad Transposition Cipher OER ASSIGNMENT RC1249_TEAM004 20-MAY-2016 Cryptography -Part -I 22 22

Reference William Stallings, Cryptography and Network Security, 6th Edition, Pearson Education, March 2013 OER ASSIGNMENT RC1249_TEAM004 20-MAY-2016

THANK YOU OER ASSIGNMENT RC1249_TEAM004 20-MAY-2016