Module :MA3036NI Cryptography and Number Theory Lecture Week 3 Symmetric Encryption-2.

Slides:



Advertisements
Similar presentations
CLASSICAL ENCRYPTION TECHNIQUES
Advertisements

Using Cryptography to Secure Information. Overview Introduction to Cryptography Using Symmetric Encryption Using Hash Functions Using Public Key Encryption.
Classical Encryption Techniques Week 6-wend. One-Time Pad if a truly random key as long as the message is used, the cipher will be secure called a One-Time.
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.
Chapter 2 – Classical Encryption Techniques. Classical Encryption Techniques Symmetric Encryption Or conventional / private-key / single-key sender and.
Classical Encryption Techniques
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.
Chapter 2 Basic Encryption and Decryption. csci5233 computer security & integrity 2 Encryption / Decryption encrypted transmission AB plaintext ciphertext.
Classical Encryption Techniques
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.
A Technical Seminar Presentation CLASSICAL CRYPTOGRAPHY
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.
Network Security (Course Details) By ASIM SHAHZAD Assistant Professor University Of Engineering And Technology Taxila.
Lec. 5 : History of Cryptologic Research II
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.
Data Security and Encryption (CSE348) 1. Lecture # 5 2.
Classical Encryption Techniques CSE 651: Introduction to Network Security.
 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.
CSCI 5857: Encoding and Encryption
1 University of Palestine Information Security Principles ITGD 2202 Ms. Eman Alajrami.
Data Security and Encryption (CSE348) 1. Lecture # 4 2.
1 University of Palestine Information Security Principles ITGD 2202 Ms. Eman Alajrami 2 nd Semester
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.
Cryptography and Network Security Chapter 2
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.
Lecture 3 1. TRANSPOSITION CIPHERS 2 Transposition Ciphers now consider classical transposition or permutation ciphers these hide the message by rearranging.
Chapter 2 Basic Encryption and Decryption
Conventional Encryption Message Confidentiality
Row Transposition Ciphers
Communication Security
Cryptography and Network Security
Outline Some Basic Terminology Symmetric Encryption
Computer and Network Security
Conventional Encryption Message Confidentiality
A Technical Seminar Presentation CLASSICAL CRYPTOGRAPHY
Cryptographic Algorithms and Protocols
Presentation transcript:

Module :MA3036NI Cryptography and Number Theory Lecture Week 3 Symmetric Encryption-2

2 Poly alphabetic Ciphers Another approach to improving security is to use multiple cipher alphabets Called polyalphabetic substitution ciphers Makes cryptanalysis harder with more alphabets to guess and flatter frequency distribution 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

Poly alphabetic Ciphers The polyalphabetic substitution cipher is a simple extension of the monoalphabetic one. The difference is that the message is broken into blocks of equal length, say B, and then each position in the block (1… B) is encrypted (or decrypted) using a different simple substitution cipher key. The block size (B) is often referred to as the period of the cipher.

Poly alphabetic Ciphers Example of the polyalphabetic substitution cipher key and encryption process.(Using block size 3 ) Plaintext: ABCDEFGHIJKLMNOPQRSTUVWXYZ Cipherkey: NDWIEURYTLAKSJQHFGMZPXOBCV (Position 1) LPMKONJIBHUVGYCFTXDRZSEAWQ (Position 2) GFTYHBVCDRUJNXSEIKMZAOLWQP (Position 3) Position: Plaintext: HOW ARE YOU Cipher text: RYOVLKIQWJR (How to decrypt?)

5 Vigenère Cipher Simplest polyalphabetic substitution cipher is the Vigenère Cipher Effectively multiple Caesar ciphers Key is multiple letters long K = k1 k2... kd i th letter specifies i th alphabet to use Use each alphabet in turn Repeat from start after d letters in message Decryption simply works in reverse

6 Example Write the plaintext out Write the keyword repeated above it Uses each key letter as a Caesar cipher key Encrypt the corresponding plaintext letter E.g. using keyword deceptive key: deceptivedeceptivedeceptive plaintext: wearediscoveredsaveyourself ciphertext:ZICVTWQNGRZGVTWAVZHCQYGLMGJ ( How to decrypt?)

7 Vigenère Table

8 Security of Vigenère Ciphers There are multiple cipher text letters for each plaintext letter Hence letter frequencies are obscured, but not totally lost Q. Encipher “TO BE OR NOT TO BE THAT IS THE QUESTION", using a Vigenère cipher with keyword “SUBSTITUTION”.

9 Kasiski Method Method developed by Babbage / Kasiski to find the length of key word in Vigenère chpher Repetitions in cipher text give clues to period So find same plaintext an exact period apart Which results in the same cipher text Of course, could also be random fluke E.g. repeated “VTW” in previous example suggests that the size of keyword is 3 or 9 Then attack each mono alphabetic cipher individually using same techniques as before

10 One-Time Pad If a truly random key as long as the message is used, the cipher will be secure Called a One-Time pad It is unbreakable since ciphertext bears no statistical relationship to the plaintext Since for any plaintext & any ciphertext there exists a key mapping one to other The key can only be used once though There is a problem of safe distribution of key

One-Time Pad Encryption is a additional modulo 26 of plaintext character key length must be equal to the message length !!! For example: – Message: ONETIMEPAD – Pad Sequence: TBFRGFARFM – Cipher text: HO……… Because O+T mod 26 = H  mod 26 = 7 N+B mod 26 = O  13+1 mod 26 = 14 E+F mod 26 = ……… etc. Decryption P+K mod 26 = C P = C-K mod 26 H-T mod 26 =7-19 mod 26 = -12 mod 26 = 14 = O 11

12 Transposition Ciphers Now consider classical transposition or permutation ciphers These hide the message by rearranging the letter order without altering the actual letters used They can be recognised since have the same frequency distribution as the original text

13 Rail Fence cipher Write message letters out diagonally over a number of rows Then read off cipher row by row E.g. write message "meet me after the toga party” out as: m e m a t r h t g p r y e t e f e t e o a a t Giving cipher text MEMATRHTGPRYETEFETEOAAT

14 Row Transposition Ciphers This is a more complex scheme Write letters of message out in rows over a specified number of columns Then reorder the columns according to some key before reading off the rows Key: Plaintext: a t t a c k p o s t p o n e d u n t i l t w o a m x y z Ciphertext: TTNAAPTMTSUOAODWCOIXKNLYPETZ

15 Product Ciphers Ciphers using substitutions or transpositions are not secure because of language characteristics Hence consider using several ciphers in succession to make it harder, but: – two substitutions make a more complex substitution – two transpositions make more complex transposition – but a substitution followed by a transposition makes a new much harder cipher This is bridge from classical to modern ciphers

16 Rotor Machines Before modern ciphers, rotor machines were most common product cipher They were widely used in WW2 – E.g. German Enigma, Japanese Purple They implemented a very complex, varying substitution cipher Used a series of cylinders, each giving one substitution, which rotated and changed after each letter was encrypted With 3 cylinders have 26 3 =17576 alphabets

The Rotor Machine 17

Enigma Rotor Machine

Steganography An alternative to encryption Hides existence of message – using only a subset of letters/words in a longer message marked in some way – using invisible ink – hiding in graphic image or sound file Drawbacks – high overhead to hide relatively few info bits

20

Example hide your plaintext in a graphic image Each pixel has 3 bytes specifying the RGB color The least significant bits of pixels can be changed without greatly affecting the image quality So can hide messages in these LSBs Steganography

Summary Polyalphabetic ciphers Transposition ciphers Product ciphers Rotor machines Steganography