Encryption is a method which allows information (for example, a secret message) to be hidden so that it cannot be read without special knowledge (such as a password). Once this is done the information is encrypted. Decryption is a way to change an encrypted piece of information back into unencrypted form. This is called the decrypted form. The study of encryption is called cryptography.
Examples[change | change source]
A simple kind of encryption for words is ROT13. In ROT13, letters of the alphabet are changed with each other using a simple pattern. For example, A changes to N, B changes to O, C changes to P, and so on. Each letter is "rotated" by 13 spaces. Using the ROT13 cipher, the words Simple English Wikipedia becomes Fvzcyr Ratyvfu Jvxvcrqvn. The ROT13 cipher is very easy to decrypt. Because there are 26 letters in the English alphabet, if a letter is rotated two times by 13 letters each time, the original letter will be obtained. So applying the ROT13 cipher a second time brings back the original text.
Most kinds of encryption are more complex. Some are made only for text. Others are made for binary computer files like pictures and music. Today, the asymmetric encryption system used the most is RSA[source?]. Any computer file can be encrypted with RSA. AES is a common symmetric algorithm.
One-time pad[change | change source]
Most types of encryption can theoretically be cracked: an enemy might be able to decrypt a message without knowing the password, if he has clever mathematicians, powerful computers and lots of time. The one-time pad is special because, if it is used correctly, it is impossible to crack. There are three rules that must be followed:
- The secret key (password) must be longer than the secret message: if the message has 20 letters then the key must also have at least 20 letters.
- The secret key must be a random list of letters (e.g. KQBWLDA...)
- The secret key must only be used once. To send more than one message, a different key must be used for each one.
If these three rules are obeyed, then it is impossible to reveal the secret message without knowing the secret key. For this reason, during the Cold War, spies often used one-time pads to secretly communicate with their governments. Because of the three rules (above), spies had to carry little books ("pads") filled with random letters or random numbers. Each page from the pad could only be used once: this is why it is called a "one-time pad".
Encryption on the Internet[change | change source]
Encryption is often used on the Internet, as many web sites use it to protect private information. On the Internet, several encryption protocols are used, such as Secure Sockets Layer (SSL), IPsec, and SSH. They use the RSA encryption system and others. The protocol for protected web browsing is called HTTPS. Mostly URL encryption contain MD5 Algorithm. Various alogorithm are available on the internet/market depending upon the need.