Information about Code (cryptography)
For other uses, see Code (disambiguation).
In cryptography, a code is a method used to transform a message into an obscured form, preventing those who do not possess special information, or key, required to apply the transform from understanding what is actually transmitted. The usual method is to use a codebook with a list of common phrases or words matched with a codeword. Encoded messages are sometimes termed codetext, while the original message is usually referred to as plaintext.
Terms like code and in code are often used to refer to any form of encryption. However, there is an important distinction between codes and ciphers in technical work; it is, essentially, the scope of the transformation involved. Codes operate at the level of meaning; that is, words or phrases are converted into something else. Ciphers work at the level of individual letters, or small groups of letters, or even, in modern ciphers, with individual bits. While a code might transform "change" into "CVGDK" or "cocktail lounge", a cipher transforms elements below the semantic level, ie, below the level of meaning. The "a" in "attack" might be converted to "Q", the first "t" to "f", the second "t" to "3", and so on. Ciphers are more convenient than codes in some situations, there being no need for a codebook, and the possibility of fast automatic operation on computers.
Codes were long believed to be more secure than ciphers, there being (if the compiler of the codebook did a good job) no pattern of transformation which can be discovered. With the advent of automatic processors (ie, in recent times the electronic computer), ciphers have come to dominate cryptography.
One- and two-part codes
Codes are defined by "codebooks" (physical or notional), which are dictionaries of codegroups listed with their corresponding plaintext. Codes originally had the codegroups assigned in 'plaintext order' for convenience of the code designed, or the encoder. For example, in a code using numeric code groups, a plaintext word starting with "a" would have a low-value group, while one starting with "z" would have a high-value group. The same codebook could be used to "encode" a plaintext message into a coded message or "codetext", and "decode" a codetext back into plaintext message.However, such "one-part" codes had a certain predictability that made it easier for others to notice patterns and "crack" or "break" the message, revealing the plaintext, or part of it. In order to make life more difficult for codebreakers, codemakers designed codes with no predictable relationship between the codegroups and the ordering of the matching plaintext. In practice, this meant that two codebooks were now required, one to find codegroups for encoding, the other to look up codegroups to find plaintext for decoding. Students of foreign languages work much the same way; for, say, a Frenchman studying English, there is need of both an English-French and a French-English dictionary. Such "two-part" codes required more effort to develop, and twice as much effort to distribute (and discard safely when replaced), but they were harder to break.
One-time code
A one-time code is a prearranged word, phrase or symbol that is intended to be used only once to convey a simple message, often the signal to execute or abort some plan or confirm that it has succeeded or failed. One time codes are often designed to be included in what would appear to be an innocent conversation. Done properly they are almost impossible to detect, though a trained analyst monitoring the communications of someone who has already aroused suspicion might be able to recognize a comment like "Aunt Bertha has gone into labor" as having an ominous meaning. Famous example of one time codes include:- "One if by land ; two if by sea" in Paul Revere's Ride made famous in the Longfellow poem
- "Climb Mount Niitaka" - the signal to Japanese planes to begin the attack on Pearl Harbor
- During World War II the British Broadcasting Corporation's overseas service included "personal messages" as part of its regular broadcast schedule. Often these messages were one time codes to agents behind enemy lines.
- "Operated on this morning. Diagnosis not yet complete but results seem satisfactory and already exceed expectations. Local press release necessary as interest extends great distance. Dr. Groves pleased. He returns tomorrow. I will keep you posted."
See also one-time pad, an unrelated cypher algorithm
Cryptanalysis of codes
While solving a monoalphabetic substitution cipher is easy, solving even a simple code is difficult. Decrypting a coded message is a little like trying to translate a document written in a foreign language, with the task basically amounting to building up a "dictionary" of the codegroups and the plaintext words they represent.One fingerhold on a simple code is the fact that some words are more common than others, such as "the" or "a" in English. In telegraphic messages, the codegroup for "STOP" (ie, end of sentence or paragraph) is usually very common. This helps define the structure of the message in terms of sentences, if not their meaning, and this is cryptanalytically useful.
Further progress can be made against a code by collecting many codetexts encrypted with the same code and then using information from other sources
- spies,
- newspapers,
- diplomatic cocktail party chat,
- the location from where a message was sent,
- where it was being sent to (i.e., traffic analysis)
- the time the message was sent,
- events occurring before and after the message was sent
- the normal habits of the people sending the coded messages
- etc.
Of course, cribs can be an immediate giveaway to the definitions of codegroups. As codegroups are determined, they can gradually build up a critical mass, with more and more codegroups revealed from context and educated guesswork. One-part codes are more vulnerable to such educated guesswork than two-part codes, since if the codenumber "26839" of a one-part code is determined to stand for "bulldozer", then the lower codenumber "17598" will likely stand for a plaintext word that starts with "a" or "b". At least, for simple one part codes.
Various tricks can be used to "plant" or "sow" information into a coded message, for example by executing a raid at a particular time and location against an enemy, and then examining code messages sent after the raid. Coding errors are a particularly useful fingerhold into a code; people reliably make errors, sometimes disastrous ones. Of course, planting data and exploiting errors works against ciphers as well.
- The most obvious and, in principle at least, simplest way of cracking a code is to steal the codebook through bribery, burglary, or raiding parties — procedures sometimes glorified by the phrase "practical cryptography" — and this is a weakness for both codes and ciphers, though codebooks are generally larger and used longer than cipher keys. While a good code may be harder to break than a cipher, the need to write and distribute codebooks is seriously troublesome.
Once codes have been created, codebook distribution is logistically clumsy, and increases chances the code will be compromised. There is a saying that "Three people can keep a secret if two of them are dead," and though it may be something of an exaggeration, a secret becomes harder to keep if it is shared among several people. Codes can be thought reasonably secure if they are only used by a few careful people, but if whole armies use the same codebook, security becomes much more difficult.
In contrast, the security of ciphers is generally dependent on protecting the cipher keys. Cipher keys can be stolen and people can betray them, but they are much easier to change and distribute.
Superencipherment
In more recent practice, it became typical to encipher a message after first encoding it, so as to provide greater security by increasing the degree of difficulty for cryptanalysts. With a numerical code, this was commonly done with an "additive" - simply a long key number which was digit-by-digit added to the code groups, modulo 10. Unlike the codebooks, additives would be changed frequently. The famous Japanese Navy code, JN-25, was of this design, as were several of the (confusingly named) Royal Navy Cyphers used after WWI and into WWII.One might wonder why a code would be used if it had to be enciphered to provide security. As well as providing security, a well designed code can also compress the message, and provide some degree of automatic error correction. For ciphers, the same degree of error correction has generally required use of computers.
References
- Kahn, David (1996). The Codebreakers : The Comprehensive History of Secret Communication from Ancient Times to the Internet. Scribner.
- Pickover, Cliff (2000). Cryptorunes: Codes and Secret Writing. Pomegranate Communications. ISBN 978-0-7649-1251-1.
See also
- code, its non-cryptographic meaning
- Trench code
- JN-25
- Zimmermann telegram
- Code talkers
- idiot code
A code is a rule for converting a piece of information into another object or action, not necessarily of the same sort.
Code may also refer to:
..... Click the link for more information.
Code may also refer to:
- Code (cryptography), a device for hiding the meaning of a message
..... Click the link for more information.
Cryptography (or cryptology; derived from Greek κρυπτός kryptós "hidden," and the verb γράφω gráfo "write" or λεγειν legein
..... Click the link for more information.
..... Click the link for more information.
Message in its most general meaning is an object of communication. It is something which provides information; it can also be this information itself. Therefore, its meaning is dependent upon the context in which it is used; the term may apply to both the information and its form.
..... Click the link for more information.
..... Click the link for more information.
codebook is a document used for implementing a code. A codebook contains a lookup table for coding and decoding; each word or phrase has one or more strings which replace it. To decipher messages written in code, corresponding copies of the codebook must be available at either end.
..... Click the link for more information.
..... Click the link for more information.
plaintext is information used as input to an encryption algorithm; the output is termed ciphertext. The plaintext could be, for example, a diplomatic message, a bank transaction, an e-mail, a diary and so forth — any information that someone might want to prevent
..... Click the link for more information.
..... Click the link for more information.
encryption is the process of transforming information (referred to as plaintext) to make it unreadable to anyone except those possessing special knowledge, usually referred to as a key.
..... Click the link for more information.
..... Click the link for more information.
computer is a machine which manipulates data according to a list of instructions.
Computers take numerous physical forms. The first devices that resemble modern computers date to the mid-20th century (around 1940 - 1941), although the computer concept and various machines
..... Click the link for more information.
Computers take numerous physical forms. The first devices that resemble modern computers date to the mid-20th century (around 1940 - 1941), although the computer concept and various machines
..... Click the link for more information.
Cryptanalysis (from the Greek kryptós, "hidden", and analıein, "to loosen" or "to untie") is the study of methods for obtaining the meaning of encrypted information, without access to the secret information which is normally required to do so.
..... Click the link for more information.
..... Click the link for more information.
Paul Revere's Ride" is an American poem by Henry Wadsworth Longfellow that commemorates the actions of American patriot Paul Revere on April 18, 1775. [1] The poem was written on April 19, 1860 and first published in The Atlantic Monthly in January of 1861.
..... Click the link for more information.
..... Click the link for more information.
Longfellow may refer to:
..... Click the link for more information.
- Longfellow, Minneapolis, United States
- Longfellow, Oakland, California, United States
- Longfellow (horse), one of America's first great thoroughbred racehorses
- Longfellow (neighborhood), Minneapolis, United States
..... Click the link for more information.
attack on Pearl Harbor was a pre-emptive military strike on the United States Pacific Fleet base at Pearl Harbor, Hawaii by the Empire of Japan's Imperial Japanese Navy, on the morning of Sunday, 7 December, 1941.
..... Click the link for more information.
..... Click the link for more information.
Allied powers:
Soviet Union
United States
United Kingdom
China
France
...et al. Axis powers:
Germany
Japan
Italy
...et al.
..... Click the link for more information.
Soviet Union
United States
United Kingdom
China
France
...et al. Axis powers:
Germany
Japan
Italy
...et al.
..... Click the link for more information.
The British Broadcasting Corporation (BBC)
Type Broadcast radio and television
Country United Kingdom
Availability National
International
Founder John Reith
..... Click the link for more information.
Type Broadcast radio and television
Country United Kingdom
Availability National
International
Founder John Reith
..... Click the link for more information.
Harry S. Truman (May 8 1884 – December 26 1972) was the thirty-third President of the United States (1945–1953); as vice president, he succeeded to the office upon the death of Franklin D. Roosevelt. During World War I he served as an artillery officer.
..... Click the link for more information.
..... Click the link for more information.
Potsdam
Sanssouci, former summer palace of Frederick the Great
Coat of arms Location
..... Click the link for more information.
Sanssouci, former summer palace of Frederick the Great
Coat of arms Location
..... Click the link for more information.
Josef Vissarionovich Dzhugashvili (Georgian: იოსებ ბესარიონის ძე ჯუღაშვილი,
..... Click the link for more information.
..... Click the link for more information.
Trinity was the first test of a nuclear weapon. It was conducted by the United States on July 16, 1945, at a location 35 miles (56 km) southeast of Socorro, New Mexico, on what is now White Sands Missile Range, headquartered near Alamogordo.
..... Click the link for more information.
..... Click the link for more information.
This page is protected from moves until disputes have been resolved on the .
The reason for its protection is listed on the protection policy page. The page may still be edited but cannot be moved until unprotected.
..... Click the link for more information.
The reason for its protection is listed on the protection policy page. The page may still be edited but cannot be moved until unprotected.
..... Click the link for more information.
Lieutenant General Leslie Richard Groves (August 17, 1896 – July 13, 1970) was a United States Army officer who oversaw the construction of the Pentagon and was the primary military leader in charge of the Manhattan Project to develop the atomic bomb during World War II.
..... Click the link for more information.
..... Click the link for more information.
In cryptography, the one-time pad (OTP) is an encryption algorithm where the plaintext is combined with a random key or "pad" that is as long as the plaintext and used only once. A modular addition is used to combine the plaintext with the pad.
..... Click the link for more information.
..... Click the link for more information.
In cryptography, a substitution cipher is a method of encryption by which units of plaintext are substituted with ciphertext according to a regular system; the "units" may be single letters (the most common), pairs of letters, triplets of letters, mixtures of the above, and so
..... Click the link for more information.
..... Click the link for more information.
Traffic analysis is the process of intercepting and examining messages in order to deduce information from patterns in communication. It can be performed even when the messages are encrypted and cannot be decrypted.
..... Click the link for more information.
..... Click the link for more information.
For other uses, see Crib.
In cryptanalysis, a crib is a sample of known plaintext, or suspected plaintext; the term originated at Bletchley Park, the British codebreaking operation during World War II (WWII).
..... Click the link for more information.
key is a piece of information (a parameter) that controls the operation of a cryptographic algorithm. In encryption, a key specifies the particular transformation of plaintext into ciphertext, or vice versa during decryption.
..... Click the link for more information.
..... Click the link for more information.
data compression or source coding is the process of encoding information using fewer bits (or other information-bearing units) than an un-encoded representation would use through use of specific encoding schemes.
..... Click the link for more information.
..... Click the link for more information.
In telecommunication, forward error correction (FEC) is a system of error control for data transmission, whereby the sender adds redundant data to its messages, which allows the receiver to detect and correct errors (within some bound) without the need to ask the sender for
..... Click the link for more information.
..... Click the link for more information.
David Kahn (born February 7, 1930[1]) is a US historian, journalist and writer. He has written extensively on the history of cryptography and military intelligence.
..... Click the link for more information.
..... Click the link for more information.
Clifford A. Pickover is an author, editor, and columnist in the fields of science, mathematics, and science fiction.
..... Click the link for more information.
Education
He received his Ph.D. from Yale University's Department of Molecular Biophysics and Biochemistry...... Click the link for more information.
In communications, a code is a rule for converting a piece of information (for example, a letter, word, or phrase) into another form or representation, not necessarily of the same type.
..... Click the link for more information.
..... Click the link for more information.
In cryptography, trench codes were codes used for secrecy by field armies in World War I. A reasonably-designed code is generally more difficult to crack than a classical cipher, but of course suffers from the difficulty of preparing, distributing, and protecting codebooks.
..... Click the link for more information.
..... Click the link for more information.
This article is copied from an article on Wikipedia.org - the free encyclopedia created and edited by online user community. The text was not checked or edited by anyone on our staff. Although the vast majority of the wikipedia encyclopedia articles provide accurate and timely information please do not assume the accuracy of any particular article. This article is distributed under the terms of GNU Free Documentation License.
Herod_Archelaus