• No results found

lecture 3 - Cryptography I.ppt

N/A
N/A
Protected

Academic year: 2020

Share "lecture 3 - Cryptography I.ppt"

Copied!
35
0
0

Loading.... (view fulltext now)

Full text

(1)

Computer Security I

Computer Security I

Unit 2: Authorization & Authentication

(2)

Objectives

Objectives

Introduce the basic concepts of cryptography

Cryptographic algorithms

(3)

Basic Concepts

Basic Concepts

Cryptography: is the study of

secret (crypto-) writing (-graphy)

It is the practice of using

encryption to conceal a message from all except the sender and

(4)

Encryption: is the process of

encoding a message so that its meaning is not obvious.

Decryption: is the reverse

process, transforming an

(5)

Cipher: an algorithm for

transforming an intelligible message into one that is

unintelligible by transposition and/or substitution methods

Key: some critical information

(6)

Plaintext (P): The original form

of a message. We denote a plaintext message P as a

sequence of individual characters

P = {p1,p2,…pn}

Ciphertext (C): The encrypted

form of a message. We denote a ciphertext message C as a

sequence of individual characters

(7)

The transformation between

plaintext and ciphertext are denoted :

C = E(P) and P=D(C)

C: Ciphertext

E: Encryption Algorithm

P: Plaintext

(8)

Therefore we want a

cryptosystem for which P = D(E(P))

Encryptio n

Decryptio n

(9)

Encryption Algorithms

Encryption Algorithms

Some encryption algorithms use

a key K, so the cipher text

message depends on the original plaintext message and the key

value, denoted

C = E(K,P) where E is a set of

encryption algorithms and the key K selects one specific

(10)

Symmetric and Asymmetric

Symmetric and Asymmetric

Encryption

Encryption

Symmetric Encryption:

Encryption key and decryption key are the same, so that

P=D(K,E(K,P)) where D and E are mirror image processes. Parties that communicate share a secret key. Mainly used to encipher/

(11)

Symmetric and Asymmetric

Symmetric and Asymmetric

Encryption

(12)

Asymmetric Encryption:

Each party has a pair of keys (Kpu, Kpr) where Kpu is the public key and Kpr is the private key.

The Public and Private key pair

comprise of two uniquely related cryptographic keys (basically long random numbers). Below is an

example of a Public Key:

(13)

The Public Key is what its name suggests - Public. It is made available to everyone via a publicly accessible repository or

directory. On the other hand, the Private Key must remain confidential to its

respective owner.

Because the key pair is mathematically related, whatever is encrypted with a

Public Key may only be decrypted by its corresponding Private Key and vice

(14)

For example, if Cindy wants to send

sensitive data to Lisa, and wants to be sure that only Lisa may be able to read it, she will encrypt the data with Lisa's Public Key. Only Lisa has access to her corresponding Private Key and as a

result is the only person with the

capability of decrypting the encrypted data back into its original form.

Public Key Cryptography can therefore achieve Confidentiality.

(15)
(16)
(17)

Classes of Encryption

Classes of Encryption

Substitution: Exchanging each

character of a message with another character or symbol

Transposition: The order of the

(18)

Substitution

Substitution

(Monoalphabetic Ciphers)

(Monoalphabetic Ciphers)

Caesar Cipher: Used a shift of 3, so that plaintext P was

enciphered as ciphertext letter C by

(19)

An alternative is to use a key, a

word that controls the enciphering.

Eg.

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

(20)

Another possibility is to count by

3s , (or 5s, 7s or 9s) using every third letter

Eg. Using (3*µ) mod 26

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

(21)

Disadvantages

Disadvantages

Monoalphabetic ciphers: -

Frequency distribution reflects

(22)

Substitution

Substitution

(Polyalphabetic Ciphers)

(Polyalphabetic Ciphers)

Flattens distribution by combining

two distributions, using two

separate encryption alphabets.

1st: For all characters in odd

positions of plaintext

2nd: For all characters in even

(23)

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

a d g j m p s v y b e h k

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

n s x c h m r w b g l q v

Table 1 (Odd Position): (3*µ) mod 26

Table 2 (Even Position): ((5*µ)+13) mod 26

C O M P U T E R

g f k k i e m u

(24)

Vigenere Tableaux

Vigenere Tableaux

Uses a keyword and lets the

(25)
(26)

Vigenere Tableaux

Vigenere Tableaux

Eg

P A S S C O D E P A S S C O D E P A S S C O D E

(27)

One Time Pads

One Time Pads

Large non-repeating set of keys

are written on sheets of paper, put together into a pad.

Sender would write the

non-repeating keys one at a time

(28)

The receiver needs an identical

pad as the sender. Upon

receiving the message, the

receiver takes the appropriate number of keys and deciphers the message.

Explore also Long Random

(29)

Problems with one time

Problems with one time

pads

pads

Need absolute synchronization

between sender and receiver

Need unlimited number of keys

(Generating large number of keys is no problem, however, the

(30)

Transpositions

Transpositions

(Permutations)

(Permutations)

An encryption process in which

the letters of the message are rearranged.

Goal: To spread the information

(31)

Columnar Transposition

Columnar Transposition

The plaintext is separated into

blocks in the form

Eg

p1 p2 P3 p4 p5

p6 P7 p8 p9 p10 p11 P12 p13 p14 p15

T H I S I

(32)

The resulting ciphertext would

then be: tsu ham icn soa ilr

Explore also Double Transposition

(33)

Cryptanalytic Attacks

Cryptanalytic Attacks

Ciphertext only: The cryptanalyst

knows only the ciphertext.

Sometimes the language of the

plaintext and cipher are also known. Goal: Find the plaintext and the key

Known-plaintext attack: The

cryptanalyst knows several pairs of ciphertext and corresponding

plaintext. Goal: Find the key used to encrypt messages or a way to

(34)

Chosen-plaintext: The

cryptanalyst knows a number of encrypted messages and he can also encrypt any message he

chooses. Goal: To deduce the key used in the other encrypted

messages or decrypt any new message using that key.

Chosen ciphertext: Similar to the

chosen-plaintext but the

cryptanalyst can choose the

(35)

Summary

References

Related documents

We analysed the financial data, representing the performance of 380 legal firms operating in the small to medium enterprise (SME) space, employing 14,400 people in total (including

Section 2.3 approaches the credit network formation game using simulation-based game theory. Procedural description of the environment allows for a much richer model of the costs

At an effective temperature of 3000 K, PSR J0636 + 5128 appears to have a composition with somewhat higher density than pure hydrogen ( similar to helium ) , which suggests that

With the above techniques, our experimental results have demonstrated that the presented GPU neural network simulator is about 600X faster than a basic serial CPU based simulator,

Evaluation of revised livestock CH4 emissions estimates Compared to other bottom-up estimates for recent years (Table  5 ), our revised emissions factors yield annual CH 4 C

In Oregon rider, for Specified Disease diagnosed during the first 30 days of coverage, Express Payment Benefit is not payable, and benefits will only be paid for hospital

En los bachilleratos populares, en “la escuela de colores” ya citada, en las aulas que subvierten el orden de lo instituido, los muros escolares son perforados por la(s)

It is possible to an- ticipate these negative effects by investigating social capital using a metric by means of which it is possi- ble to describe a model defined by inputs