<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:georss='http://www.georss.org/georss' xmlns:gd='http://schemas.google.com/g/2005' xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-5050165515632655759</id><updated>2011-11-27T16:19:23.881-08:00</updated><title type='text'>Cryptography</title><subtitle type='html'></subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://cryphy.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5050165515632655759/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://cryphy.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Andry Septia Nurrahman</name><uri>http://www.blogger.com/profile/11738634130176322155</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://4.bp.blogspot.com/_gmV1PiPRWCE/Sckx-3j5xjI/AAAAAAAAABA/oVWoojba14w/S220/Andry+Septia+Nurrahman.jpg'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>8</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-5050165515632655759.post-3087024554195018842</id><published>2009-05-17T09:07:00.002-07:00</published><updated>2009-05-17T09:08:11.153-07:00</updated><title type='text'>Cryptography</title><content type='html'>&lt;h3 id="siteSub"&gt;From Wikipedia, the free encyclopedia&lt;/h3&gt;                 &lt;!-- start content --&gt;    &lt;div class="thumb tright"&gt; &lt;div class="thumbinner" style="width: 302px;"&gt;&lt;a href="http://en.wikipedia.org/wiki/File:Lorenz-SZ42-2.jpg" class="image" title="The German Lorenz cipher machine, used in World War II for encryption of very high-level general staff messages"&gt;&lt;img alt="" src="http://upload.wikimedia.org/wikipedia/commons/thumb/4/4d/Lorenz-SZ42-2.jpg/300px-Lorenz-SZ42-2.jpg" class="thumbimage" width="300" border="0" height="223" /&gt;&lt;/a&gt; &lt;div class="thumbcaption"&gt; &lt;div class="magnify"&gt;&lt;a href="http://en.wikipedia.org/wiki/File:Lorenz-SZ42-2.jpg" class="internal" title="Enlarge"&gt;&lt;br /&gt;&lt;/a&gt;&lt;/div&gt; The &lt;a href="http://en.wikipedia.org/wiki/Germany" title="Germany"&gt;German&lt;/a&gt; &lt;a href="http://en.wikipedia.org/wiki/Lorenz_cipher" title="Lorenz cipher"&gt;Lorenz cipher&lt;/a&gt; machine, used in &lt;a href="http://en.wikipedia.org/wiki/World_War_II" title="World War II"&gt;World War II&lt;/a&gt; for encryption of very high-level general staff messages&lt;/div&gt; &lt;/div&gt; &lt;/div&gt;&lt;br /&gt;&lt;p&gt;&lt;b&gt;Cryptography&lt;/b&gt; (or &lt;b&gt;cryptology&lt;/b&gt;; from &lt;a href="http://en.wikipedia.org/wiki/Ancient_Greek" title="Ancient Greek"&gt;Greek&lt;/a&gt; &lt;span lang="grc" lang="grc"&gt;κρυπτός&lt;/span&gt;, &lt;i&gt;kryptos&lt;/i&gt;, "hidden, secret"; and &lt;span lang="grc" lang="grc"&gt;γράφω&lt;/span&gt;, &lt;i&gt;gráphō&lt;/i&gt;, "I write", or &lt;span lang="grc" lang="grc"&gt;-λογία&lt;/span&gt;, &lt;i&gt;&lt;a href="http://en.wikipedia.org/wiki/-logy" title="-logy"&gt;-logia&lt;/a&gt;&lt;/i&gt;, respectively)&lt;sup id="cite_ref-0" class="reference"&gt;&lt;a href="http://en.wikipedia.org/wiki/Cryptography#cite_note-0" title=""&gt;&lt;span&gt;&lt;/span&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/sup&gt; is the practice and study of hiding &lt;a href="http://en.wikipedia.org/wiki/Information" title="Information"&gt;information&lt;/a&gt;. In modern times cryptography is considered a branch of both &lt;a href="http://en.wikipedia.org/wiki/Mathematics" title="Mathematics"&gt;mathematics&lt;/a&gt; and &lt;a href="http://en.wikipedia.org/wiki/Computer_science" title="Computer science"&gt;computer science&lt;/a&gt; and is affiliated closely with &lt;a href="http://en.wikipedia.org/wiki/Information_theory" title="Information theory"&gt;information theory&lt;/a&gt;, &lt;a href="http://en.wikipedia.org/wiki/Computer_security" title="Computer security"&gt;computer security&lt;/a&gt; and &lt;a href="http://en.wikipedia.org/wiki/Engineering" title="Engineering"&gt;engineering&lt;/a&gt;. Cryptography is used in applications present in technologically advanced societies; examples include the security of &lt;a href="http://en.wikipedia.org/wiki/Automated_teller_machine" title="Automated teller machine"&gt;ATM cards&lt;/a&gt;, &lt;a href="http://en.wikipedia.org/wiki/Password" title="Password"&gt;computer passwords&lt;/a&gt; and &lt;a href="http://en.wikipedia.org/wiki/Electronic_commerce" title="Electronic commerce"&gt;electronic commerce&lt;/a&gt;, which all depend on cryptography.&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5050165515632655759-3087024554195018842?l=cryphy.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://cryphy.blogspot.com/feeds/3087024554195018842/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://cryphy.blogspot.com/2009/05/cryptography.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5050165515632655759/posts/default/3087024554195018842'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5050165515632655759/posts/default/3087024554195018842'/><link rel='alternate' type='text/html' href='http://cryphy.blogspot.com/2009/05/cryptography.html' title='Cryptography'/><author><name>Andry Septia Nurrahman</name><uri>http://www.blogger.com/profile/11738634130176322155</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://4.bp.blogspot.com/_gmV1PiPRWCE/Sckx-3j5xjI/AAAAAAAAABA/oVWoojba14w/S220/Andry+Septia+Nurrahman.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5050165515632655759.post-4571701037928089840</id><published>2009-05-17T09:07:00.001-07:00</published><updated>2009-05-17T09:07:24.346-07:00</updated><title type='text'>Terminology</title><content type='html'>&lt;p&gt;Until modern times cryptography was referred almost exclusively to &lt;i&gt;&lt;a href="http://en.wikipedia.org/wiki/Encryption" title="Encryption"&gt;encryption&lt;/a&gt;&lt;/i&gt;, which is the process of converting ordinary information (&lt;a href="http://en.wikipedia.org/wiki/Plaintext" title="Plaintext"&gt;plaintext&lt;/a&gt;) into unintelligible gibberish (i.e., &lt;i&gt;ciphertext&lt;/i&gt;).&lt;sup id="cite_ref-kahnbook_1-0" class="reference"&gt;&lt;a href="http://en.wikipedia.org/wiki/Cryptography#cite_note-kahnbook-1" title=""&gt;&lt;span&gt;&lt;/span&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/sup&gt; Decryption is the reverse, in other words, moving from the unintelligible ciphertext back to &lt;a href="http://en.wikipedia.org/wiki/Plaintext" title="Plaintext"&gt;plaintext&lt;/a&gt;. A &lt;i&gt;&lt;a href="http://en.wikipedia.org/wiki/Cipher" title="Cipher"&gt;cipher&lt;/a&gt;&lt;/i&gt; (or &lt;i&gt;cypher&lt;/i&gt;) is a pair of &lt;a href="http://en.wikipedia.org/wiki/Algorithm" title="Algorithm"&gt;algorithms&lt;/a&gt; which create the encryption and the reversing decryption. The detailed operation of a cipher is controlled both by the algorithm and in each instance by a &lt;i&gt;&lt;a href="http://en.wikipedia.org/wiki/Key_%28cryptography%29" title="Key (cryptography)"&gt;key&lt;/a&gt;&lt;/i&gt;. This is a secret parameter (ideally known only to the communicants) for a specific message exchange context. Keys are important, as ciphers without variable keys are trivially breakable and therefore less than useful for most purposes. Historically, ciphers were often used directly for encryption or decryption without additional procedures such as authentication or integrity checks.&lt;/p&gt; &lt;p&gt;In &lt;a href="http://en.wikipedia.org/wiki/Colloquial" title="Colloquial" class="mw-redirect"&gt;colloquial&lt;/a&gt; use, the term "&lt;a href="http://en.wikipedia.org/wiki/Code_%28cryptography%29" title="Code (cryptography)"&gt;code&lt;/a&gt;" is often used to mean any method of encryption or concealment of meaning. However, in cryptography, &lt;i&gt;code&lt;/i&gt; has a more specific meaning. It means the replacement of a unit of plaintext (i.e., a meaningful word or phrase) with a &lt;a href="http://en.wikipedia.org/wiki/Code_word" title="Code word"&gt;code word&lt;/a&gt; (for example, &lt;tt&gt;apple pie&lt;/tt&gt; replaces &lt;tt&gt;attack at dawn&lt;/tt&gt;). Codes are no longer used in serious cryptography—except incidentally for such things as unit designations (e.g., Bronco Flight or Operation Overlord) —- since properly chosen ciphers are both more practical and more secure than even the best codes and also are better adapted to computers as well.&lt;/p&gt; &lt;p&gt;Some use the terms &lt;i&gt;cryptography&lt;/i&gt; and &lt;i&gt;cryptology&lt;/i&gt; interchangeably in English, while others (including US military practice generally) use &lt;i&gt;cryptography&lt;/i&gt; to refer specifically to the use and practice of cryptographic techniques and &lt;i&gt;cryptology&lt;/i&gt; to refer to the combined study of cryptography and cryptanalysis.&lt;sup id="cite_ref-goldreichbook_2-0" class="reference"&gt;&lt;a href="http://en.wikipedia.org/wiki/Cryptography#cite_note-goldreichbook-2" title=""&gt;&lt;span&gt;&lt;/span&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/sup&gt;&lt;sup id="cite_ref-websters_3-0" class="reference"&gt;&lt;a href="http://en.wikipedia.org/wiki/Cryptography#cite_note-websters-3" title=""&gt;&lt;span&gt;&lt;/span&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/sup&gt; English is more flexible than some other languages in which &lt;i&gt;cryptology&lt;/i&gt; (done by cryptologists) is used in the second sense above. In the English Wikipedia the general term used is &lt;i&gt;cryptography&lt;/i&gt; (done by cryptographers).&lt;/p&gt; &lt;p&gt;The study of characteristics of languages which have some application in cryptography (or cryptology), i.e. frequency data, letter combinations, universal patterns, etc. is called &lt;a href="http://en.wikipedia.org/w/index.php?title=Cryptolinguistics&amp;amp;action=edit&amp;amp;redlink=1" class="new" title="Cryptolinguistics (page does not exist)"&gt;cryptolinguistics&lt;/a&gt;.&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5050165515632655759-4571701037928089840?l=cryphy.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://cryphy.blogspot.com/feeds/4571701037928089840/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://cryphy.blogspot.com/2009/05/terminology.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5050165515632655759/posts/default/4571701037928089840'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5050165515632655759/posts/default/4571701037928089840'/><link rel='alternate' type='text/html' href='http://cryphy.blogspot.com/2009/05/terminology.html' title='Terminology'/><author><name>Andry Septia Nurrahman</name><uri>http://www.blogger.com/profile/11738634130176322155</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://4.bp.blogspot.com/_gmV1PiPRWCE/Sckx-3j5xjI/AAAAAAAAABA/oVWoojba14w/S220/Andry+Septia+Nurrahman.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5050165515632655759.post-2640136266732540716</id><published>2009-05-17T09:04:00.000-07:00</published><updated>2009-05-17T09:07:00.328-07:00</updated><title type='text'>History of cryptography and cryptanalysis</title><content type='html'>&lt;div class="thumb tright"&gt; &lt;div class="thumbinner" style="width: 201px;"&gt;&lt;a href="http://en.wikipedia.org/wiki/File:Skytala%26EmptyStrip-Shaded.png" class="image" title="The Ancient Greek scytale (rhymes with Italy), probably much like this modern reconstruction, may have been one of the earliest devices used to implement a cipher."&gt;&lt;img alt="" src="http://upload.wikimedia.org/wikipedia/commons/thumb/b/b2/Skytala%26EmptyStrip-Shaded.png/199px-Skytala%26EmptyStrip-Shaded.png" class="thumbimage" width="199" border="0" height="149" /&gt;&lt;/a&gt; &lt;div class="thumbcaption"&gt; &lt;div class="magnify"&gt;&lt;a href="http://en.wikipedia.org/wiki/File:Skytala%26EmptyStrip-Shaded.png" class="internal" title="Enlarge"&gt;&lt;br /&gt;&lt;/a&gt;&lt;/div&gt; The Ancient Greek &lt;a href="http://en.wikipedia.org/wiki/Scytale" title="Scytale"&gt;scytale&lt;/a&gt; (rhymes with Italy), probably much like this modern reconstruction, may have been one of the earliest devices used to implement a cipher.&lt;/div&gt; &lt;/div&gt; &lt;/div&gt;  &lt;p&gt;Before the modern era, cryptography was concerned solely with message confidentiality (i.e., encryption) — conversion of &lt;a href="http://en.wikipedia.org/wiki/Information" title="Information"&gt;messages&lt;/a&gt; from a comprehensible form into an incomprehensible one and back again at the other end, rendering it unreadable by interceptors or eavesdroppers without secret knowledge (namely the key needed for decryption of that message). In recent decades, the field has expanded beyond confidentiality concerns to include techniques for message integrity checking, sender/receiver identity &lt;a href="http://en.wikipedia.org/wiki/Authentication" title="Authentication"&gt;authentication&lt;/a&gt;, &lt;a href="http://en.wikipedia.org/wiki/Digital_signature" title="Digital signature"&gt;digital signatures&lt;/a&gt;, &lt;a href="http://en.wikipedia.org/wiki/Interactive_proof" title="Interactive proof"&gt;interactive proofs&lt;/a&gt; and &lt;a href="http://en.wikipedia.org/wiki/Secure_multiparty_computation" title="Secure multiparty computation" class="mw-redirect"&gt;secure computation&lt;/a&gt;, among others.&lt;/p&gt; &lt;p&gt;The earliest forms of secret writing required little more than local pen and paper analogs, as most people could not read. More literacy, or opponent literacy, required actual cryptography. The main classical cipher types are &lt;a href="http://en.wikipedia.org/wiki/Transposition_cipher" title="Transposition cipher"&gt;transposition ciphers&lt;/a&gt;, which rearrange the order of letters in a message (e.g., 'hello world' becomes 'ehlol owrdl' in a trivially simple rearrangement scheme), and &lt;a href="http://en.wikipedia.org/wiki/Substitution_cipher" title="Substitution cipher"&gt;substitution ciphers&lt;/a&gt;, which systematically replace letters or groups of letters with other letters or groups of letters (e.g., 'fly at once' becomes 'gmz bu podf' by replacing each letter with the one following it in the English alphabet). Simple versions of either offered little confidentiality from enterprising opponents, and still don't. An early substitution cipher was the &lt;a href="http://en.wikipedia.org/wiki/Caesar_cipher" title="Caesar cipher"&gt;Caesar cipher&lt;/a&gt;, in which each letter in the plaintext was replaced by a letter some fixed number of positions further down the alphabet. It was named after &lt;a href="http://en.wikipedia.org/wiki/Julius_Caesar" title="Julius Caesar"&gt;Julius Caesar&lt;/a&gt; who is reported to have used it, with a shift of 3, to communicate with his generals during his military campaigns, just like &lt;a href="http://en.wikipedia.org/wiki/Excess-3" title="Excess-3"&gt;EXCESS-3&lt;/a&gt; code in boolean algebra.&lt;/p&gt; &lt;p&gt;Encryption attempts to ensure &lt;a href="http://en.wikipedia.org/wiki/Secrecy" title="Secrecy"&gt;secrecy&lt;/a&gt; in &lt;a href="http://en.wikipedia.org/wiki/Communications" title="Communications" class="mw-redirect"&gt;communications&lt;/a&gt;, such as those of &lt;a href="http://en.wikipedia.org/wiki/Spy" title="Spy" class="mw-redirect"&gt;spies&lt;/a&gt;, military leaders, and &lt;a href="http://en.wikipedia.org/wiki/Diplomat" title="Diplomat" class="mw-redirect"&gt;diplomats&lt;/a&gt;. There is record of several early Hebrew ciphers as well. Cryptography is recommended in the &lt;a href="http://en.wikipedia.org/wiki/Kama_Sutra" title="Kama Sutra"&gt;Kama Sutra&lt;/a&gt; as a way for lovers to communicate without inconvenient discovery.&lt;sup id="cite_ref-kama_4-0" class="reference"&gt;&lt;a href="http://en.wikipedia.org/wiki/Cryptography#cite_note-kama-4" title=""&gt;&lt;span&gt;&lt;/span&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/sup&gt; &lt;a href="http://en.wikipedia.org/wiki/Steganography" title="Steganography"&gt;Steganography&lt;/a&gt; (i.e., hiding even the existence of a message so as to keep it confidential) was also first developed in ancient times. An early example, from &lt;a href="http://en.wikipedia.org/wiki/Herodotus" title="Herodotus"&gt;Herodotus&lt;/a&gt;, concealed a message - a tattoo on a slave's shaved head - under the regrown hair.&lt;sup id="cite_ref-kahnbook_1-1" class="reference"&gt;&lt;a href="http://en.wikipedia.org/wiki/Cryptography#cite_note-kahnbook-1" title=""&gt;&lt;span&gt;&lt;/span&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/sup&gt; More modern examples of steganography include the use of &lt;a href="http://en.wikipedia.org/wiki/Invisible_ink" title="Invisible ink"&gt;invisible ink&lt;/a&gt;, &lt;a href="http://en.wikipedia.org/wiki/Microdot" title="Microdot"&gt;microdots&lt;/a&gt;, and &lt;a href="http://en.wikipedia.org/wiki/Digital_watermark" title="Digital watermark" class="mw-redirect"&gt;digital watermarks&lt;/a&gt; to conceal information.&lt;/p&gt; &lt;p&gt;Ciphertexts produced by classical ciphers (and some modern ones) always reveal statistical information about the plaintext, which can often be used to break them. After the discovery of &lt;a href="http://en.wikipedia.org/wiki/Frequency_analysis_%28cryptanalysis%29" title="Frequency analysis (cryptanalysis)" class="mw-redirect"&gt;frequency analysis&lt;/a&gt; by the &lt;a href="http://en.wikipedia.org/wiki/Mathematics_in_medieval_Islam" title="Mathematics in medieval Islam"&gt;Arab mathematician&lt;/a&gt; and &lt;a href="http://en.wikipedia.org/wiki/Polymath" title="Polymath"&gt;polymath&lt;/a&gt;, &lt;a href="http://en.wikipedia.org/wiki/Al-Kindi" title="Al-Kindi"&gt;Al-Kindi&lt;/a&gt; (also known as &lt;i&gt;Alkindus&lt;/i&gt;), in the 9th century, nearly all such ciphers became more or less readily breakable by an informed attacker. Such classical ciphers still enjoy popularity today, though mostly as &lt;a href="http://en.wikipedia.org/wiki/Puzzle" title="Puzzle"&gt;puzzles&lt;/a&gt; (see &lt;a href="http://en.wikipedia.org/wiki/Cryptogram" title="Cryptogram"&gt;cryptogram&lt;/a&gt;). Essentially all ciphers remained vulnerable to cryptanalysis using this technique until the development of the &lt;a href="http://en.wikipedia.org/wiki/Polyalphabetic_cipher" title="Polyalphabetic cipher"&gt;polyalphabetic cipher&lt;/a&gt;, most clearly by &lt;a href="http://en.wikipedia.org/wiki/Leon_Battista_Alberti" title="Leon Battista Alberti"&gt;Leon Battista Alberti&lt;/a&gt; around the year 1467, though there is some indication that it was known to earlier Arab mathematicians such as Al-Kindi.&lt;sup id="cite_ref-5" class="reference"&gt;&lt;a href="http://en.wikipedia.org/wiki/Cryptography#cite_note-5" title=""&gt;&lt;span&gt;&lt;/span&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/sup&gt; Alberti's innovation was to use different ciphers (i.e., substitution alphabets) for various parts of a message (perhaps for each successive plaintext letter in the limit). He also invented what was probably the first automatic &lt;a href="http://en.wikipedia.org/wiki/Alberti_Cipher_Disk" title="Alberti Cipher Disk" class="mw-redirect"&gt;cipher device&lt;/a&gt;, a wheel which implemented a partial realization of his invention. In the polyalphabetic &lt;a href="http://en.wikipedia.org/wiki/Vigen%C3%A8re_cipher" title="Vigenère cipher"&gt;Vigenère cipher&lt;/a&gt;, encryption uses a &lt;i&gt;key word&lt;/i&gt;, which controls letter substitution depending on which letter of the key word is used. In the mid 1800s &lt;a href="http://en.wikipedia.org/wiki/Charles_Babbage" title="Charles Babbage"&gt;Babbage&lt;/a&gt; showed that polyalphabetic ciphers of this type remained partially vulnerable to extended frequency analysis techniques.&lt;sup id="cite_ref-kahnbook_1-2" class="reference"&gt;&lt;a href="http://en.wikipedia.org/wiki/Cryptography#cite_note-kahnbook-1" title=""&gt;&lt;span&gt;&lt;/span&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/sup&gt;&lt;/p&gt; &lt;div class="thumb tleft"&gt; &lt;div class="thumbinner" style="width: 242px;"&gt;&lt;a href="http://en.wikipedia.org/wiki/File:Enigma.jpg" class="image" title="The Enigma machine, used, in several variants, by the German military between the late 1920s and the end of World War II, implemented a complex electro-mechanical polyalphabetic cipher to protect sensitive communications.  Breaking the Enigma cipher at the Biuro Szyfrów, and the subsequent large-scale decryption of Enigma traffic at Bletchley Park, was an important factor contributing to the Allied victory in WWII.[2]"&gt;&lt;img alt="" src="http://upload.wikimedia.org/wikipedia/commons/thumb/a/ae/Enigma.jpg/240px-Enigma.jpg" class="thumbimage" width="240" border="0" height="320" /&gt;&lt;/a&gt; &lt;div class="thumbcaption"&gt; &lt;div class="magnify"&gt;&lt;a href="http://en.wikipedia.org/wiki/File:Enigma.jpg" class="internal" title="Enlarge"&gt;&lt;br /&gt;&lt;/a&gt;&lt;/div&gt; The &lt;a href="http://en.wikipedia.org/wiki/Enigma_machine" title="Enigma machine"&gt;Enigma machine&lt;/a&gt;, used, in several variants, by the German military between the late 1920s and the end of &lt;a href="http://en.wikipedia.org/wiki/World_War_II" title="World War II"&gt;World War II&lt;/a&gt;, implemented a complex electro-mechanical polyalphabetic &lt;a href="http://en.wikipedia.org/wiki/Cipher" title="Cipher"&gt;cipher&lt;/a&gt; to protect sensitive communications. &lt;a href="http://en.wikipedia.org/wiki/Cryptanalysis_of_the_Enigma" title="Cryptanalysis of the Enigma"&gt;Breaking the Enigma&lt;/a&gt; cipher at the &lt;a href="http://en.wikipedia.org/wiki/Biuro_Szyfr%C3%B3w" title="Biuro Szyfrów"&gt;Biuro Szyfrów&lt;/a&gt;, and the subsequent large-scale decryption of Enigma traffic at &lt;a href="http://en.wikipedia.org/wiki/Bletchley_Park" title="Bletchley Park"&gt;Bletchley Park&lt;/a&gt;, was an important factor contributing to the Allied victory in WWII.&lt;sup id="cite_ref-kahnbook_1-3" class="reference"&gt;&lt;a href="http://en.wikipedia.org/wiki/Cryptography#cite_note-kahnbook-1" title=""&gt;&lt;span&gt;&lt;/span&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/sup&gt;&lt;/div&gt; &lt;/div&gt; &lt;/div&gt; &lt;p&gt;Although frequency analysis is a powerful and general technique against many ciphers, encryption was still often effective in practice; many a would-be cryptanalyst was unaware of the technique. Breaking a message without using frequency analysis essentially required knowledge of the cipher used and perhaps of the key involved, thus making espionage, bribery, burglary, defection, etc. more attractive approaches. It was finally explicitly recognized in the 19th century that secrecy of a cipher's algorithm is not a sensible or practical safeguard; in fact, it was further realized any adequate cryptographic scheme (including ciphers) should remain secure even if the adversary fully understands the cipher algorithm itself. Secrecy of the key should alone be sufficient for a good cipher to maintain confidentiality under an attack. This fundamental principle was first explicitly stated in 1883 by &lt;a href="http://en.wikipedia.org/wiki/Auguste_Kerckhoffs" title="Auguste Kerckhoffs"&gt;Auguste Kerckhoffs&lt;/a&gt; and is generally called &lt;a href="http://en.wikipedia.org/wiki/Kerckhoffs%27_principle" title="Kerckhoffs' principle"&gt;Kerckhoffs' principle&lt;/a&gt;; alternatively and more bluntly, it was restated by &lt;a href="http://en.wikipedia.org/wiki/Claude_Shannon" title="Claude Shannon"&gt;Claude Shannon&lt;/a&gt;, the inventor of information theory and the fundamentals of theoretical cryptography, as &lt;i&gt;Shannon's Maxim&lt;/i&gt; — 'the enemy knows the system'.&lt;/p&gt; &lt;p&gt;Various physical devices and aids have been used to assist with ciphers. One of the earliest may have been the &lt;a href="http://en.wikipedia.org/wiki/Scytale" title="Scytale"&gt;scytale&lt;/a&gt; of &lt;a href="http://en.wikipedia.org/wiki/Ancient_Greece" title="Ancient Greece"&gt;ancient Greece&lt;/a&gt;, a rod supposedly used by the Spartans as an aid for a transposition cipher. In medieval times, other aids were invented such as the &lt;a href="http://en.wikipedia.org/wiki/Grille_%28cryptography%29" title="Grille (cryptography)"&gt;cipher grille&lt;/a&gt;, also used for a kind of steganography. With the invention of polyalphabetic ciphers came more sophisticated aids such as Alberti's own &lt;a href="http://en.wikipedia.org/wiki/Cipher_disk" title="Cipher disk"&gt;cipher disk&lt;/a&gt;, &lt;a href="http://en.wikipedia.org/wiki/Johannes_Trithemius" title="Johannes Trithemius"&gt;Johannes Trithemius&lt;/a&gt;' &lt;a href="http://en.wikipedia.org/wiki/Tabula_recta" title="Tabula recta"&gt;tabula recta&lt;/a&gt; scheme, and &lt;a href="http://en.wikipedia.org/wiki/Thomas_Jefferson" title="Thomas Jefferson"&gt;Thomas Jefferson&lt;/a&gt;'s &lt;a href="http://en.wikipedia.org/wiki/Jefferson_disk" title="Jefferson disk"&gt;multi-cylinder&lt;/a&gt; (reinvented independently by &lt;a href="http://en.wikipedia.org/wiki/Bazeries" title="Bazeries" class="mw-redirect"&gt;Bazeries&lt;/a&gt; around 1900). Several mechanical encryption/decryption devices were invented early in the 20th century, and many patented, among them &lt;a href="http://en.wikipedia.org/wiki/Rotor_machine" title="Rotor machine"&gt;rotor machines&lt;/a&gt; — famously including the &lt;a href="http://en.wikipedia.org/wiki/Enigma_machine" title="Enigma machine"&gt;Enigma machine&lt;/a&gt; used by the German government and military from the late 20s and during &lt;a href="http://en.wikipedia.org/wiki/World_War_II" title="World War II"&gt;World War II&lt;/a&gt;.&lt;sup id="cite_ref-6" class="reference"&gt;&lt;a href="http://en.wikipedia.org/wiki/Cryptography#cite_note-6" title=""&gt;&lt;span&gt;&lt;/span&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/sup&gt; The ciphers implemented by better quality examples of these designs brought about a substantial increase in cryptanalytic difficulty after WWI.&lt;sup id="cite_ref-7" class="reference"&gt;&lt;a href="http://en.wikipedia.org/wiki/Cryptography#cite_note-7" title=""&gt;&lt;span&gt;&lt;/span&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/sup&gt;&lt;/p&gt; &lt;p&gt;The development of digital computers and &lt;a href="http://en.wikipedia.org/wiki/Electronics" title="Electronics"&gt;electronics&lt;/a&gt; after WWII made possible much more complex ciphers. Furthermore, computers allowed for the encryption of any kind of data representable within computers in any binary format, unlike classical ciphers which only encrypted written language texts. Thus, computers supplanted linguistic cryptanalytic approaches. Many computer ciphers can be characterized by their operation on &lt;a href="http://en.wikipedia.org/wiki/Binary_numeral_system" title="Binary numeral system"&gt;binary&lt;/a&gt; &lt;a href="http://en.wikipedia.org/wiki/Bit" title="Bit"&gt;bit&lt;/a&gt; sequences (sometimes in groups or blocks), unlike classical and mechanical schemes, which generally manipulate traditional characters (i.e., letters and digits) directly. However, computers have also assisted cryptanalysis, which has compensated to some extent for increased cipher complexity. Nonetheless, good modern ciphers have stayed ahead of cryptanalysis; it is typically the case that use of a quality cipher is very efficient (i.e., fast and requiring few resources), while breaking it requires an effort many orders of magnitude larger than before, making cryptanalysis so inefficient and impractical as to be effectively impossible. Alternate methods of attack, as before, have become more attractive in consequence.&lt;/p&gt; &lt;div class="thumb tright"&gt; &lt;div class="thumbinner" style="width: 252px;"&gt;&lt;a href="http://en.wikipedia.org/wiki/File:Smartcard3.png" class="image" title="A credit card with smart card capabilities. The 3 by 5 mm chip embedded in the card is shown enlarged in the insert. Smart cards attempt to combine portability with the power to compute modern cryptographic algorithms."&gt;&lt;img alt="" src="http://upload.wikimedia.org/wikipedia/commons/thumb/8/84/Smartcard3.png/250px-Smartcard3.png" class="thumbimage" width="250" border="0" height="198" /&gt;&lt;/a&gt; &lt;div class="thumbcaption"&gt; &lt;div class="magnify"&gt;&lt;a href="http://en.wikipedia.org/wiki/File:Smartcard3.png" class="internal" title="Enlarge"&gt;&lt;br /&gt;&lt;/a&gt;&lt;/div&gt; A credit card with &lt;a href="http://en.wikipedia.org/wiki/Smart_card" title="Smart card"&gt;smart card&lt;/a&gt; capabilities. The 3 by 5 mm chip embedded in the card is shown enlarged in the insert. Smart cards attempt to combine portability with the power to compute modern cryptographic algorithms.&lt;/div&gt; &lt;/div&gt; &lt;/div&gt; &lt;p&gt;Extensive open academic research into cryptography is relatively recent; it began only in the mid-1970s. Medieval work was both less systematic, less comprehensive, and more likely to attract attention from the Church or others as Satanically inspired or dangerous to the state or those in power. In recent times, IBM personnel designed the algorithm that became the Federal (ie, US) &lt;a href="http://en.wikipedia.org/wiki/Data_Encryption_Standard" title="Data Encryption Standard"&gt;Data Encryption Standard&lt;/a&gt;; Whitfield Diffie and Martin Hellman published &lt;a href="http://en.wikipedia.org/wiki/Diffie-Hellman" title="Diffie-Hellman" class="mw-redirect"&gt;their key agreement algorithm&lt;/a&gt;,&lt;sup id="cite_ref-dh2_8-0" class="reference"&gt;&lt;a href="http://en.wikipedia.org/wiki/Cryptography#cite_note-dh2-8" title=""&gt;&lt;span&gt;&lt;/span&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/sup&gt; and the &lt;a href="http://en.wikipedia.org/wiki/RSA" title="RSA"&gt;RSA&lt;/a&gt; algorithm was published in &lt;a href="http://en.wikipedia.org/wiki/Martin_Gardner" title="Martin Gardner"&gt;Martin Gardner&lt;/a&gt;'s &lt;a href="http://en.wikipedia.org/wiki/Scientific_American" title="Scientific American"&gt;Scientific American&lt;/a&gt; column. Since then, cryptography has become a widely used tool in communications, &lt;a href="http://en.wikipedia.org/wiki/Computer_network" title="Computer network"&gt;computer networks&lt;/a&gt;, and computer security generally. Most modern cryptographic techniques can only keep their keys secret if certain mathematical problems are intractable, such as the &lt;a href="http://en.wikipedia.org/wiki/Integer_factorisation" title="Integer factorisation" class="mw-redirect"&gt;integer factorisation&lt;/a&gt; or the &lt;a href="http://en.wikipedia.org/wiki/Discrete_logarithm" title="Discrete logarithm"&gt;discrete logarithm&lt;/a&gt; problems. Generally, there are no absolute proofs that a cryptographic technique is secure (but see &lt;a href="http://en.wikipedia.org/wiki/One-time_pad" title="One-time pad"&gt;one-time pad&lt;/a&gt;); at best, there are proofs that some techniques are secure &lt;i&gt;if&lt;/i&gt; some computational problem is difficult to solve.&lt;/p&gt; &lt;p&gt;As well as being aware of cryptographic history, cryptographic algorithm and system designers must also sensibly consider probable future developments while working on their designs. For instance, continuous improvements in computer processing power have increased the scope of &lt;a href="http://en.wikipedia.org/wiki/Brute-force_attack" title="Brute-force attack" class="mw-redirect"&gt;brute-force attacks&lt;/a&gt;, thus when specifying &lt;a href="http://en.wikipedia.org/wiki/Key_length" title="Key length" class="mw-redirect"&gt;key lengths&lt;/a&gt;, the required key lengths are similarly advancing. The potential effects of &lt;a href="http://en.wikipedia.org/wiki/Quantum_computing" title="Quantum computing" class="mw-redirect"&gt;quantum computing&lt;/a&gt; are already being considered by some cryptographic system designers; the announced imminence of small implementations of these machines may be making the need for this preemptive caution less than merely speculative.&lt;sup id="cite_ref-hac_9-0" class="reference"&gt;&lt;a href="http://en.wikipedia.org/wiki/Cryptography#cite_note-hac-9" title=""&gt;&lt;span&gt;&lt;/span&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/sup&gt;&lt;/p&gt; &lt;p&gt;Essentially, prior to the early 20th century, cryptography was chiefly concerned with &lt;a href="http://en.wikipedia.org/wiki/Language" title="Language"&gt;linguistic&lt;/a&gt; and &lt;a href="http://en.wikipedia.org/wiki/Lexicographic_code" title="Lexicographic code"&gt;lexicographic&lt;/a&gt; patterns. Since then the emphasis has shifted, and cryptography now makes extensive use of mathematics, including aspects of &lt;a href="http://en.wikipedia.org/wiki/Information_theory" title="Information theory"&gt;information theory&lt;/a&gt;, &lt;a href="http://en.wikipedia.org/wiki/Computational_complexity_theory" title="Computational complexity theory"&gt;computational complexity&lt;/a&gt;, &lt;a href="http://en.wikipedia.org/wiki/Statistics" title="Statistics"&gt;statistics&lt;/a&gt;, &lt;a href="http://en.wikipedia.org/wiki/Combinatorics" title="Combinatorics"&gt;combinatorics&lt;/a&gt;, &lt;a href="http://en.wikipedia.org/wiki/Abstract_algebra" title="Abstract algebra"&gt;abstract algebra&lt;/a&gt;, and &lt;a href="http://en.wikipedia.org/wiki/Number_theory" title="Number theory"&gt;number theory&lt;/a&gt;. Cryptography is, also, a branch of &lt;a href="http://en.wikipedia.org/wiki/Engineering" title="Engineering"&gt;engineering&lt;/a&gt;, but an unusual one as it deals with active, intelligent, and malevolent opposition (see &lt;a href="http://en.wikipedia.org/wiki/Cryptographic_engineering" title="Cryptographic engineering"&gt;cryptographic engineering&lt;/a&gt; and &lt;a href="http://en.wikipedia.org/wiki/Security_engineering" title="Security engineering"&gt;security engineering&lt;/a&gt;); most other kinds of engineering need deal only with neutral natural forces. There is also active research examining the relationship between cryptographic problems and &lt;a href="http://en.wikipedia.org/wiki/Quantum_physics" title="Quantum physics" class="mw-redirect"&gt;quantum physics&lt;/a&gt; (see &lt;a href="http://en.wikipedia.org/wiki/Quantum_cryptography" title="Quantum cryptography"&gt;quantum cryptography&lt;/a&gt; and &lt;a href="http://en.wikipedia.org/wiki/Quantum_computing" title="Quantum computing" class="mw-redirect"&gt;quantum computing&lt;/a&gt;).&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5050165515632655759-2640136266732540716?l=cryphy.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://cryphy.blogspot.com/feeds/2640136266732540716/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://cryphy.blogspot.com/2009/05/history-of-cryptography-and.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5050165515632655759/posts/default/2640136266732540716'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5050165515632655759/posts/default/2640136266732540716'/><link rel='alternate' type='text/html' href='http://cryphy.blogspot.com/2009/05/history-of-cryptography-and.html' title='History of cryptography and cryptanalysis'/><author><name>Andry Septia Nurrahman</name><uri>http://www.blogger.com/profile/11738634130176322155</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://4.bp.blogspot.com/_gmV1PiPRWCE/Sckx-3j5xjI/AAAAAAAAABA/oVWoojba14w/S220/Andry+Septia+Nurrahman.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5050165515632655759.post-1381942192388185174</id><published>2009-05-17T06:02:00.000-07:00</published><updated>2009-05-17T06:03:51.349-07:00</updated><title type='text'>Symmetric-key cryptography</title><content type='html'>&lt;p&gt;Symmetric-key cryptography refers to encryption methods in which both the sender and receiver share the same key (or, less commonly, in which their keys are different, but related in an easily computable way). This was the only kind of encryption publicly known until June 1976.&lt;sup id="cite_ref-dh2_8-1" class="reference"&gt;&lt;a href="http://en.wikipedia.org/wiki/Cryptography#cite_note-dh2-8" title=""&gt;&lt;span&gt;&lt;/span&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/sup&gt;&lt;/p&gt; &lt;div class="thumb tright"&gt; &lt;div class="thumbinner" style="width: 182px;"&gt;&lt;a href="http://en.wikipedia.org/wiki/File:International_Data_Encryption_Algorithm_InfoBox_Diagram.svg" class="image" title="One round (out of 8.5) of the patented IDEA cipher, used in some versions of PGP for high-speed encryption of, for instance, e-mail"&gt;&lt;img alt="" src="http://upload.wikimedia.org/wikipedia/commons/thumb/a/af/International_Data_Encryption_Algorithm_InfoBox_Diagram.svg/180px-International_Data_Encryption_Algorithm_InfoBox_Diagram.svg.png" class="thumbimage" width="180" border="0" height="185" /&gt;&lt;/a&gt; &lt;div class="thumbcaption"&gt; &lt;div class="magnify"&gt;&lt;a href="http://en.wikipedia.org/wiki/File:International_Data_Encryption_Algorithm_InfoBox_Diagram.svg" class="internal" title="Enlarge"&gt;&lt;br /&gt;&lt;/a&gt;&lt;/div&gt; One round (out of 8.5) of the &lt;a href="http://en.wikipedia.org/wiki/Patent" title="Patent"&gt;patented&lt;/a&gt; &lt;a href="http://en.wikipedia.org/wiki/International_Data_Encryption_Algorithm" title="International Data Encryption Algorithm"&gt;IDEA&lt;/a&gt; cipher, used in some versions of &lt;a href="http://en.wikipedia.org/wiki/Pretty_Good_Privacy" title="Pretty Good Privacy"&gt;PGP&lt;/a&gt; for high-speed encryption of, for instance, &lt;a href="http://en.wikipedia.org/wiki/Electronic_mail" title="Electronic mail" class="mw-redirect"&gt;e-mail&lt;/a&gt;&lt;/div&gt; &lt;/div&gt; &lt;/div&gt; &lt;p&gt;The modern study of symmetric-key ciphers relates mainly to the study of &lt;a href="http://en.wikipedia.org/wiki/Block_ciphers" title="Block ciphers" class="mw-redirect"&gt;block ciphers&lt;/a&gt; and &lt;a href="http://en.wikipedia.org/wiki/Stream_ciphers" title="Stream ciphers" class="mw-redirect"&gt;stream ciphers&lt;/a&gt; and to their applications. A block cipher is, in a sense, a modern embodiment of Alberti's polyalphabetic cipher: block ciphers take as input a block of plaintext and a key, and output a block of ciphertext of the same size. Since messages are almost always longer than a single block, some method of knitting together successive blocks is required. Several have been developed, some with better security in one aspect or another than others. They are the &lt;a href="http://en.wikipedia.org/wiki/Block_cipher_modes_of_operation" title="Block cipher modes of operation"&gt;modes of operation&lt;/a&gt; and must be carefully considered when using a block cipher in a cryptosystem.&lt;/p&gt; &lt;p&gt;The &lt;a href="http://en.wikipedia.org/wiki/Data_Encryption_Standard" title="Data Encryption Standard"&gt;Data Encryption Standard&lt;/a&gt; (DES) and the &lt;a href="http://en.wikipedia.org/wiki/Advanced_Encryption_Standard" title="Advanced Encryption Standard"&gt;Advanced Encryption Standard&lt;/a&gt; (AES) are block cipher designs which have been designated &lt;a href="http://en.wikipedia.org/wiki/Cryptography_standards" title="Cryptography standards"&gt;cryptography standards&lt;/a&gt; by the US government (though DES's designation was finally withdrawn after the AES was adopted).&lt;sup id="cite_ref-aes_10-0" class="reference"&gt;&lt;a href="http://en.wikipedia.org/wiki/Cryptography#cite_note-aes-10" title=""&gt;&lt;span&gt;&lt;/span&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/sup&gt; Despite its deprecation as an official standard, DES (especially its still-approved and much more secure &lt;a href="http://en.wikipedia.org/wiki/Triple-DES" title="Triple-DES" class="mw-redirect"&gt;triple-DES&lt;/a&gt; variant) remains quite popular; it is used across a wide range of applications, from ATM encryption&lt;sup id="cite_ref-atm_11-0" class="reference"&gt;&lt;a href="http://en.wikipedia.org/wiki/Cryptography#cite_note-atm-11" title=""&gt;&lt;span&gt;&lt;/span&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/sup&gt; to &lt;a href="http://en.wikipedia.org/wiki/E-mail_privacy" title="E-mail privacy"&gt;e-mail privacy&lt;/a&gt;&lt;sup id="cite_ref-opgp_12-0" class="reference"&gt;&lt;a href="http://en.wikipedia.org/wiki/Cryptography#cite_note-opgp-12" title=""&gt;&lt;span&gt;&lt;/span&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/sup&gt; and &lt;a href="http://en.wikipedia.org/wiki/SSH" title="SSH"&gt;secure remote access&lt;/a&gt;.&lt;sup id="cite_ref-ssh_13-0" class="reference"&gt;&lt;a href="http://en.wikipedia.org/wiki/Cryptography#cite_note-ssh-13" title=""&gt;&lt;span&gt;&lt;/span&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/sup&gt; Many other block ciphers have been designed and released, with considerable variation in quality. Many have been thoroughly broken. See &lt;a href="http://en.wikipedia.org/wiki/Category:Block_ciphers" title="Category:Block ciphers"&gt;Category:Block ciphers&lt;/a&gt;.&lt;sup id="cite_ref-hac_9-1" class="reference"&gt;&lt;a href="http://en.wikipedia.org/wiki/Cryptography#cite_note-hac-9" title=""&gt;&lt;span&gt;&lt;/span&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/sup&gt;&lt;sup id="cite_ref-schneierbook_14-0" class="reference"&gt;&lt;a href="http://en.wikipedia.org/wiki/Cryptography#cite_note-schneierbook-14" title=""&gt;&lt;span&gt;&lt;/span&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/sup&gt;&lt;/p&gt; &lt;p&gt;Stream ciphers, in contrast to the 'block' type, create an arbitrarily long stream of key material, which is combined with the plaintext bit-by-bit or character-by-character, somewhat like the &lt;a href="http://en.wikipedia.org/wiki/One-time_pad" title="One-time pad"&gt;one-time pad&lt;/a&gt;. In a stream cipher, the output stream is created based on a hidden internal state which changes as the cipher operates. That internal state is initially set up using the secret key material. &lt;a href="http://en.wikipedia.org/wiki/RC4" title="RC4"&gt;RC4&lt;/a&gt; is a widely used stream cipher; see &lt;a href="http://en.wikipedia.org/wiki/Category:Stream_ciphers" title="Category:Stream ciphers"&gt;Category:Stream ciphers&lt;/a&gt;.&lt;sup id="cite_ref-hac_9-2" class="reference"&gt;&lt;a href="http://en.wikipedia.org/wiki/Cryptography#cite_note-hac-9" title=""&gt;&lt;span&gt;&lt;/span&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/sup&gt; Block ciphers can be used as stream ciphers; see &lt;a href="http://en.wikipedia.org/wiki/Block_cipher_modes_of_operation" title="Block cipher modes of operation"&gt;Block cipher modes of operation&lt;/a&gt;.&lt;/p&gt; &lt;p&gt;&lt;a href="http://en.wikipedia.org/wiki/Cryptographic_hash_functions" title="Cryptographic hash functions" class="mw-redirect"&gt;Cryptographic hash functions&lt;/a&gt; are a third type of cryptographic algorithm. They take a message of any length as input, and output a short, fixed length &lt;a href="http://en.wikipedia.org/wiki/Hash_function" title="Hash function"&gt;hash&lt;/a&gt; which can be used in (for example) a digital signature. For good hash functions, an attacker cannot find two messages that produce the same hash. &lt;a href="http://en.wikipedia.org/wiki/MD4" title="MD4"&gt;MD4&lt;/a&gt; is a long-used hash function which is now broken; &lt;a href="http://en.wikipedia.org/wiki/MD5" title="MD5"&gt;MD5&lt;/a&gt;, a strengthened variant of MD4, is also widely used but broken in practice. The U.S. &lt;a href="http://en.wikipedia.org/wiki/National_Security_Agency" title="National Security Agency"&gt;National Security Agency&lt;/a&gt; developed the &lt;a href="http://en.wikipedia.org/wiki/SHA" title="SHA" class="mw-redirect"&gt;Secure Hash Algorithm&lt;/a&gt; series of MD5-like hash functions: SHA-0 was a flawed algorithm that the agency withdrew; SHA-1 is widely deployed and more secure than MD5, but cryptanalysts have identified attacks against it; the SHA-2 family improves on SHA-1, but it isn't yet widely deployed, and the U.S. standards authority thought it "prudent" from a security perspective to develop a new standard to "significantly improve the robustness of NIST's overall hash algorithm toolkit."&lt;sup id="cite_ref-15" class="reference"&gt;&lt;a href="http://en.wikipedia.org/wiki/Cryptography#cite_note-15" title=""&gt;&lt;span&gt;&lt;/span&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/sup&gt; Thus, a &lt;a href="http://en.wikipedia.org/wiki/SHA-3" title="SHA-3" class="mw-redirect"&gt;hash function design competition&lt;/a&gt; is underway and meant to select a new U.S. national standard, to be called SHA-3, by 2012.&lt;/p&gt; &lt;p&gt;&lt;a href="http://en.wikipedia.org/wiki/Message_authentication_code" title="Message authentication code"&gt;Message authentication codes&lt;/a&gt; (MACs) are much like cryptographic hash functions, except that a secret key is used to authenticate the hash value&lt;sup id="cite_ref-hac_9-3" class="reference"&gt;&lt;a href="http://en.wikipedia.org/wiki/Cryptography#cite_note-hac-9" title=""&gt;&lt;span&gt;&lt;/span&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/sup&gt; on receipt.&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5050165515632655759-1381942192388185174?l=cryphy.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://cryphy.blogspot.com/feeds/1381942192388185174/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://cryphy.blogspot.com/2009/05/symmetric-key-cryptography.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5050165515632655759/posts/default/1381942192388185174'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5050165515632655759/posts/default/1381942192388185174'/><link rel='alternate' type='text/html' href='http://cryphy.blogspot.com/2009/05/symmetric-key-cryptography.html' title='Symmetric-key cryptography'/><author><name>Andry Septia Nurrahman</name><uri>http://www.blogger.com/profile/11738634130176322155</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://4.bp.blogspot.com/_gmV1PiPRWCE/Sckx-3j5xjI/AAAAAAAAABA/oVWoojba14w/S220/Andry+Septia+Nurrahman.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5050165515632655759.post-2629232909715634904</id><published>2009-05-17T06:01:00.001-07:00</published><updated>2009-05-17T06:02:50.240-07:00</updated><title type='text'>Public-key cryptography</title><content type='html'>&lt;p&gt;Symmetric-key cryptosystems use the same key for encryption and decryption of a message, though a message or group of messages may have a different key than others. A significant disadvantage of symmetric ciphers is the &lt;a href="http://en.wikipedia.org/wiki/Key_management" title="Key management"&gt;key management&lt;/a&gt; necessary to use them securely. Each distinct pair of communicating parties must, ideally, share a different key, and perhaps each ciphertext exchanged as well. The number of keys required increases as the &lt;a href="http://en.wikipedia.org/wiki/Square_%28algebra%29" title="Square (algebra)"&gt;square&lt;/a&gt; of the number of network members, which very quickly requires complex key management schemes to keep them all straight and secret. The difficulty of securely establishing a secret key between two communicating parties, when a &lt;a href="http://en.wikipedia.org/wiki/Secure_channel" title="Secure channel"&gt;secure channel&lt;/a&gt; doesn't already exist between them, also presents a &lt;a href="http://en.wikipedia.org/wiki/Chicken-and-egg_problem" title="Chicken-and-egg problem" class="mw-redirect"&gt;chicken-and-egg problem&lt;/a&gt; which is a considerable practical obstacle for cryptography users in the real world.&lt;/p&gt; &lt;div class="thumb tleft"&gt; &lt;div class="thumbinner" style="width: 182px;"&gt;&lt;a href="http://en.wikipedia.org/wiki/File:Diffie_and_Hellman.jpg" class="image" title="Whitfield Diffie and Martin Hellman, authors of the first paper on public-key cryptography"&gt;&lt;img alt="" src="http://upload.wikimedia.org/wikipedia/commons/thumb/8/88/Diffie_and_Hellman.jpg/180px-Diffie_and_Hellman.jpg" class="thumbimage" width="180" border="0" height="109" /&gt;&lt;/a&gt; &lt;div class="thumbcaption"&gt; &lt;div class="magnify"&gt;&lt;a href="http://en.wikipedia.org/wiki/File:Diffie_and_Hellman.jpg" class="internal" title="Enlarge"&gt;&lt;br /&gt;&lt;/a&gt;&lt;/div&gt; &lt;a href="http://en.wikipedia.org/wiki/Whitfield_Diffie" title="Whitfield Diffie"&gt;Whitfield Diffie&lt;/a&gt; and &lt;a href="http://en.wikipedia.org/wiki/Martin_Hellman" title="Martin Hellman"&gt;Martin Hellman&lt;/a&gt;, authors of the first paper on public-key cryptography&lt;/div&gt; &lt;/div&gt; &lt;/div&gt; &lt;p&gt;In a groundbreaking 1976 paper, &lt;a href="http://en.wikipedia.org/wiki/Whitfield_Diffie" title="Whitfield Diffie"&gt;Whitfield Diffie&lt;/a&gt; and &lt;a href="http://en.wikipedia.org/wiki/Martin_Hellman" title="Martin Hellman"&gt;Martin Hellman&lt;/a&gt; proposed the notion of &lt;i&gt;public-key&lt;/i&gt; (also, more generally, called &lt;i&gt;asymmetric key&lt;/i&gt;) cryptography in which two different but mathematically related keys are used — a &lt;i&gt;public&lt;/i&gt; key and a &lt;i&gt;private&lt;/i&gt; key.&lt;sup id="cite_ref-16" class="reference"&gt;&lt;a href="http://en.wikipedia.org/wiki/Cryptography#cite_note-16" title=""&gt;&lt;span&gt;&lt;/span&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/sup&gt; A public key system is so constructed that calculation of one key (the 'private key') is computationally infeasible from the other (the 'public key'), even though they are necessarily related. Instead, both keys are generated secretly, as an interrelated pair.&lt;sup id="cite_ref-17" class="reference"&gt;&lt;a href="http://en.wikipedia.org/wiki/Cryptography#cite_note-17" title=""&gt;&lt;span&gt;&lt;/span&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/sup&gt; The historian &lt;a href="http://en.wikipedia.org/wiki/David_Kahn" title="David Kahn"&gt;David Kahn&lt;/a&gt; described public-key cryptography as "the most revolutionary new concept in the field since polyalphabetic substitution emerged in the Renaissance".&lt;sup id="cite_ref-18" class="reference"&gt;&lt;a href="http://en.wikipedia.org/wiki/Cryptography#cite_note-18" title=""&gt;&lt;span&gt;&lt;/span&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/sup&gt;&lt;/p&gt; &lt;p&gt;In public-key cryptosystems, the public key may be freely distributed, while its paired private key must remain secret. The &lt;i&gt;public key&lt;/i&gt; is typically used for encryption, while the &lt;i&gt;private&lt;/i&gt; or &lt;i&gt;secret key&lt;/i&gt; is used for decryption. Diffie and Hellman showed that public-key cryptography was possible by presenting the &lt;a href="http://en.wikipedia.org/wiki/Diffie-Hellman" title="Diffie-Hellman" class="mw-redirect"&gt;Diffie-Hellman&lt;/a&gt; key exchange protocol.&lt;sup id="cite_ref-dh2_8-2" class="reference"&gt;&lt;a href="http://en.wikipedia.org/wiki/Cryptography#cite_note-dh2-8" title=""&gt;&lt;span&gt;&lt;/span&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/sup&gt;&lt;/p&gt; &lt;p&gt;In 1978, &lt;a href="http://en.wikipedia.org/wiki/Ronald_Rivest" title="Ronald Rivest" class="mw-redirect"&gt;Ronald Rivest&lt;/a&gt;, &lt;a href="http://en.wikipedia.org/wiki/Adi_Shamir" title="Adi Shamir"&gt;Adi Shamir&lt;/a&gt;, and &lt;a href="http://en.wikipedia.org/wiki/Len_Adleman" title="Len Adleman" class="mw-redirect"&gt;Len Adleman&lt;/a&gt; invented &lt;a href="http://en.wikipedia.org/wiki/RSA" title="RSA"&gt;RSA&lt;/a&gt;, another public-key system.&lt;sup id="cite_ref-19" class="reference"&gt;&lt;a href="http://en.wikipedia.org/wiki/Cryptography#cite_note-19" title=""&gt;&lt;span&gt;&lt;/span&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/sup&gt;&lt;/p&gt; &lt;p&gt;In 1997, it finally became publicly known that asymmetric key cryptography had been invented by &lt;a href="http://en.wikipedia.org/wiki/James_H._Ellis" title="James H. Ellis"&gt;James H. Ellis&lt;/a&gt; at &lt;a href="http://en.wikipedia.org/wiki/GCHQ" title="GCHQ" class="mw-redirect"&gt;GCHQ&lt;/a&gt;, a &lt;a href="http://en.wikipedia.org/wiki/United_Kingdom" title="United Kingdom"&gt;British&lt;/a&gt; intelligence organization, and that, in the early 1970s, both the Diffie-Hellman and RSA algorithms had been previously developed (by &lt;a href="http://en.wikipedia.org/wiki/Malcolm_J._Williamson" title="Malcolm J. Williamson"&gt;Malcolm J. Williamson&lt;/a&gt; and &lt;a href="http://en.wikipedia.org/wiki/Clifford_Cocks" title="Clifford Cocks"&gt;Clifford Cocks&lt;/a&gt;, respectively).&lt;sup id="cite_ref-20" class="reference"&gt;&lt;a href="http://en.wikipedia.org/wiki/Cryptography#cite_note-20" title=""&gt;&lt;span&gt;&lt;/span&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/sup&gt;&lt;/p&gt; &lt;p&gt;The Diffie-Hellman and &lt;a href="http://en.wikipedia.org/wiki/RSA" title="RSA"&gt;RSA&lt;/a&gt; algorithms, in addition to being the first publicly known examples of high quality public-key algorithms, have been among the most widely used. Others include the &lt;a href="http://en.wikipedia.org/wiki/Cramer-Shoup_cryptosystem" title="Cramer-Shoup cryptosystem"&gt;Cramer-Shoup cryptosystem&lt;/a&gt;, &lt;a href="http://en.wikipedia.org/wiki/ElGamal_encryption" title="ElGamal encryption"&gt;ElGamal encryption&lt;/a&gt;, and various &lt;a href="http://en.wikipedia.org/wiki/Elliptic_curve_cryptography" title="Elliptic curve cryptography"&gt;elliptic curve techniques&lt;/a&gt;. See &lt;a href="http://en.wikipedia.org/wiki/Category:Asymmetric-key_cryptosystems" title="Category:Asymmetric-key cryptosystems"&gt;Category:Asymmetric-key cryptosystems&lt;/a&gt;.&lt;/p&gt;  &lt;p&gt;In addition to encryption, public-key cryptography can be used to implement &lt;a href="http://en.wikipedia.org/wiki/Digital_signature" title="Digital signature"&gt;digital signature&lt;/a&gt; schemes. A digital signature is reminiscent of an ordinary &lt;a href="http://en.wikipedia.org/wiki/Signature" title="Signature"&gt;signature&lt;/a&gt;; they both have the characteristic that they are easy for a user to produce, but difficult for anyone else to &lt;a href="http://en.wikipedia.org/wiki/Forgery" title="Forgery"&gt;forge&lt;/a&gt;. Digital signatures can also be permanently tied to the content of the message being signed; they cannot then be 'moved' from one document to another, for any attempt will be detectable. In digital signature schemes, there are two algorithms: one for &lt;i&gt;signing&lt;/i&gt;, in which a secret key is used to process the message (or a hash of the message, or both), and one for &lt;i&gt;verification,&lt;/i&gt; in which the matching public key is used with the message to check the validity of the signature. &lt;a href="http://en.wikipedia.org/wiki/RSA" title="RSA"&gt;RSA&lt;/a&gt; and &lt;a href="http://en.wikipedia.org/wiki/Digital_Signature_Algorithm" title="Digital Signature Algorithm"&gt;DSA&lt;/a&gt; are two of the most popular digital signature schemes. Digital signatures are central to the operation of &lt;a href="http://en.wikipedia.org/wiki/Public_key_infrastructure" title="Public key infrastructure"&gt;public key infrastructures&lt;/a&gt; and many network security schemes (eg, &lt;a href="http://en.wikipedia.org/wiki/Transport_Layer_Security" title="Transport Layer Security"&gt;SSL/TLS&lt;/a&gt;, many &lt;a href="http://en.wikipedia.org/wiki/VPN" title="VPN" class="mw-redirect"&gt;VPNs&lt;/a&gt;, etc).&lt;sup id="cite_ref-schneierbook_14-1" class="reference"&gt;&lt;a href="http://en.wikipedia.org/wiki/Cryptography#cite_note-schneierbook-14" title=""&gt;&lt;span&gt;&lt;/span&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/sup&gt;&lt;/p&gt; &lt;p&gt;Public-key algorithms are most often based on the &lt;a href="http://en.wikipedia.org/wiki/Computational_complexity_theory" title="Computational complexity theory"&gt;computational complexity&lt;/a&gt; of "hard" problems, often from &lt;a href="http://en.wikipedia.org/wiki/Number_theory" title="Number theory"&gt;number theory&lt;/a&gt;. For example, the hardness of RSA is related to the &lt;a href="http://en.wikipedia.org/wiki/Integer_factorization" title="Integer factorization"&gt;integer factorization&lt;/a&gt; problem, while Diffie-Hellman and DSA are related to the &lt;a href="http://en.wikipedia.org/wiki/Discrete_logarithm" title="Discrete logarithm"&gt;discrete logarithm&lt;/a&gt; problem. More recently, &lt;i&gt;&lt;a href="http://en.wikipedia.org/wiki/Elliptic_curve_cryptography" title="Elliptic curve cryptography"&gt;elliptic curve cryptography&lt;/a&gt;&lt;/i&gt; has developed in which security is based on number theoretic problems involving &lt;a href="http://en.wikipedia.org/wiki/Elliptic_curve" title="Elliptic curve"&gt;elliptic curves&lt;/a&gt;. Because of the difficulty of the underlying problems, most public-key algorithms involve operations such as &lt;a href="http://en.wikipedia.org/wiki/Modular_arithmetic" title="Modular arithmetic"&gt;modular&lt;/a&gt; multiplication and exponentiation, which are much more computationally expensive than the techniques used in most block ciphers, especially with typical key sizes. As a result, public-key cryptosystems are commonly &lt;a href="http://en.wikipedia.org/wiki/Hybrid_cryptosystem" title="Hybrid cryptosystem"&gt;hybrid cryptosystems&lt;/a&gt;, in which a fast high-quality symmetric-key encryption algorithm is used for the message itself, while the relevant symmetric key is sent with the message, but encrypted using a public-key algorithm. Similarly, hybrid signature schemes are often used, in which a cryptographic hash function is computed, and only the resulting hash is digitally signed.&lt;sup id="cite_ref-hac_9-4" class="reference"&gt;&lt;a href="http://en.wikipedia.org/wiki/Cryptography#cite_note-hac-9" title=""&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/sup&gt;&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5050165515632655759-2629232909715634904?l=cryphy.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://cryphy.blogspot.com/feeds/2629232909715634904/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://cryphy.blogspot.com/2009/05/public-key-cryptography.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5050165515632655759/posts/default/2629232909715634904'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5050165515632655759/posts/default/2629232909715634904'/><link rel='alternate' type='text/html' href='http://cryphy.blogspot.com/2009/05/public-key-cryptography.html' title='Public-key cryptography'/><author><name>Andry Septia Nurrahman</name><uri>http://www.blogger.com/profile/11738634130176322155</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://4.bp.blogspot.com/_gmV1PiPRWCE/Sckx-3j5xjI/AAAAAAAAABA/oVWoojba14w/S220/Andry+Septia+Nurrahman.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5050165515632655759.post-4603367114968671413</id><published>2009-05-17T06:00:00.000-07:00</published><updated>2009-05-17T06:01:10.213-07:00</updated><title type='text'>Cryptanalysis</title><content type='html'>&lt;div class="thumb tright"&gt; &lt;div class="thumbinner" style="width: 182px;"&gt;&lt;a href="http://en.wikipedia.org/wiki/File:2008-09_Kaiserschloss_Kryptologen.JPG" class="image" title="Monument to Polish cryptologists who supported Allied victory, Poznan"&gt;&lt;img alt="" src="http://upload.wikimedia.org/wikipedia/commons/thumb/a/ad/2008-09_Kaiserschloss_Kryptologen.JPG/180px-2008-09_Kaiserschloss_Kryptologen.JPG" class="thumbimage" width="180" border="0" height="129" /&gt;&lt;/a&gt; &lt;div class="thumbcaption"&gt; &lt;div class="magnify"&gt;&lt;a href="http://en.wikipedia.org/wiki/File:2008-09_Kaiserschloss_Kryptologen.JPG" class="internal" title="Enlarge"&gt;&lt;br /&gt;&lt;/a&gt;&lt;/div&gt; Monument to Polish cryptologists who supported Allied victory, &lt;a href="http://en.wikipedia.org/wiki/Poznan" title="Poznan" class="mw-redirect"&gt;Poznan&lt;/a&gt;&lt;/div&gt; &lt;/div&gt; &lt;/div&gt; &lt;p&gt;The goal of cryptanalysis is to find some weakness or insecurity in a cryptographic scheme, thus permitting its subversion or evasion.&lt;/p&gt; &lt;p&gt;It is a commonly held misconception that every encryption method can be broken. In connection with his WWII work at &lt;a href="http://en.wikipedia.org/wiki/Bell_Labs" title="Bell Labs"&gt;Bell Labs&lt;/a&gt;, &lt;a href="http://en.wikipedia.org/wiki/Claude_Shannon" title="Claude Shannon"&gt;Claude Shannon&lt;/a&gt; proved that the &lt;a href="http://en.wikipedia.org/wiki/One-time_pad" title="One-time pad"&gt;one-time pad&lt;/a&gt; cipher is unbreakable, provided the key material is truly &lt;a href="http://en.wikipedia.org/wiki/Random_numbers" title="Random numbers" class="mw-redirect"&gt;random&lt;/a&gt;, never reused, kept secret from all possible attackers, and of equal or greater length than the message.&lt;sup id="cite_ref-21" class="reference"&gt;&lt;a href="http://en.wikipedia.org/wiki/Cryptography#cite_note-21" title=""&gt;&lt;span&gt;[&lt;/span&gt;22&lt;span&gt;]&lt;/span&gt;&lt;/a&gt;&lt;/sup&gt; Most ciphers, apart from the one-time pad, can be broken with enough computational effort by &lt;a href="http://en.wikipedia.org/wiki/Brute_force_attack" title="Brute force attack"&gt;brute force attack&lt;/a&gt;, but the amount of effort needed may be &lt;a href="http://en.wikipedia.org/wiki/Exponential_time" title="Exponential time"&gt;exponentially&lt;/a&gt; dependent on the key size, as compared to the effort needed to &lt;i&gt;use&lt;/i&gt; the cipher. In such cases, effective security could be achieved if it is proven that the effort required (i.e., "work factor", in Shannon's terms) is beyond the ability of any adversary. This means it must be shown that no efficient method (as opposed to the time-consuming brute force method) can be found to break the cipher. Since no such showing can be made currently, as of today, the one-time-pad remains the only theoretically unbreakable cipher.&lt;/p&gt; &lt;p&gt;There are a wide variety of cryptanalytic attacks, and they can be classified in any of several ways. A common distinction turns on what an attacker knows and what capabilities are available. In a &lt;a href="http://en.wikipedia.org/wiki/Ciphertext-only_attack" title="Ciphertext-only attack"&gt;ciphertext-only attack&lt;/a&gt;, the cryptanalyst has access only to the ciphertext (good modern cryptosystems are usually effectively immune to ciphertext-only attacks). In a &lt;a href="http://en.wikipedia.org/wiki/Known-plaintext_attack" title="Known-plaintext attack"&gt;known-plaintext attack&lt;/a&gt;, the cryptanalyst has access to a ciphertext and its corresponding plaintext (or to many such pairs). In a &lt;a href="http://en.wikipedia.org/wiki/Chosen-plaintext_attack" title="Chosen-plaintext attack"&gt;chosen-plaintext attack&lt;/a&gt;, the cryptanalyst may choose a plaintext and learn its corresponding ciphertext (perhaps many times); an example is &lt;a href="http://en.wikipedia.org/wiki/Gardening_%28cryptanalysis%29" title="Gardening (cryptanalysis)"&gt;gardening&lt;/a&gt;, used by &lt;a href="http://en.wikipedia.org/wiki/Bletchley_Park" title="Bletchley Park"&gt;the British&lt;/a&gt; during WWII. Finally, in a &lt;a href="http://en.wikipedia.org/wiki/Chosen-ciphertext_attack" title="Chosen-ciphertext attack"&gt;chosen-ciphertext attack&lt;/a&gt;, the cryptanalyst may be able to &lt;i&gt;choose&lt;/i&gt; ciphertexts and learn their corresponding plaintexts.&lt;sup id="cite_ref-hac_9-5" class="reference"&gt;&lt;a href="http://en.wikipedia.org/wiki/Cryptography#cite_note-hac-9" title=""&gt;&lt;span&gt;&lt;/span&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/sup&gt; Also important, often overwhelmingly so, are mistakes (generally in the design or use of one of the &lt;a href="http://en.wikipedia.org/wiki/Cryptographic_protocol" title="Cryptographic protocol"&gt;protocols&lt;/a&gt; involved; see &lt;a href="http://en.wikipedia.org/wiki/Cryptanalysis_of_the_Enigma" title="Cryptanalysis of the Enigma"&gt;Cryptanalysis of the Enigma&lt;/a&gt; for some historical examples of this).&lt;/p&gt; &lt;p&gt;Cryptanalysis of symmetric-key ciphers typically involves looking for attacks against the block ciphers or stream ciphers that are more efficient than any attack that could be against a perfect cipher. For example, a simple brute force attack against DES requires one known plaintext and 2&lt;sup&gt;55&lt;/sup&gt; decryptions, trying approximately half of the possible keys, to reach a point at which chances are better than even the key sought will have been found. But this may not be enough assurance; a &lt;a href="http://en.wikipedia.org/wiki/Linear_cryptanalysis" title="Linear cryptanalysis"&gt;linear cryptanalysis&lt;/a&gt; attack against DES requires 2&lt;sup&gt;43&lt;/sup&gt; known plaintexts and approximately 2&lt;sup&gt;43&lt;/sup&gt; DES operations.&lt;sup id="cite_ref-junod_22-0" class="reference"&gt;&lt;a href="http://en.wikipedia.org/wiki/Cryptography#cite_note-junod-22" title=""&gt;&lt;span&gt;&lt;/span&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/sup&gt; This is a considerable improvement on brute force attacks.&lt;/p&gt; &lt;p&gt;Public-key algorithms are based on the computational difficulty of various problems. The most famous of these is &lt;a href="http://en.wikipedia.org/wiki/Integer_factorization" title="Integer factorization"&gt;integer factorization&lt;/a&gt; (e.g., the RSA algorithm is based on a problem related to integer factoring), but the &lt;a href="http://en.wikipedia.org/wiki/Discrete_logarithm" title="Discrete logarithm"&gt;discrete logarithm&lt;/a&gt; problem is also important. Much public-key cryptanalysis concerns numerical algorithms for solving these computational problems, or some of them, efficiently (ie, in a practical time). For instance, the best known algorithms for solving the &lt;a href="http://en.wikipedia.org/wiki/Elliptic_curve_cryptography" title="Elliptic curve cryptography"&gt;elliptic curve-based&lt;/a&gt; version of discrete logarithm are much more time-consuming than the best known algorithms for factoring, at least for problems of more or less equivalent size. Thus, other things being equal, to achieve an equivalent strength of attack resistance, factoring-based encryption techniques must use larger keys than elliptic curve techniques. For this reason, public-key cryptosystems based on elliptic curves have become popular since their invention in the mid-1990s.&lt;/p&gt; &lt;p&gt;While pure cryptanalysis uses weaknesses in the algorithms themselves, other attacks on cryptosystems are based on actual use of the algorithms in real devices, and are called &lt;i&gt;&lt;a href="http://en.wikipedia.org/wiki/Side-channel_attack" title="Side-channel attack"&gt;side-channel attacks&lt;/a&gt;&lt;/i&gt;. If a cryptanalyst has access to, say, the amount of time the device took to encrypt a number of plaintexts or report an error in a password or PIN character, he may be able to use a &lt;a href="http://en.wikipedia.org/wiki/Timing_attack" title="Timing attack"&gt;timing attack&lt;/a&gt; to break a cipher that is otherwise resistant to analysis. An attacker might also study the pattern and length of messages to derive valuable information; this is known as &lt;a href="http://en.wikipedia.org/wiki/Traffic_analysis" title="Traffic analysis"&gt;traffic analysis&lt;/a&gt;,&lt;sup id="cite_ref-SWT_23-0" class="reference"&gt;&lt;a href="http://en.wikipedia.org/wiki/Cryptography#cite_note-SWT-23" title=""&gt;&lt;span&gt;&lt;/span&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/sup&gt; and can be quite useful to an alert adversary. Poor administration of a cryptosystem, such as permitting too short keys, will make any system vulnerable, regardless of other virtues. And, of course, &lt;a href="http://en.wikipedia.org/wiki/Social_engineering_%28security%29" title="Social engineering (security)"&gt;social engineering&lt;/a&gt;, and other attacks against the personnel who work with cryptosystems or the messages they handle (e.g., &lt;a href="http://en.wikipedia.org/wiki/Bribery" title="Bribery"&gt;bribery&lt;/a&gt;, &lt;a href="http://en.wikipedia.org/wiki/Extortion" title="Extortion"&gt;extortion&lt;/a&gt;, &lt;a href="http://en.wikipedia.org/wiki/Blackmail" title="Blackmail"&gt;blackmail&lt;/a&gt;, &lt;a href="http://en.wikipedia.org/wiki/Espionage" title="Espionage"&gt;espionage&lt;/a&gt;, &lt;a href="http://en.wikipedia.org/wiki/Torture" title="Torture"&gt;torture&lt;/a&gt;, ...) may be the most productive attacks of all.&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5050165515632655759-4603367114968671413?l=cryphy.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://cryphy.blogspot.com/feeds/4603367114968671413/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://cryphy.blogspot.com/2009/05/cryptanalysis.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5050165515632655759/posts/default/4603367114968671413'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5050165515632655759/posts/default/4603367114968671413'/><link rel='alternate' type='text/html' href='http://cryphy.blogspot.com/2009/05/cryptanalysis.html' title='Cryptanalysis'/><author><name>Andry Septia Nurrahman</name><uri>http://www.blogger.com/profile/11738634130176322155</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://4.bp.blogspot.com/_gmV1PiPRWCE/Sckx-3j5xjI/AAAAAAAAABA/oVWoojba14w/S220/Andry+Septia+Nurrahman.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5050165515632655759.post-6918242638406015365</id><published>2009-05-17T05:59:00.000-07:00</published><updated>2009-05-17T06:00:10.142-07:00</updated><title type='text'>Cryptographic primitives</title><content type='html'>&lt;p&gt;Much of the theoretical work in cryptography concerns &lt;a href="http://en.wikipedia.org/wiki/Cryptographic_primitive" title="Cryptographic primitive"&gt;cryptographic &lt;i&gt;primitives&lt;/i&gt;&lt;/a&gt; — algorithms with basic cryptographic properties — and their relationship to other cryptographic problems. More complicated cryptographic tools are then built from these basic primitives. These primitives provide fundamental properties, which are used to develop more complex tools called &lt;i&gt;&lt;a href="http://en.wikipedia.org/wiki/Cryptography#Cryptosystems" title="Cryptography"&gt;cryptosystems&lt;/a&gt;&lt;/i&gt; or &lt;i&gt;cryptographic protocols&lt;/i&gt;, which guarantee one or more high-level security properties. Note however, that the distinction between cryptographic &lt;i&gt;primitives&lt;/i&gt; and cryptosystems, is quite arbitrary; for example, the &lt;a href="http://en.wikipedia.org/wiki/RSA" title="RSA"&gt;RSA&lt;/a&gt; algorithm is sometimes considered a cryptosystem, and sometimes a primitive. Typical examples of cryptographic primitives include &lt;a href="http://en.wikipedia.org/wiki/Pseudorandom_function" title="Pseudorandom function" class="mw-redirect"&gt;pseudorandom functions&lt;/a&gt;, &lt;a href="http://en.wikipedia.org/wiki/One-way_function" title="One-way function"&gt;one-way functions&lt;/a&gt;, etc.&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5050165515632655759-6918242638406015365?l=cryphy.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://cryphy.blogspot.com/feeds/6918242638406015365/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://cryphy.blogspot.com/2009/05/cryptographic-primitives.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5050165515632655759/posts/default/6918242638406015365'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5050165515632655759/posts/default/6918242638406015365'/><link rel='alternate' type='text/html' href='http://cryphy.blogspot.com/2009/05/cryptographic-primitives.html' title='Cryptographic primitives'/><author><name>Andry Septia Nurrahman</name><uri>http://www.blogger.com/profile/11738634130176322155</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://4.bp.blogspot.com/_gmV1PiPRWCE/Sckx-3j5xjI/AAAAAAAAABA/oVWoojba14w/S220/Andry+Septia+Nurrahman.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5050165515632655759.post-5069275897116063460</id><published>2009-05-17T05:58:00.000-07:00</published><updated>2009-05-17T05:59:33.653-07:00</updated><title type='text'>Cryptosystems</title><content type='html'>&lt;p&gt;One or more cryptographic primitives are often used to develop a more complex algorithm, called a cryptographic system, or &lt;i&gt;cryptosystem&lt;/i&gt;. Cryptosystems (e.g. &lt;a href="http://en.wikipedia.org/wiki/ElGamal_encryption" title="ElGamal encryption"&gt;El-Gamal encryption&lt;/a&gt;) are designed to provide particular functionality (e.g. public key encryption) while guaranteeing certain security properties (e.g. &lt;a href="http://en.wikipedia.org/wiki/CPA" title="CPA"&gt;CPA&lt;/a&gt; security in the &lt;a href="http://en.wikipedia.org/wiki/Random_oracle_model" title="Random oracle model" class="mw-redirect"&gt;random oracle model&lt;/a&gt;). Cryptosystems use the properties of the underlying cryptographic primitives to support the system's security properties. Of course, as the distinction between primitives and cryptosystems is somewhat arbitrary, a sophisticated cryptosystem can be derived from a combination of several more primitive cryptosystems. In many cases, the cryptosystem's structure involves back and forth communication among two or more parties in space (e.g., between the sender of a secure message and its receiver) or across time (e.g., cryptographically protected &lt;a href="http://en.wikipedia.org/wiki/Backup" title="Backup"&gt;backup&lt;/a&gt; data). Such cryptosystems are sometimes called &lt;i&gt;&lt;a href="http://en.wikipedia.org/wiki/Cryptographic_protocol" title="Cryptographic protocol"&gt;cryptographic protocols&lt;/a&gt;&lt;/i&gt;.&lt;/p&gt; &lt;p&gt;Some widely known cryptosystems include &lt;a href="http://en.wikipedia.org/wiki/RSA" title="RSA"&gt;RSA encryption&lt;/a&gt;, &lt;a href="http://en.wikipedia.org/wiki/Schnorr_signature" title="Schnorr signature"&gt;Schnorr signature&lt;/a&gt;, &lt;a href="http://en.wikipedia.org/wiki/ElGamal_encryption" title="ElGamal encryption"&gt;El-Gamal encryption&lt;/a&gt;, &lt;a href="http://en.wikipedia.org/wiki/PGP" title="PGP"&gt;PGP&lt;/a&gt;, etc. More complex cryptosystems include &lt;a href="http://en.wikipedia.org/wiki/Electronic_cash" title="Electronic cash" class="mw-redirect"&gt;electronic cash&lt;/a&gt;&lt;sup id="cite_ref-24" class="reference"&gt;&lt;a href="http://en.wikipedia.org/wiki/Cryptography#cite_note-24" title=""&gt;&lt;span&gt;&lt;/span&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/sup&gt; systems, &lt;a href="http://en.wikipedia.org/wiki/Signcryption" title="Signcryption"&gt;signcryption&lt;/a&gt; systems, etc. Some more 'theoretical' (i.e., less practical) cryptosystems include &lt;a href="http://en.wikipedia.org/wiki/Interactive_proof_system" title="Interactive proof system"&gt;interactive proof systems&lt;/a&gt;,&lt;sup id="cite_ref-25" class="reference"&gt;&lt;a href="http://en.wikipedia.org/wiki/Cryptography#cite_note-25" title=""&gt;&lt;span&gt;&lt;/span&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/sup&gt; (like &lt;a href="http://en.wikipedia.org/wiki/Zero-knowledge_proof" title="Zero-knowledge proof"&gt;zero-knowledge proofs&lt;/a&gt;,&lt;sup id="cite_ref-26" class="reference"&gt;&lt;a href="http://en.wikipedia.org/wiki/Cryptography#cite_note-26" title=""&gt;&lt;span&gt;&lt;/span&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/sup&gt;), systems for &lt;a href="http://en.wikipedia.org/wiki/Secret_sharing" title="Secret sharing"&gt;secret sharing&lt;/a&gt;&lt;sup id="cite_ref-27" class="reference"&gt;&lt;a href="http://en.wikipedia.org/wiki/Cryptography#cite_note-27" title=""&gt;&lt;span&gt;&lt;/span&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/sup&gt;&lt;sup id="cite_ref-28" class="reference"&gt;&lt;a href="http://en.wikipedia.org/wiki/Cryptography#cite_note-28" title=""&gt;&lt;span&gt;&lt;/span&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/sup&gt;, etc.&lt;/p&gt; &lt;p&gt;Until recently, most security properties of most cryptosystems were demonstrated using empirical techniques, or using ad hoc reasoning. Recently, there has been considerable effort to develop formal techniques for establishing the security of cryptosystems; this has been generally called &lt;i&gt;&lt;a href="http://en.wikipedia.org/wiki/Provable_security" title="Provable security"&gt;provable security&lt;/a&gt;&lt;/i&gt;. The general idea of provable security is to give arguments about the computational difficulty needed to compromise some security aspect of the cryptosystem (ie, to any adversary).&lt;/p&gt; &lt;p&gt;The study of how best to implement and integrate cryptography in software applications is itself a distinct field, see: &lt;a href="http://en.wikipedia.org/wiki/Cryptographic_engineering" title="Cryptographic engineering"&gt;cryptographic engineering&lt;/a&gt; and &lt;a href="http://en.wikipedia.org/wiki/Security_engineering" title="Security engineering"&gt;security engineering&lt;/a&gt;.&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5050165515632655759-5069275897116063460?l=cryphy.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://cryphy.blogspot.com/feeds/5069275897116063460/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://cryphy.blogspot.com/2009/05/cryptosystems.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5050165515632655759/posts/default/5069275897116063460'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5050165515632655759/posts/default/5069275897116063460'/><link rel='alternate' type='text/html' href='http://cryphy.blogspot.com/2009/05/cryptosystems.html' title='Cryptosystems'/><author><name>Andry Septia Nurrahman</name><uri>http://www.blogger.com/profile/11738634130176322155</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://4.bp.blogspot.com/_gmV1PiPRWCE/Sckx-3j5xjI/AAAAAAAAABA/oVWoojba14w/S220/Andry+Septia+Nurrahman.jpg'/></author><thr:total>0</thr:total></entry></feed>
