-
Notifications
You must be signed in to change notification settings - Fork 22.4k
/
index.md
29 lines (23 loc) · 1.27 KB
/
index.md
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
---
title: Key
slug: Glossary/Key
page-type: glossary-definition
---
{{GlossarySidebar}}
A key is a piece of information used by a {{Glossary("cipher")}} for {{Glossary("encryption")}} and/or {{Glossary("decryption")}}.
Encrypted messages should remain secure even if everything about the cryptosystem, except for the key, is public knowledge.
In {{Glossary("symmetric-key cryptography")}}, the same key is used for both encryption and decryption. In {{Glossary("public-key cryptography")}}, there exists a pair of related keys known as the _public key_ and _private key_. The public key is freely available, whereas the private key is kept secret. The public key is able to encrypt messages that only the corresponding private key is able to decrypt, and vice versa.
## See also
- [Kerckhoffs's principle](https://en.wikipedia.org/wiki/Kerckhoffs%27s_principle) on Wikipedia
- Related glossary terms:
- {{Glossary("Block cipher mode of operation")}}
- {{Glossary("Cipher")}}
- {{Glossary("Ciphertext")}}
- {{Glossary("Cipher suite")}}
- {{Glossary("Cryptanalysis")}}
- {{Glossary("Cryptography")}}
- {{Glossary("Decryption")}}
- {{Glossary("Encryption")}}
- {{Glossary("Plaintext")}}
- {{Glossary("Public-key cryptography")}}
- {{Glossary("Symmetric-key cryptography")}}