Course 2.3Lesson 1 of 3
Data that crosses a network can be copied by anyone who taps into it. This lesson explains why data is encrypted before it is sent, and the words you need: plaintext, ciphertext, key, encryption and decryption.
Try the code and the simulations beside the lesson.
Think of a postcard. On its way to your friend, it passes through many hands, and anyone can read it. Data on a network is like that. Packets pass through cables, routers and the air. A person with the right equipment can intercept them: copy them as they go past, without the sender or the receiver knowing.
Some data must stay private: passwords, bank details, medical records, private messages. We cannot stop every interception. So we make the data meaningless to anyone who intercepts it. That is the purpose of encryption.
Encryption scrambles data so that it cannot be understood without a key. It does not stop the data being intercepted. It stops the intercepted data being understood.
A very old method shifts every letter along the alphabet by the same number of places. The number of places is the key. With the key , A becomes D, B becomes E, and at the end of the alphabet we go round again: X becomes A, Y becomes B and Z becomes C.
SEND THE FILEVHQG WKH ILOHTo decrypt, shift back by . A person who intercepts VHQG WKH ILOH sees nonsense, unless they know or guess the key.
If we number the letters A , B , up to Z , the rule is . Here is the plaintext letter, is the key and is the ciphertext letter. The word means "the remainder after dividing by", so the count wraps round after Z.
The shift cipher is far too weak for real use, because there are only useful keys, and a computer can try them all at once. But it shows the idea of every encryption method: an algorithm, a key, and ciphertext that is useless without the key. The exam does not ask you to carry out a shift cipher.
The program encrypts a message with a shift cipher and the key . Then it decrypts it by shifting back with the key .
Try each one on your own first. If you are stuck, open a hint. Then check with Show the answer.
CAB with a shift cipher and the key .Every lesson is open to read. Enrolling also lets you:
Log in to join the discussion.
Loading…
This lesson is free to read. Enroll free to keep your place and take the tests.