






Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!







Jan 24, 2005 -- Lecture 3
Douglas W. Jones Department of Computer Science
Encryption (Encoding) cleartext plaintext encryption key encrypt cyphertext cyphertext = Fencrypt(plaintext, keyencrypt)
Cryptanalysis or Code Breaking cyphertext contextual knowledge crack decryption key kdecrypt = Fcrack(cyphertext)
In an Ideal world, we hope for for a message of length n Fencrypt = O(n) Fdecrypt = O(n) Fcrack not in computable In the real world, we might accept Fencrypt in Fdecrypt in Fcrack in NP
Public Key Cyphers plaintext key encrypt key decrypt plaintext t = Fdecrypt(Fencrypt(t,k 1 ), k 2 ) <k 1 ,k 2 > = Fkey generate(kmaster)
Example: Julius Caesar's Cypher plaintext = "Veni Vidi Vici" Fencrypt = for each character, add k Fencrypt( plaintext, 4 ) = "Zirm Zmhm Zmgm" Fdecrypt = for each character, subtract k for k = 13 on a 26 letter alphabet, Fencrypt = Fdecrypt Caesar Cypher = simple letter substitution
Example: Exclusive Or Cyphers Fencrypt( t, k ) = t ⊕ k Fdecrypt( t, k ) = t ⊕ k plaintext = 10001011111000 k = 10100101100001 cyphertext = 00101110011001 So long as keys are random and never reused this code cannot be broken!