Computer Science CSC 474By Dr. Peng Ning1 CSC 474 Information Systems Security Topic 2.1 Introduction to Cryptography.

Slides:



Advertisements
Similar presentations
Using Cryptography to Secure Information. Overview Introduction to Cryptography Using Symmetric Encryption Using Hash Functions Using Public Key Encryption.
Advertisements

ECE454/CS594 Computer and Network Security Dr. Jinyuan (Stella) Sun Dept. of Electrical Engineering and Computer Science University of Tennessee Fall 2011.
Computer Science CSC 405By Dr. Peng Ning1 CSC 405 Introduction to Computer Security Topic 2. Basic Cryptography (Part I)
CS 6262 Spring 02 - Lecture #7 (Tuesday, 1/29/2002) Introduction to Cryptography.
1 Introduction CSE 5351: Introduction to cryptography Reading assignment: Chapter 1 of Katz & Lindell.
1 Encryption and Forensics/Data Hiding. 2 Cryptography Background See: For more information.
1 Counter-measures Threat Monitoring Cryptography as a security tool Encryption Digital Signature Key distribution.
Session 5 Hash functions and digital signatures. Contents Hash functions – Definition – Requirements – Construction – Security – Applications 2/44.
Security Chapters 14,15. The Security Environment Threats Security goals and threats.
ECOMMERCE TECHNOLOGY SUMMER 2002 COPYRIGHT © 2002 MICHAEL I. SHAMOS Cryptographic Security.
Chapter 5 Cryptography Protecting principals communication in systems.
BY MUKTADIUR RAHMAN MAY 06, 2010 INTERODUCTION TO CRYPTOGRAPHY.
ECOMMERCE TECHNOLOGY FALL 2003 COPYRIGHT © 2003 MICHAEL I. SHAMOS Cryptography.
McGraw-Hill©The McGraw-Hill Companies, Inc., Security PART VII.
CS1001 Lecture 24. Overview Encryption Encryption Artificial Intelligence Artificial Intelligence Homework 4 Homework 4.
Overview of Cryptography and Its Applications Dr. Monther Aldwairi New York Institute of Technology- Amman Campus INCS741: Cryptography.
CS526Topic 2: Classical Cryptography1 Information Security CS 526 Topic 2 Cryptography: Terminology & Classic Ciphers.
Introduction to Cryptography
Computer Science CSC 774Dr. Peng Ning1 CSC 774 Advanced Network Security Topic 2. Review of Cryptographic Techniques.
Computer Science CSC 474Dr. Peng Ning1 CSC 474 Information Systems Security Topic 2.5 Public Key Algorithms.
Chapter 8.  Cryptography is the science of keeping information secure in terms of confidentiality and integrity.  Cryptography is also referred to as.
Encryption is a way to transform a message so that only the sender and recipient can read, see or understand it. The mechanism is based on the use of.
Introduction to Public Key Cryptography
Cryptography Week-6.
DNSSEC Cryptography Review Track 2 Workshop July 3, 2010 American Samoa Hervey Allen.
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.
Lecture 15 Lecture’s outline Public algorithms (usually) that are each other’s inverse.
© Neeraj Suri EU-NSF ICT March 2006 DEWSNet Dependable Embedded Wired/Wireless Networks MUET Jamshoro Computer Security: Principles and Practice Slides.
Chi-Cheng Lin, Winona State University CS 313 Introduction to Computer Networking & Telecommunication Network Security (A Very Brief Introduction)
3.1 SERVICES AND MECHANISMS SERVICES AND MECHANISMS The International Telecommunication Union- Telecommunication Standardization Section (ITU-T) provides.
The School of Electrical Engineering and Computer Science (EECS) CS/ECE Network Security Dr. Attila Altay Yavuz Basics Credit: Prof. Dr. Peng Ning Network.
Cryptography, Authentication and Digital Signatures
CSCE 201 Introduction to Information Security Fall 2010 Data Protection.
Day 18. Concepts Plaintext: the original message Ciphertext: the transformed message Encryption: transformation of plaintext into ciphertext Decryption:
Network Security Lecture 11 Presented by: Dr. Munam Ali Shah.
CS526: Information Security Prof. Sam Wagstaff September 16, 2003 Cryptography Basics.
EE515/IS523 Think Like an Adversary Lecture 4 Crypto in a Nutshell Yongdae Kim.
Module 3 – Cryptography Cryptography basics Ciphers Symmetric Key Algorithms Public Key Algorithms Message Digests Digital Signatures.
Cryptography Wei Wu. Internet Threat Model Client Network Not trusted!!
Symmetric-Key Cryptography
Cryptography Lynn Ackler Southern Oregon University.
Computer Security: Principles and Practice First Edition by William Stallings and Lawrie Brown Lecture slides by Lawrie Brown Chapter 2 – Cryptographic.
Traditional Symmetric-Key Ciphers
Advanced Database Course (ESED5204) Eng. Hanan Alyazji University of Palestine Software Engineering Department.
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.
Security fundamentals Topic 4 Encryption. Agenda Using encryption Cryptography Symmetric encryption Hash functions Public key encryption Applying cryptography.
Intro to Cryptography Lesson Introduction
CS526Topic 2: Classical Cryptography1 Information Security CS 526 Topic 2 Cryptography: Terminology & Classic Ciphers.
INCS 741: Cryptography Overview and Basic Concepts.
Cryptography services Lecturer: Dr. Peter Soreanu Students: Raed Awad Ahmad Abdalhalim
Department of Computer Science Chapter 5 Introduction to Cryptography Semester 1.
@Yuan Xue CS 285 Network Security Cryptography Overview and Classical Encryption Algorithms Fall 2012 Yuan Xue.
CRYPTOGRAPHY Cryptography is art or science of transforming intelligible message to unintelligible and again transforming that message back to the original.
Cryptographic Hash Function. A hash function H accepts a variable-length block of data as input and produces a fixed-size hash value h = H(M). The principal.
CS/ECE 578 Cyber-Security Dr. Attila Altay Yavuz
CS/ECE Network Security Dr. Attila Altay Yavuz
IT443 – Network Security Administration Instructor: Bo Sheng
Cryptography.
Security through Encryption
CS/ECE 478 Network Security Dr. Attila Altay Yavuz
Chapter -7 CRYPTOGRAPHIC HASH FUNCTIONS
DISSERTATION ON CRYPTOGRAPHY.
Introduction to Cryptography (1)
Presentation transcript:

Computer Science CSC 474By Dr. Peng Ning1 CSC 474 Information Systems Security Topic 2.1 Introduction to Cryptography

Computer Science CSC 474By Dr. Peng Ning2 Cryptography –Original meaning: The art of secret writing –Becoming a science that relies on mathematics (number theory, algebra) –Process data into unintelligible form, reversible, without data loss –Usually one-to-one (not compression)

Computer Science CSC 474By Dr. Peng Ning3 plaintext encryption ciphertext decryption plaintext key Encryption/Decryption Plaintext: a message in its original form Ciphertext: a message in the transformed, unrecognized form Encryption: the process that transforms a plaintext into a ciphertext Decryption: the process that transforms a ciphertext to the corresponding plaintext Key: the value used to control encryption/decryption.

Computer Science CSC 474By Dr. Peng Ning4 Cryptanalysis Ciphertext only: –Analyze only with the ciphertext –Example: Exhaustive search until “recognizable plaintext” –Smarter ways available Known plaintext: –Secret may be revealed (by spy, time), thus pair is obtained –Great for mono-alphabetic ciphers

Computer Science CSC 474By Dr. Peng Ning5 Cryptanalysis (Cont’d) Chosen plaintext: –Choose text, get encrypted –Useful if limited set of messages Chosen ciphertext: –Choose ciphertext –Get feedback from decryption, etc.

Computer Science CSC 474By Dr. Peng Ning6 Security of An Encryption Algorithm Unconditionally secure –It is impossible to decrypt the ciphertext –One-time pad (the key is as long as the plaintext) Computationally secure –The cost of breaking the cipher exceeds the value of the encrypted information –The time required to break the cipher exceeds the useful lifetime of the information

Computer Science CSC 474By Dr. Peng Ning7 Secret Keys v.s. Secret Algorithms Security by obscurity –We can achieve better security if we keep the algorithms secret –Hard to keep secret if used widely –Reverse engineering, social engineering Publish the algorithms –Security of the algorithms depends on the secrecy of the keys –Less unknown vulnerability if all the smart (good) people in the world are examine the algorithms

Computer Science CSC 474By Dr. Peng Ning8 Secret Keys v.s. Secret Algorithms (cont’d) Commercial world –Published –Wide review, trust Military –Keep algorithms secret –Avoid giving enemy good ideas –Military has access to the public domain knowledge anyway.

Computer Science CSC 474By Dr. Peng Ning9 Some Trivial Codes Caesar cipher –Substitution cipher –Replace each letter with the one 3 letters later –A  D, B  E Captain Midnight Secret Decoder Rings: –shift variable by n: IBM  HAL – only 26 possibilities

Computer Science CSC 474By Dr. Peng Ning10 Some Trivial Codes (Cont’d) Mono-alphabetic cipher: –Arbitrary mapping of one letter to another –26!, approximately 4  1026 –Statistical analysis of letter frequencies

Computer Science CSC 474By Dr. Peng Ning11 Some Trivial Codes (Cont’d) Hill Cipher –Encryption: C = KP or –Decryption: P = K -1 C –Problem: Known plaintext attack

Computer Science CSC 474By Dr. Peng Ning12 Some Trivial Codes (cont’d) Poly-alphabetic Ciphers –A set of related mono-alphabetic substitution rules is used –A key determines which particular rule is chosen for a given transformation

Computer Science CSC 474By Dr. Peng Ning13 Some Trivial Codes (Cont’d) All the previous codes are based on substitution Transposition (permutation) Key: Plaintext:ATTACKP OSTPONE DUNTILT WOAMXYZ Ciphertext: TTNAAPTMTSUOAODWCOIXKNLYPETZ

Computer Science CSC 474By Dr. Peng Ning14 Types of Cryptography Number of keys –Hash functions: no key –Secret key cryptography: one key –Public key cryptography: two keys - public, private The way in which the plaintext is processed –Block cipher: divides input elements into blocks –Stream cipher: process one element (e.g., bit) a time

Computer Science CSC 474By Dr. Peng Ning15 plaintext encryption ciphertext decryption plaintext key Same key Secret Key Cryptography Same key is used for encryption and decryption Also known as –Symmetric cryptography –Conventional cryptography

Computer Science CSC 474By Dr. Peng Ning16 Secret Key Cryptography (cont’d) Basic technique –Product cipher: –Multiple applications of interleaved substitutions and permutations plaintext SPSPS ciphertext … key

Computer Science CSC 474By Dr. Peng Ning17 Secret Key Cryptography (cont’d) Ciphertext approximately the same length as plaintext Examples –Stream Cipher: RC4 –Block Cipher: DES, IDEA, AES

Computer Science CSC 474By Dr. Peng Ning18 Applications of Secret Key Cryptography Transmitting over an insecure channel –Challenge: How to share the key? Secure Storage on insecure media Authentication –Challenge-response –To prove the other party knows the secret key –Must be secure against chosen plaintext attack Integrity check –Message integrity code (MIC)

Computer Science CSC 474By Dr. Peng Ning19 plaintext encryption ciphertext decryption plaintext Public keyPrivate key Public Key Cryptography Invented/published in 1975 A public/private key pair is used –Public key can be publicly known –Private key is kept secret by the owner of the key Much slower than secret key cryptography Also known as –Asymmetric cryptography

Computer Science CSC 474By Dr. Peng Ning20 message Sign Digital signature Verify Yes/No Private keyPublic key Public Key Cryptography (Cont’d) Another mode: digital signature –Only the party with the private key can create a digital signature. –The digital signature is verifiable by anyone who knows the public key. –The signer cannot deny that he/she has done so.

Computer Science CSC 474By Dr. Peng Ning21 Applications of Public Key Cryptography Data transmission: –Alice encrypts m a using Bob’s public key e B, Bob decrypts m a using his private key d B. Storage: –Can create a safety copy: using public key of trusted person. Authentication: –No need to store secrets, only need public keys. –Secret key cryptography: need to share secret key for every person to communicate with.

Computer Science CSC 474By Dr. Peng Ning22 Applications of Public Key Cryptography (Cont’d) Digital signatures –Sign hash H(m) with the private key Authorship Integrity Non-repudiation: can’t do with secret key cryptography Key exchange –Establish a common session key between two parties

Computer Science CSC 474By Dr. Peng Ning23 Message of arbitrary length Hash H A fixed-length short message Hash Algorithms Also known as –Message digests –One-way transformations –One-way functions –Hash functions Length of H(m) much shorter then length of m Usually fixed lengths: 128 or 160 bits

Computer Science CSC 474By Dr. Peng Ning24 Hash Algorithms (Cont’d) Desirable properties of hash functions –Performance: Easy to compute H(m) –One-way property: Given H(m) but not m, it’s difficult to find m –Weak collision free: Given H(m), it’s difficult to find m’ such that H(m’) = H(m). –Strong collision free: Computationally infeasible to find m 1, m 2 such that H(m 1 ) = H(m 2 )

Computer Science CSC 474By Dr. Peng Ning25 Applications of Hash Functions Primary application –Generate/verify digital signature Message m H H(m) Sign Private key Signature Sig(H(m)) Message m H H(m) Verify Public key Signature Sig(H(m)) Yes/No

Computer Science CSC 474By Dr. Peng Ning26 Applications of Hash Functions (Cont’d) Password hashing –Doesn’t need to know password to verify it –Store H(password+salt) and salt, and compare it with the user-entered password –Salt makes dictionary attack more difficult Message integrity –Agree on a secrete key k –Compute H(m|k) and send with m –Doesn’t require encryption algorithm, so the technology is exportable