We can hide our words.
People use secret ways to write.
To read the note, you need a secret key. This key is like a special rule. The rule helps you change the nonsense back.
One person sends the message. They share the key only with a friend. This way, no one else can read it.
Long ago, leaders used these tricks. They used them for spies and wars.
Today, we use these secrets for computers. They help keep our passwords safe. It is a clever way to talk.
Cryptography is the study of secret writing.
There are two main steps. The first step is encryption. This turns real words, called plaintext, into nonsense. We call this nonsense ciphertext. The second step is decryption. This is the reverse way. It turns the nonsense back into real words.
To do this, you need a key. A key is a secret rule. Without the key, the message is hard to read. Some systems use one key for both steps. This is called symmetric encryption. Other systems use two different keys. One key is public. The other key is private. This is called asymmetric encryption.
People have used these tricks for a long time. Julius Caesar used a simple shift. He moved letters three places down the alphabet. Ancient Greeks used a tool called a scytale. Today, we use math to keep computers safe. It protects our passwords and money.
Cryptography is the study of secret writing.
How does this secret writing work? First, a sender uses encryption to change a message. This turns readable words, called plaintext, into nonsense text. We call this nonsense ciphertext. To read it, the receiver must use decryption. This is the process of turning the nonsense back into real words.
People have used these tricks for thousands of years. Julius Caesar used a simple shift cipher over 2,000 years ago. He moved letters three places down the alphabet to hide his notes. The ancient Greeks also used a tool called a scytale. In Egypt, people carved secret messages into stone. In India, the Kama Sutra describes different kinds of ciphers. Even the Arabs helped by writing about how to study these codes. 
There are two main ways to use keys today. In symmetric systems, one secret key does everything. It both encrypts and decrypts the message. This way is very fast for computers to use. Asymmetric systems are a bit different. They use a public key to lock the message. Then, a private key is used to unlock it. 
Modern cryptography is built on very hard math. 
Cryptography is the scientific study of techniques for secure communication.
The core mechanism of cryptography involves a process called encryption. This converts readable information, known as plaintext, into unintelligible nonsense called ciphertext. To read the message, the recipient must perform decryption. This is the reverse process that turns ciphertext back into plaintext. A cipher is the pair of algorithms that carries out these two steps. The operation of a cipher is controlled by an algorithm and a key. A key is a secret string of characters used to unlock the message. Without the correct key, the ciphertext remains unreadable to an adversary. In formal terms, a cryptosystem includes the plaintexts, ciphertexts, keys, and the algorithms used.
Cryptosystems are generally divided into two main types: symmetric and asymmetric. In a symmetric system, the same secret key is used for both encryption and decryption. This method is significantly faster for data manipulation than other methods. A common example of a secure symmetric algorithm is the Advanced Encryption Standard, or AES.
History shows that cryptography has evolved from simple shifts to complex machines. Ancient civilizations used various methods to hide information. The Caesar cipher is a famous early substitution cipher. In this method, each letter is replaced by one a certain number of positions down the alphabet. Julius Caesar reportedly used a shift of three to communicate with his generals. The Greeks used a device called a scytale for transposition ciphers. A transposition cipher rearranges the order of letters rather than replacing them. 

Many different cultures contributed to the development of these secrets. The earliest known use of cryptography appears as carved ciphertext on stone in Egypt. In India, the 2000-year-old Kama Sutra describes two types of ciphers called Kautiliyam and Mulavediya. Kautiliyam uses substitutions based on phonetic relations, like vowels becoming consonants. Mulavediya uses a cipher alphabet of paired letters. Modern cryptology found significant roots among the Arabs. Al-Khalil wrote the Book of Cryptographic Messages between 717 and 786. He was among the first to systematically document cryptanalytic methods. 
The importance of cryptography is seen in its modern security standards. Most modern algorithms are designed around computational hardness assumptions. This means they are built to be too difficult for any adversary to break in practice. Such systems are described as being computationally secure. While it is theoretically possible to break them, it is infeasible with current technology. However, designers must constantly adapt to new challenges. Faster computing and better mathematical algorithms, like improvements in integer factorization, require constant updates. There are also information-theoretically secure schemes, such as the one-time pad. These cannot be broken even with unlimited computing power, but they are very difficult to use in practice.
Cryptography also connects to many legal and social issues in the Information Age. Because it can be used for espionage, some governments classify it as a weapon. This has led to limits or prohibitions on its use and export in some places. In certain jurisdictions, investigators can legally compel people to disclose encryption keys. Cryptography also plays a major role in digital rights management. This involves disputes regarding copyright infringement for digital media. As technology grows, the balance between privacy and law continues to be a central debate in our digital world.
🖼️ Images & Media (13)
+ 1 more
More to explore
✨ What else?
Related topics you might enjoy
🔬 Go deeper
More advanced topics to explore
🪜 Step back
Simpler topics to build understanding
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.