Pictures from Google Image Search

Codes and Ciphers

World of Forensic Science | 2005 | Copyright 2005 Gale, Cengage Learning. All rights reserved.. (Hide copyright information) Copyright

Codes and Ciphers

Forensic analyses can be concerned with unraveling the true meaning of communications. This is particularly relevant in forensic accounting , where the trail of funds from person to person or within an organization is established. In the computer age, forensic accounting can involve the search of computer hard drives that have been seized as part of an investigation. An examiner may encounter information that has been converted into an unreadable format, at least until an algorithm is applied that unscrambles the information to a readable form.

From the beginnings of communication, there has been a need for secrecy. Codes and ciphers are a means of producing secret communications. Codes and ciphers are forms of cryptography, a term from the Greek kryptos, hidden, and graphia, writing. Both transform legible messages into series of symbols that are intelligible only to specific recipients. Codes do so by substituting arbitrary symbols for meanings listed in a codebook; ciphers do so by performing rule-directed operations directly on original message text. Because codes can only communicate concepts that are listed in their codebooks, they have limited flexibility and are not much used today. Rather, modern cryptography relies almost entirely on ciphers implemented by digital computers.

A code is a set of symbolic strings ("code groups") that are listed, along with their assigned meanings, in a code book.

Either a word or a number can be used as a code group. Code groups that are words are termed code words and those that are numbers are termed code numbers. Note that a single code group can encode a single word ("king") or an entire phrase ("deliver the films to agent number 3"). A coded message may, therefore, be shorter than the original message. It can also be made as long as or longer than the original message, if the codebook provides lengthy code phrases for single concepts or nonsense code groups for padding purposes. Such techniques can be used to make encoded messages harder for opponents to read.

A cipher uses a system of fixed rules (an "algorithm") to transform a legible message ("plaintext") into an apparently random string of characters ("ciphertext"). For example, a cipher might be defined by the following rule: "For every letter of plaintext, substitute a two-digit number specifying the plaintext letter's position in the alphabet plus a constant between 1 and 73 that shall be agreed upon in advance."

Incorporation of a variable term into a fixed algorithm is typical of real-world ciphers. The variable component is termed a key. A real key would be longer and would have a more complex relationship to the cipher algorithm than the key in this example, but its basic role would be the same: a key fits into an algorithm so as to enable enciphering and deciphering, just as a physical key fits into a lock to enable locking and unlocking. Without a key, a cipher algorithm is missing an essential part. In fact, so important is the concept of the key that in real-world ciphering it is not algorithms that are kept secret, but keys. Cipher designers assume that their algorithms will always become known to their opponents, but design the relationship between key and algorithm so that even knowing the algorithm it is almost impossible to decipher a ciphertext without knowing the appropriate key. Before a cipher can work, therefore, a key or set of keys must be in the possession of both the sender and the receiver.

If the key were always the same, it would simply constitute a permanent part of the algorithm, and keying would have no special advantage over trying to keep one's algorithm secret to begin with. Keys must, therefore, be changed occasionally. A new key may be employed every day, for every message, or on some other schedule.

Codes have the advantage of simplicity. No calculations are required to encode or decode messages, only lookups in a codebook. Further, because a code uses no fixed system for associating code groups with their meanings (even the amount of meaning assigned to a code word can vary, as seen above), a code may fail gracefullythat is, the meaning of a few code groups may be discerned while others are not. In contrast, a cipher produces ciphertext from plaintext (and vice versa) according to a fixed algorithm. Thus, if an enemy determines the algorithm and steals or guesses a key, they can at once interpret all messages sent using that key. Changing the key may restore cipher security, unless the enemy has developed a system for guessing keys. One such system, always possible in theory, is to try all possible keys until one is found that works.

Codes, however, have two great disadvantages. Users can only send messages that can be expressed using the terms defined in the codebook, whereas ciphers can transmit all possible messages. Additionally, all codes are vulnerable to code book capture. If a codebook is captured, there is no recourse but to distribute new codebooks to all users. In contrast, the keyalgorithm concept makes cipher secrecy dependent on small units of information (keys) that can be easily altered.

Secure ciphers, however, entail complex calculations. This made the use of complex ciphers impractical before the invention of ciphering machines in the early twentieth century; codes and simple ciphers were the only feasible methods of ciphering. Yet, a cipher that is simple to implement is proportionately simple to crack, and a cracked cipher can be disastrous.

Codes can be generally divided into one-part and two-part codes. In a one-part code, the same code-book is used for encipherment and decipherment. The problem with this system is that some systematic ordering of the code groups and their assigned meanings must be made, or it will be difficult to locate code groups when enciphering or their meanings when deciphering. (A randomly ordered list of words or numbers thousands of terms long is difficult to search except by computer.) Thus, code groups tend to be arranged in alphabetic or numerical order in a one-part code, an undesirable property, since an opponent seeking to crack the code can exploit the fact that code groups that are numerically or alphabetically close probably encode words or phrases that are alphabetically close. To avoid this weakness, a two-part code employs one codebook for encipherment and another for decipherment. In the encipherment codebook, alphabetically ordered meanings (e.g., A, ABDICATE, ABLE) are assigned randomly ordered code groups (e.g., 6897, 1304, 0045). In the decipherment code book, the code groups are arranged in order (e.g., 0045, 1304, 6897), for easy location.

Code security can be improved by combining ciphering with coding. In this technique, messages are first encoded and then enciphered; at the receiving end, they are first deciphered and then decoded. A standard method for combining coding and ciphering is the "code plus additive" technique, which employs numbers as code groups and adds a pseudorandom number to each code group to produce a disguised code group. The pseudorandom numbers used for this purpose are generated by modulo-arithmetic techniques closely related to those used in stream ciphering.

Ciphers that encrypt whole blocks of characters at oncesush as 10 letters at a time, or 128 bitsare termed block ciphers. Block ciphers have the advantage that each character in each ciphertext block can be made to depend complexly on all characters of the corresponding message block, thus scrambling or smearing out the message content over many characters of ciphertext. The widely used Digital Encryption Standard (DES) is a block cipher that employs a 56-bit key to encrypt 56-bit blocks. In DES, the key and each message block are used as inputs to a complex algorithm that produces a 56-bit block of ciphertext. The same key is used to decode the block of ciphertext at the receiving end.

Stream ciphers operate upon series of binary digits ("bits," usually symbolized as 1s and 0s), enciphering them one by one rather than in blocks of fixed length. In stream encipherment, a series of bits termed the key-stream is made available by some means to both the sender and receiver. This stream is as long as the message to be sent. At the sending end, the key-stream is combined with the message-stream in a bit-by-bit fashion using the EXCLUSIVE OR operation of Boolean algebra, producing the ciphertext. At the receiving end, the same key-stream is combined again with the ciphertext to recover the message stream. This system of ciphering is unbreakable in both theory and practice if the key-stream remains secret. Ongoing breakthroughs in quantum cryptography may soon make perfectly secret key-streams available by exploiting certain properties of photons. If these techniques can be made technologically practical, truly unbreakable cipher systems will have become available for the first time in history.

All ciphers require the use of a secret key. Publickey ciphers (those ciphers that are sent with a key that is not secret) first developed in the late 1970s, are no exception. However, public-key ciphers have the important advantage that the key possessed by the sender need not be the same secret key possessed by the receiver; thus, no secure transfer of keys between the sender and receiver is ever necessary. Software for a powerful public-key cipher algorithm known as Pretty Good Privacy (PGP) is downloadable for free from many sites on the Internet.

Codes and ciphers can be attacked by two basic means. The first is theft of codebooks or keysespionage. The second is cryptanalysis, which is any attempt to crack a code or cipher without direct access to keys or codebooks. Cryptanalysis may proceed either by trial and error or by systematic analysis of plaintext and ciphertext. The analytic approach may involve both looking for patterns in ciphertext and solving mathematical equations representing the encryption algorithm.

Cryptanalysis by trial and error usually means guessing cipher keys. A cipher key can be guessed by trying all possible keys using a computer. However, designers of encryption systems are aware of this threat, and are constantly employing larger and larger keys to keep ahead of growing computer speed. Systematic cryptanalysis may seek patterns in ciphertext, either by itself or in conjunction with a known plaintext (the so-called "known-plaintext attack").

see also Computer forensics; Computer hardware security; Computer software security; Cryptology and number theory; Decryption.

Cite this article
Pick a style below, and copy the text for your bibliography.

  • MLA
  • Chicago
  • APA

"Codes and Ciphers." World of Forensic Science. Thomson Gale. 2005. Encyclopedia.com. 6 Dec. 2009 <http://www.encyclopedia.com>.

"Codes and Ciphers." World of Forensic Science. Thomson Gale. 2005. Encyclopedia.com. (December 6, 2009). http://www.encyclopedia.com/doc/1G2-3448300132.html

"Codes and Ciphers." World of Forensic Science. Thomson Gale. 2005. Retrieved December 06, 2009 from Encyclopedia.com: http://www.encyclopedia.com/doc/1G2-3448300132.html

Learn more about citation styles

Related newspaper, magazine, and trade journal articles from HighBeam Research

(Including press releases, facts, information, and biographies)

Studying Meat Reducers Can Help Businesses Understand What Compels People to Intentionally Reduce Meat Consumption Despite Their Current Consumption Habits.
M2 Presswire; 7/17/2008; 700+ words ; ...Additionally, those who have reduced meat consumption over the last year are...this behavior over the next year. - Meat reducers include a variety of meats in their diet, with the most frequently consumed meat being chicken, which is followed...
PHILIPPINE MEAT IMPORTERS ASK DA TO EXPAND CARABEEF IMPORTS.
News Wire article from: AsiaPulse News; 1/23/2004; 700+ words ; MANILA, Jan 23 Asia Pulse - Meat traders and importers urged the Department of Agriculture...imports of cheap Indian carabeef to include table-grade meat. "In the wake of the shortage of meat resulting in inflated prices of products such as pork...
Meat study deal signed
Newspaper article from: The Press; 7/30/2004; ; 485 words ; New Zealand and Australia's red meat industries have signed a $1.3 million-a-year deal to research and develop meat quality. New electronic and measurement...both countries will be combined to improve meat tenderness, colour and chemistry. An...
MEAT 'IMPROVED' WITH CO HAS CONSUMERS SEEING RED.(EDITORIAL)(GUEST COLUMN)(Column)
Newspaper article from: The Capital Times (Madison, WI); 8/16/2007; 700+ words ; ...Congress, recently pulled carbon monoxide-treated meat from its shelves. Carbon monoxide in meat? Unbelievably, in 2004, the U.S. Food and...Agriculture gave their blessing to a number of large meat packers (including Tyson, Hormel and Cargill...
Meat processors serving up tips to consumers on cuts
Newspaper article from: Charleston Gazette; 4/14/2006; ; 700+ words ; ...Cargill Inc. - the second-biggest U.S. meat processor behind Tyson Foods Inc. - is...out what to do with a particular piece of meat, online promotions and advice, and cuts...eight of 10 shoppers were baffled by the meat case at their stores. There's always...
Meat loaf is low-fat comfort food
Newspaper article from: Post-Tribune (IN); 3/19/2003; ; 643 words ; ...FROM PRINTED VERSION Sun-Dried Tomato Meat Loaf with Red Currant Wine Sauce is comfort...slimmed-down recipe for sun-dried tomato meat loaf, stylishly bathed with red currant...If you decide to freeze one of these meat loaves, make half the amount of red currant...
Meat processing by-products management trends
Magazine article from: BioCycle; 1/1/2001; ; 700+ words ; ...curl in the tail." In fact, meat processing generates almost as many by-products as it does meat cuts. For example, when a...from edible muscle and organ meats to hair, bones and paunch manure...products. Historically, some meat processing byproducts such as...
Meat shop to open in May
Newspaper article from: The Pantagraph Bloomington, IL; 4/13/2005; ; 521 words ; ...inspection allows Echo Valley Meats to be sold throughout...The company supplies meat to Swiss Colony, Albertsons...split into Alwan & Sons Meat Co. and Echo Valley Meats in 1998. Alwan & Sons is a state-inspected meat shop run by Alwan's...
'Meat Guy' beefs up business with personal service
Newspaper article from: Doings, The (Hinsdale, IL); 1/23/2009; ; 640 words ; ...and started his own, Internet-based meat home-delivery business, The Meat Guy. A lack of prime and choice meats in many retail outlets led him to sell...have closed has made finding quality meat difficult. "People still refuse to...
Meat pies fall short of food standards; Pieman no Simple Simon
Newspaper article from: The Press; 6/24/2006; ; 700+ words ; ...top brands of steak pie contain so little meat they fail national food standards to qualify as a meat pie. Only one in five pies randomly tested for the Weekend Press met the criteria for "meat pie", which must contain at least 25 per...

Related entries from encyclopedias, dictionaries, and thesauruses

Nippon Meat Packers, Inc.
Book article from: International Directory of Company Histories ...In the later 1970s, Nippon Meat Packers began taking global...company founded Day-Lee Meats, in Los Angeles. Since then, Nippon Meat Packers has set up affilites...Chicken. Introducing new meats and meat products to the Japanese diet...
SIC 5147 Meats and Meat Products
Encyclopedia entry from: Encyclopedia of American Industries ...the wholesale distribution of meats and meat products in 2001. The total...40 percent of the market. Meats and meat products represented 2,375...their cases contained processed meats, as well. The "fresh meat case may be moving toward providing...
Meat Loaf
Book article from: Contemporary Musicians Meat Loaf Singer Went Mobile with Bat Bat II a...say they dubbed Marvin Lee Aday “ Meat Loaf ” after he stepped on the foot...Others say the big guy had already won the Meat Loaf moniker by the time he was in seventh...
Meat
Encyclopedia entry from: Encyclopedia of Food and Culture MEAT MEAT. For most human beings, meat is a highly desired food, but it is more of a treat than a staple. Meat, whether obtained from hunted or domesticated animals, is more expensive than staple carbohydrate-rich foods because of the investment...
Meat, Salted
Encyclopedia entry from: Encyclopedia of Food and Culture ...Salt has been used by the meat industry as a dry application...uncured), and restructured meats. Salt added to a meat system serves three main...sausage, and noncomminuted meats, for example, ham...ingredients, after the meat itself. Other ingredients...

Find thousands of answers for hundreds of subjects at Smart QandA .

All answers verified by trusted sources at Encyclopedia.com

Try Smart QandA now!

For students and teachers!

Encyclopedia.com provides students and teachers facts, information, and biographies from verified, citable sources, including:

Encyclopedia.com provides students and teachers facts, information, and biographies from verified, citable sources, including: