



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!




CPSC 6128 – Network Security Name: ________________________ Spring 2004
When one transmits data over a packet-switched network, like the Internet, a packet sniffer at any node along the transmission path can detect packets with potentially useful information. Unfortunately, some of this information (for example, credit card numbers or other private information) is most useful to people with dishonorable (and often crimi- nal) intentions. As commerce over the Internet – and other vulnerable long-distance networks – increases, this problem becomes more critical. Private data stored on a computer that’s accessible over a network is also vulnerable One solution to this problem is to encipher data one wants to keep private. In other words, one can somehow “scramble” the data so that it’s unrecognizable to anyone who does not have the necessary key to “unscramble” – or decipher – it. In so-called “traditional” encryption techniques, the same key is used for enciphering (or encryption) and deciphering (or decryption). The key is typically a large number that is used to mathematically transform the message. The problem then becomes the secure transmission of the key itself. One solution to this problem is to use two different keys – one for encryption and the other for decryption. Alice could then send her encryption key to Bob^1 , who could use it to send an encoded message back to Alice. Provided Alice keeps her decryption key private, no one who intercepts the message will be able to decode it.^2 In fact, Alice could make her encryption key publicly available, so that Carol, David, Egbert, or anyone else who wants to do so can send her an encoded message. So long as she keeps her decryption key secret, no one else will be able to read messages meant only for Alice. For this reason, this type of system is called a public-key encryption system. Often, the encryption key is called the public key , and the decryption key is called the private key. In this lab, you will be working with a simplified – and not very secure – version of one of the most popular public-key systems: the RSA public-key encryption system.^3 Like all public-key systems, the keys are derived using a “trapdoor” operation – an operation that is easy to do but difficult to “undo.” In RSA, this operation is the multiplication of two large prime numbers: it is easy and fast to multiply the two numbers together, but it is significantly more difficult and time consuming to factor the resulting number back into its prime components. In this lab experience, you will be using relatively small primes (only three digits) to see how this system works. (^1) Alice and Bob are the parties to encrypted data exchanges throughout the literature on encryption. If a third party is needed, she’s often named Carol, for some reason. (^2) I’m assuming that Alice is using so-called strong encryption. Otherwise, a cryptanalyst – someone whose profession is breaking codes – who intercepts the message will still be able to decode it. (^3) Named for its inventors – Ron Rivest, Adi Shamir and Leonard Adelman.
Lab VIII: page 2 To explore this system in more depth, you will be exchanging encrypted messages with your classmates.
Lab VIII: page 4 Divide the remainder from the second step by 26. The quotient is the code for the third letter and the remainder is the code for the fourth letter. For the mathematically inclined, this quadragraph calculation determines the representation of the enciphered message as a four-digit number in base twenty-six (using the letters of the alphabet as our digits). Some of the details of this calculation appear in cells A16:K38 of the Encoding worksheet. Enter the plaintext and ciphertext below. Show the steps of the conversion process in the table. Plaintext: _____________________________________
Trigraph Trigraph Code Enciphered Code Quadragraph Ciphertext: ___________________________________
Lab VIII: page 5 ( Ciphertext quadragraph code)Private^ Key , dividing the result by the Modulus and taking the remainder Convert each deciphered quadragraph code into a trigraph. Divide the code by 26^2. The quotient is the code for the first letter. Divide the remainder from the first step by 26. The quotient will be the code for the second letter and the remainder the code for the third. Note that deciphering uses the private key in place of the public key. Some of the details of this calculation appear in cells A19:D23 of the Decoding Worksheet. The deciphered message should appear in cell B13. Record the results of each deciphering step in the table below.
Quadragraph Quadragraph Code Deciphered Code Deciphered Trigraph Now, write the deciphered message (plaintext) below. Deciphered message: __________________________