60 likes | 221 Views
CSC 386 – Computer Security. Scott Heggen. Agenda. Cryptography. Substitution Cipher (Caesar Cipher). k =. Alice. Bob. “ egc hjj ”. C = E( k,m ) = “ egc hjj ”. D. E. “bad egg”. “bad egg”. k. k. Eve. Ciphers. How can we improve upon the Caesar Cipher?.
E N D
CSC 386 – Computer Security Scott Heggen
Agenda • Cryptography
Substitution Cipher (Caesar Cipher) k = Alice Bob “egchjj” C = E(k,m) = “egchjj” D E “bad egg” “bad egg” k k Eve
Ciphers • How can we improve upon the Caesar Cipher?
Assignment • For Monday: • Create a Python script which takes in two files:original_message.txtand key.txt • The original_message.txtfile can contain any message you chose to send me • The key.txt file must contain your B-number, without the letter B • The Python script must compute C using the message and the key. Your encryption algorithm E should be a pseudo-random substitution cipher which shifts each letter of message by the integer value in key with the same index (e.g., message[0] should be shifted by key[0] letters) • Submit to Moodle: • Your Python Script • coded_message.txt