Nepedia
Back to Discover
Independent Reader
💻

Key (cryptography)

technology Maturity 11-13 Next article →

A key is a piece of information. It is usually a string of letters or numbers. A key helps hide data. It also helps read it. This is called cryptography.

There are two main ways to use keys. In symmetric cryptography, one key does both jobs. It locks the data and unlocks it. In asymmetric cryptography, you use two different keys. One is a public key. The other is a private key. The private key must stay secret.

How big is a key? We measure this in bits. A larger key is stronger. A big key takes a long time to break. A small key is easy to guess. In the past, keys were 40 bits. Now, people use much larger keys. One common size is 2048 bits.

Keys must be random. If a key is not random, people can guess it. You can use a Random Bit Generator to make them. This is a system that makes unpredictable bits. You can even use dice to help make random keys.

People must also share keys safely. They use a key exchange to send them. This keeps outsiders from stealing the code.

191 words

Where will your curiosity go next?

Keep exploring at your chosen reading level.

More to explore

What is Nepedia?

A free, ad-free encyclopedia for children. Every article is written at five reading levels, so the same page works for a five-year-old and a fifteen-year-old — use the level switcher above to see this one change. No account needed to read.