Cryptology Making & Breaking Codes & Ciphers. AJ 1152 Cryptology Cryptography –Science of creating codes or ciphers Cryptanalysis –Science of breaking.

Slides:



Advertisements
Similar presentations
1 Counter-measures Threat Monitoring Cryptography as a security tool Encryption Digital Signature Key distribution.
Advertisements

Modern Cryptography.
Cryptography in World War II Jefferson Institute for Lifelong Learning at UVa Spring 2006 David Evans Class 4: Modern Cryptography
EEC 693/793 Special Topics in Electrical Engineering Secure and Dependable Computing Lecture 6 Wenbing Zhao Department of Electrical and Computer Engineering.
Public-key Cryptography Montclair State University CMPT 109 J.W. Benham Spring, 1998.
ECOMMERCE TECHNOLOGY SUMMER 2002 COPYRIGHT © 2002 MICHAEL I. SHAMOS Cryptographic Security.
BY MUKTADIUR RAHMAN MAY 06, 2010 INTERODUCTION TO CRYPTOGRAPHY.
ECOMMERCE TECHNOLOGY FALL 2003 COPYRIGHT © 2003 MICHAEL I. SHAMOS Cryptography.
Secure Hashing and DSS Sultan Almuhammadi ICS 454 Principles of Cryptography.
EEC-484/584 Computer Networks Lecture 16 Wenbing Zhao
McGraw-Hill©The McGraw-Hill Companies, Inc., Security PART VII.
How cryptography is used to secure web services Josh Benaloh Cryptographer Microsoft Research.
Cryptography1 CPSC 3730 Cryptography Chapter 9 Public Key Cryptography and RSA.
Overview of Cryptography and Its Applications Dr. Monther Aldwairi New York Institute of Technology- Amman Campus INCS741: Cryptography.
Fall 2010/Lecture 311 CS 426 (Fall 2010) Public Key Encryption and Digital Signatures.
Network Security – Part 2 V.T. Raja, Ph.D., Oregon State University.
What is Cryptography? Definition: The science or study of the techniques of secret writing, esp. code and cipher systems, methods, and the like Google.
8: Network Security8-1 Symmetric key cryptography symmetric key crypto: Bob and Alice share know same (symmetric) key: K r e.g., key is knowing substitution.
Lecture 24 Cryptography CPE 401 / 601 Computer Network Systems slides are modified from Jim Kurose and Keith Ross and Dave Hollinger.
Chapter 13: Electronic Commerce and Information Security Invitation to Computer Science, C++ Version, Fourth Edition SP09: Contains security section (13.4)
Encryption Methods By: Michael A. Scott
Chapter 8.  Cryptography is the science of keeping information secure in terms of confidentiality and integrity.  Cryptography is also referred to as.
Encryption. Introduction Computer security is the prevention of or protection against –access to information by unauthorized recipients –intentional but.
Introduction to Public Key Cryptography
Public Key Model 8. Cryptography part 2.
1 Fluency with Information Technology Lawrence Snyder Chapter 17 Privacy & Digital Security Encryption.
Chapter 12 Cryptography (slides edited by Erin Chambers)
1 Cryptography Basics. 2 Cryptography Basic terminologies Symmetric key encryption Asymmetric key encryption Public Key Infrastructure Digital Certificates.
Tonga Institute of Higher Education Design and Analysis of Algorithms IT 254 Lecture 9: Cryptography.
Network Security. An Introduction to Cryptography The encryption model (for a symmetric-key cipher).
Chi-Cheng Lin, Winona State University CS 313 Introduction to Computer Networking & Telecommunication Network Security (A Very Brief Introduction)
Network Security – Part 2 (Continued) Lecture Notes for May 8, 2006 V.T. Raja, Ph.D., Oregon State University.
Linux Networking and Security Chapter 8 Making Data Secure.
CS110: Computers and the Internet Encryption and Certificates.
10/1/2015 9:38:06 AM1AIIS. OUTLINE Introduction Goals In Cryptography Secrete Key Cryptography Public Key Cryptograpgy Digital Signatures 2 10/1/2015.
Encryption Coursepak little bit in chap 10 of reed.
Cryptography, Authentication and Digital Signatures
How cryptography is used to secure web services Josh Benaloh Cryptographer Microsoft Research.
David Evans CS200: Computer Science University of Virginia Computer Science Class 36: Public-Key Cryptography If you want.
Based on Applied Cryptography by Schneier Chapter 1: Foundations Dulal C. Kar.
CS526: Information Security Prof. Sam Wagstaff September 16, 2003 Cryptography Basics.
Module 3 – Cryptography Cryptography basics Ciphers Symmetric Key Algorithms Public Key Algorithms Message Digests Digital Signatures.
Day 37 8: Network Security8-1. 8: Network Security8-2 Symmetric key cryptography symmetric key crypto: Bob and Alice share know same (symmetric) key:
National Institute of Science & Technology Cryptology and Its Applications Akshat Mathur [1] Cryptology and Its Applications Presented By AKSHAT MATHUR.
Public Key Cryptography. symmetric key crypto requires sender, receiver know shared secret key Q: how to agree on key in first place (particularly if.
1 Security and Cryptography: basic aspects Ortal Arazi College of Engineering Dept. of Electrical & Computer Engineering The University of Tennessee.
Advanced Database Course (ESED5204) Eng. Hanan Alyazji University of Palestine Software Engineering Department.
Encryption No. 1  Seattle Pacific University Encryption: Protecting Your Data While in Transit Kevin Bolding Electrical Engineering Seattle Pacific University.
Lecture 2: Introduction to Cryptography
Cryptography 1 Crypto Cryptography 2 Crypto  Cryptology  The art and science of making and breaking “secret codes”  Cryptography  making “secret.
Overview of Cryptography & Its Applications
Chapter 3 – Public Key Cryptography and RSA (A). Private-Key Cryptography traditional private/secret/single-key cryptography uses one key shared by both.
+ Security. + What is network security? confidentiality: only sender, intended receiver should “understand” message contents sender encrypts message receiver.
Encryption CS110: Computer Science and the Internet.
Encryption Basics Module 7 Section 2. History of Encryption Secret - NSA National Security Agency –has powerful computers - break codes –monitors all.
Public Key Encryption, Secure WWW Transactions & Digital Signatures.
MM Clements Cryptography. Last Week Firewalls A firewall cannot protect against poor server, client or network configuration A firewall cannot.
1 Cryptography Troy Latchman Byungchil Kim. 2 Fundamentals We know that the medium we use to transmit data is insecure, e.g. can be sniffed. We know that.
CS526Topic 2: Classical Cryptography1 Information Security CS 526 Topic 2 Cryptography: Terminology & Classic Ciphers.
Cryptography services Lecturer: Dr. Peter Soreanu Students: Raed Awad Ahmad Abdalhalim
8: Network Security8-1 Chapter 8 Network Security A note on the use of these ppt slides: We’re making these slides freely available to all (faculty, students,
Department of Computer Science Chapter 5 Introduction to Cryptography Semester 1.
Network security Cryptographic Principles
Cryptography – Test Review
Public-key Cryptography
Security through Encryption
PART VII Security.
Fluency with Information Technology Lawrence Snyder
Modern Cryptography.
Presentation transcript:

Cryptology Making & Breaking Codes & Ciphers

AJ 1152 Cryptology Cryptography –Science of creating codes or ciphers Cryptanalysis –Science of breaking codes and ciphers

AJ 1153 Codes vs. Ciphers Code –Substitution of words or phrases by others –Example: Navajo “code talkers” of WW II: turtle means tank sea turtle means landing craft Cipher –Algorithmic scrambling/unscrambling –Example: Caesar cipher Replace each letter with the letter 3 positions after it in the alphabet (a  d, b  e, etc.)

AJ 1154 Terminology Plaintext –The unencrypted (readable) message Ciphertext –The encrypted version of the message Secure channel –A communications path safe from eavesdropping Insecure channel –A communications path that may be tapped

AJ 1155 Stream & Block Ciphers Stream cipher acts on one character at a time –Replaces each character with a different symbol –Fixed: Each plaintext ‘a’ is always replace by the same ciphertext symbol Example: Caesar cipher (‘a’ always replaced by ‘d’) Example: rot13 (used to encode “obscene” text) –Variable: Different occurrences of ‘a’ in the plaintext are replaced with different symbols in the ciphertext Example: German Enigma cipher machine of WWII

AJ 1156 Jefferson’s Cipher Machine A stack of code wheels threaded on a central axis –Could be any length, but typically ~30 –Each had all letters of the alphabet, but no two were identical To encrypt a message –Divide message into blocks = stack size –Turn wheels so plaintext shows on one row –Lock the wheels –Transmit any other row

AJ 1157 Jefferson’s Cipher Machine To decrypt a message –Set wheels to match the ciphertext for each block –Lock the wheels –Look for the one row that contains readable plaintext Jefferson’s machine was used, successfully, for almost a century

AJ 1158 Zimmermann Telegram

AJ 1159 Enigma & Ultra Used by Germany during WW II –Considered it “unbreakable” Broken in 1940 by Britain (“Ultra”) –Team at Bletchley Park, headed by Alan M. Turing

AJ How Enigma Worked Operator typed plaintext message 3 rotors scrambled each letter Ciphertext character lit up on upper panel Rotors turned after every letter

AJ How Enigma was Solved Lots of similar messages –Germans sent weather information to U-boats every day, all in same format Human error –Lazy or tired operators re-used rotor settings instead of changing them –Repeated first 3 characters of message Weakness of algorithm –Would never translate a letter to itself

AJ How Enigma was Solved The “Bombe” –Computer at Bletchley Park –Searched thousands of possible Enigma settings, looking for one that yielded readable plaintext Captured code books –Naval vessels carried books of Enigma settings –British captured U-559 in Sept By 1943, Britain could read intercepted Enigma messages before the Germans could!

AJ Exchanging Keys Prior to 1976, all ciphers were “symmetric” –Used the same key to encrypt and decrypt Problem with all old encryption schemes is the key exchange –Recipient must have the same key as the sender –How do you transmit a secret key over an insecure channel?

AJ Public-Key Cryptography New Directions in Cryptography –Whitfield Diffie & Martin Hellman, 1976 Proposed using two keys –One to encrypt messages (the public key) –A different key to decrypt (the private key) –Also known as asymmetric cryptography Two keys are related, but one cannot be derived from the other –Public key can be published

AJ The RSA System Select two prime numbers, p and q –Ex: choose p = 11, q = 3 Compute n = pq, f = (p-1)(q-1) –Ex: n = 11  3 = 33, f = 10  2 = 20 Choose e, the encryption key, less than n, so that e and f have no common factors –Ex: choose e = 3

AJ The RSA System Find d (the decryption key) –Need ( e  d / f ) to leave a remainder of 1 –Ex: 3  d / 20 leaves remainder 1 if d = 7 Key pair is (n,e) and (n,d) –Encryption (public) key is (33, 3) –Decryption (private) key is (33, 7)

AJ The RSA System Encrypting a message –ciphertext = (plaintext) e mod n –Ex: plaintext = 13 ciphertext = 13 3 mod 33 = 2197 mod 33 = 19 Decrypting the message –plaintext = (ciphertext) d mod n plaintext = 19 7 mod 33 = mod 33 = 13

AJ Why is RSA Secure? Real versions use very large numbers –Modulus, n, is at least 1024 bits long About 340 decimal digits So p and q are each about 200 digits long Numbers are easy to multiply, but hard to factor –It’s easy to compute n if you know both p and q –It’s almost impossible to factor n into p & q

AJ Just How Secure Is It? No cipher is 100% unbreakable –Except “one-time pads,” but they have other problems By making the modulus larger, RSA can be made arbitrarily hard to break –With a 2048-bit modulus, all the computing power in the world would take over 70 years to break one cipher

AJ What are the Problems? Asymmetric encryption is S-L-O-W –Can take even powerful computers 1-2 seconds to encrypt or decrypt a message Can be fooled by someone posing as someone else –If Eve claims to be Bob and publishes “Bob’s” public key, any messages encrypted with it will be readable by Eve, not Bob

AJ Speeding Things Up DES (Data Encryption Standard) –Proposed in 1974 by NSA, IBM –Symmetric cipher –Algorithm can be implemented in hardware Key very short –56 bits long (40-bit key and 16-bit header) –Could be broken “by force” with enough computing power (which NSA has)

AJ DES and 3DES Shortness of key used by DES considered a weakness Newer version is “triple-DES” or 3DES –136 bits long (120-bit key + 16-bit header) AES (Advanced Encryption Standard) –Uses 128-bit key DES, 3DES, and AES are all symmetric

AJ SSL Secure Sockets Layer (SSL) –Invented by Netscape in 1995 Uses RSA to exchange a “session key” –DES, 3DES, or AES key used for that browser session only Gets both speed and security –RSA only used to exchange session key –Session key expires when user logs out

AJ Digital Certificates Overcome “spoofing” attack –Perform same function as notary public Purchase from Certificate Authorities (CAs) –VeriSign, Thawte, Comodo, GeoTrust, … Contain my public key “Signed” by the root certificate –Located in your browser

AJ Digital Signatures Asymmetric cryptography can be used to digitally “sign” documents –Achieves all purposes of conventional signature (but better): Cannot be forged Cannot be stolen and re-used Cannot be repudiated Assume Alice wants to sign a document and send it to Bob. Here goes …

AJ Digital Signatures 1.Alice computes the MD5 (or SHA-1) digest value for the document 2.She encrypts the (document+digest) combination using her own private key 3.She then encrypts the previous message using Bob’s public key and sends Bob the result.

AJ Digital Signatures 1.Bob decrypts the message from Alice using his own private key. 2.He then decrypts the resulting message using Alice’s public key. 3.He isolates the digest value and compares it with the value he computes for the rest of the message. 4.If everything matches, he knows that Alice signed this document.

AJ Digital Signatures Can Alice later repudiate her signature? –No, because only she has her private key Can Bob or Eve forge Alice’s signature? –No, for the same reason Can Eve steal Alice’s signature and use it to “sign” a different document? –No, because then the digest values wouldn’t match

AJ State of the Art Public-key cryptography allows people to communicate securely even if they have never met –Necessary for electronic commerce Ciphers cannot be made 100% secure, but they can be made arbitrarily secure –Use longer keys Both good guys and bad guys can use this technology –Cryptanalysis is essentially obsolete