24 total
By the end of this topic, you should be able to:
Encryption is a method of scrambling data before it is sent across a network.
Think of it like writing a message in a secret code. If someone intercepts the message, they can't read it because it looks like nonsense to them.
Why is encryption important?
When data travels across networks (like the internet), it can be intercepted by hackers. Encryption protects the data by making it meaningless to anyone who doesn't have the right "key" to unlock it.
Where is encryption especially important?
Encryption is important for both wired networks (cables) and wireless networks (Wi-Fi), but it's particularly critical for wireless networks because:
Before we look at the different types of encryption, let's understand some key terms:
Plaintext - This is the original data before it's encrypted. It's readable and makes sense. For example, the message "Hello" is plaintext.
Ciphertext - This is the scrambled data after encryption. It looks like random nonsense. For example, "X7$pQ2" might be the ciphertext version of "Hello."
Key - This is a special binary code (a string of 0s and 1s) that's used to encrypt and decrypt data. Think of it like a password, but much more complex. Keys can be different sizes - the longer the key, the more secure it is.
How keys work:
Wireless networks follow a specific process to keep data secure:
Step 1: Creating the Master Key
Step 2: Sharing the Master Key
Step 3: Encrypting Data
Step 4: Decrypting Data
Important security feature: The master key itself is NEVER sent over the wireless network. This means if a hacker intercepts your data, they only get ciphertext, which is useless without the master key.
Wireless networks typically use special protocols like WPA2 (Wi-Fi Protected Access 2), which is specifically designed for Wi-Fi security.
Wired networks (using cables) encrypt data in a very similar way to wireless networks:
The main difference:
Symmetric encryption means using the same key to both encrypt and decrypt data.
How it works:
The security problem: If a hacker somehow gets hold of the secret key, they can decrypt any intercepted messages. This is the main weakness of symmetric encryption.
How can the key be shared safely?
Since sending the key over the internet is risky, there are other ways to share it:
Advantages of symmetric encryption:
Disadvantages of symmetric encryption:
Asymmetric encryption uses TWO different keys: a public key and a private key.
The two keys:
How it works:
Why is this secure?
How secure are these keys?
Keys can be extremely long. For example:
Advantages of asymmetric encryption:
Disadvantages of asymmetric encryption:
| Feature | Symmetric Encryption | Asymmetric Encryption |
|---|---|---|
| Number of keys | One key (same for encryption and decryption) | Two keys (public key for encryption, private key for decryption) |
| Key sharing | The secret key must be shared securely | Only the public key is shared (the private key stays secret) |
| Speed | Fast | Slower |
| Security | Less secure - if the key is stolen, all data can be decrypted | More secure - the private key is never transmitted |
| Use case | Good for encrypting large amounts of data quickly | Good for secure communication when you haven't met in person |
Sign in to view full notes