All courses › Databases, Networks and Security › Encryption
Encryption
Encryption makes data unreadable to anyone without the key. Symmetric encryption uses the same key to lock and unlock, and is fast. Asymmetric encryption has a key pair: a public key anyone can use, and a private key only the owner has.
symmetric: the same key k
asymmetric: public and private key
Symbols
| plaintext | ||
| ciphertext | ||
| key |
Example
HTTPS uses asymmetric encryption to agree on a shared key, and then fast symmetric encryption for the rest of the conversation.
The private key must never be shared or put in the code.
Practise cyber security for free →
← Password strength · Hashing →