Match each word to its plain meaning.
Choose the match for each entry. Every match has to be right.
People have always scrambled messages so that only the right reader can understand them, and sealed or signed them so that the reader can trust where they came from. Computers do both with arithmetic. No background and no mathematics are assumed. A security professional meets these ideas wherever records are stored, information is sent or someone has to prove what was agreed.
An illustrative example
A school office emails each pupil's examination results to the pupil's parents. One parent rings to say that the email came from an odd-looking address, and that the grade in it differs from the one on the printed slip.
The school secretary now has three worries. Did anyone else read the results on the way? Was the grade changed after it left the office? Did the email come from the school at all?
Which of the three worries would a locked box answer, and which need something more like a seal or a signature?
The Caesar cipher
Move every letter three places along the alphabet. MEET AT NOON becomes PHHW DW QRRQ. A reader who knows the rule moves each letter three places back and has the message again.
The readable message is the plaintext. The scrambled result is the ciphertext. Turning into is encryption, and turning it back is decryption.
A method that works on letters or bits, as this one does, is a cipher. A code swaps whole words or phrases for others, such as a codebook that writes 'eagle' for 'the director'.
Two things are at work in the Caesar . One is the method: move the letters along. The other is the key, the piece of information that makes one use of the method different from another. Here the key is the number 3.
In modern the method is published for anyone to examine, and all the secrecy lies in the key. A door lock is the same. How the lock works is no secret, and the security is in the shape of the key. This rule is called Kerckhoffs's principle.
A real key is a long number. Its length is given in bits, and each added bit doubles the number of keys an attacker would have to try.
Encryption keeps information private. On its own it does not show who wrote a message, or whether the message was altered on the way.
The Caesar cipher uses one key for both directions. This is symmetric encryption: the same key scrambles and unscrambles, so sender and receiver must both hold it and keep it secret. It works like a house key with copies.
is fast. Its difficulty is the first step. The key has to reach the other person without being copied on the way, and a stranger on the other side of the world cannot be handed a key.
Asymmetric encryption answers that difficulty with two keys made together as a pair. The public key can be given to anyone. The private key never leaves its owner. When a pair is used to encrypt, a message locked with one key of the pair can be opened only with the other. Knowing the public key does not reveal the private one.
A letterbox in a front door
Anyone who knows the address can push a letter through the slot. Only the person with the door key can take the letters out. The slot is the public key, and the door key is the private key.
| Point | One shared key (symmetric) | A pair of keys (asymmetric) |
|---|---|---|
| Keys | One, used in both directions | Two: one public, one private |
| Who holds them | Sender and receiver both hold the secret | The owner alone holds the private key. Anyone may hold the public key |
| Speed | Fast | Much slower |
| Main difficulty | Getting the key to the other side safely | Being sure whose public key it is |
| Used for | Encrypting large amounts of data | Passing a shared key safely, and |
The two are used together. A pair of keys carries a freshly made shared key safely to the other side, and the shared key then encrypts the conversation.
A hash function takes any amount of data, from one word to a whole film, and works out a short value of fixed length called a hash. Other names for the value are a digest and a .
A well-designed has five properties.
Two older hash functions, MD5 and SHA-1, have lost the fourth property: practical attacks can find two pieces of data with the same hash, so neither is trusted for this purpose.
A fingerprint is the nearest everyday thing. It is small, it identifies one person, and nobody can rebuild the person from it.
A hash shows whether data has changed. The hash is worked out once and kept. Later it is worked out again, and if the two values differ, the data is not what it was.
Common misconception
“Hashing is a kind of encryption.”
Encryption is made to be undone by whoever holds the key. A plain hash has no key and cannot be undone by anyone. Encryption keeps data private, and a hash shows whether data has changed.
A hash has one gap. Anyone who alters the data can work out a new hash to match, so a hash proves nothing about who produced it.
A digital signature closes that gap by bringing in the signer's private key.
A signature that passes proves three things.
A wax seal pressed with a ring that only one person owns made the same three claims for a letter.
A signature hides nothing: the document stays readable. Hiding and signing are separate jobs, and they use the keys in opposite directions.
To hide a message: the receiver's public key. To sign a message: the sender's own private key.
A digital signature is not a typed name or a scanned handwritten signature. Those are text and pictures, which anyone can copy.
A digital signature proves who signed and that nothing changed, and it hides nothing. The figure follows a document from the signer to the reader's check and the two outcomes the check can have.
One difficulty remains. A public key is only a number. A reader needs a reason to believe that it belongs to the bank, and not to an impostor using the bank's name.
A certificate supplies the reason. It is an electronic document that states which person or organisation a public key belongs to. It carries a start date and an end date, and it is digitally signed by a trusted organisation called a certificate authority (CA), also written . The certificate authority is responsible for checking who the owner is before it signs.
A passport is built in the same way. It ties a face to a name, it is issued by an office that checked, it expires, and it is believed because the issuer is trusted.
A can be cancelled before its end date, for instance when the private key has been stolen. Cancelling it is called revocation.
A website's name, as typed in a browser, is its web address. One beginning https asks for a protected connection. The server then presents its certificate. The browser checks the name, the dates and the certificate authority's signature before anything private is sent. Phones and computers come with a list of certificate authorities they already trust.
A certificate is public. It contains the public key and never the private one.
| Worry | Tool | What it relies on |
|---|---|---|
| Someone else may read it | Encryption | A key kept secret |
| It may have been changed | Hash | A trusted copy of the earlier hash |
| It may not be from the sender named, or the sender may deny it | Digital signature | The signer's private key |
| The public key may not be the owner's | Certificate | A trusted certificate authority |
The school's three worries map onto the table. A locked box is encryption, and it answers only the first: nobody else read the results. The changed grade and the doubtful sender both call for a digital signature from the school. The parents' software would test that signature with the school's public key, and a certificate would show that the key is the school's.
Each tool does one job. Encrypting a message says nothing about who sent it, and signing a message hides nothing.
A firm of solicitors emails contracts to its clients. One client says the contract she received shows a different price from the one she agreed. In another case a partner says that a contract a client is relying on was never sent by the firm. The firm wants future contracts to settle both kinds of dispute.
Which measure BEST meets that need?
Answer: B. Digitally sign each contract with the firm's private key
Follow a browser as it checks a server's certificate, then change one fact and find the check that fails.
Loading the preview.
5 questions on this unit, easiest first. Confirm an answer to see the reasoning for it, then the right answer, the other options and the rule to reuse. Your answers are kept in this browser and feed readiness and review.
These questions are drafts that no named reviewer has approved yet.
Question 1 of 5
Match each word to its plain meaning.
Choose the match for each entry. Every match has to be right.
The method of encryption is published for anyone to examine, and all the secrecy lies in the key. A door lock works the same way: how the lock works is no secret, and the security is in the shape of the key.
Symmetric encryption uses one shared key in both directions and is fast. Asymmetric encryption uses a pair: a public key anyone may hold and a private key only its owner holds, and it is much slower. A pair of keys carries a freshly made shared key safely across, and the shared key encrypts the conversation.
The same data always gives the same hash. Changing the data at all gives a different hash. The hash cannot be worked backwards into the data. Finding two different pieces of data with the same hash is not practical. A plain hash uses no key.
To hide a message, use the receiver's public key. To sign it, use the sender's own private key. A signature that passes proves who signed, that nothing has changed since signing, and that the signer cannot credibly deny signing, which is non-repudiation.
A certificate states which person or organisation a public key belongs to, carries a start and an end date, and is digitally signed by a certificate authority that checked the owner. Revocation is cancelling a certificate before its end date, for instance when the private key has been stolen.