{"id":30940,"date":"2017-04-10T10:10:06","date_gmt":"2017-04-10T14:10:06","guid":{"rendered":"http:\/\/www.opensource.im\/?p=30940"},"modified":"2017-04-10T10:10:06","modified_gmt":"2017-04-10T14:10:06","slug":"introduction-to-encryption-cryptography-articsoft-pgp","status":"publish","type":"post","link":"https:\/\/euvolution.com\/open-source-convergence\/cryptography\/introduction-to-encryption-cryptography-articsoft-pgp.php","title":{"rendered":"Introduction to Encryption &amp; Cryptography &#8211; ArticSoft PGP"},"content":{"rendered":"<p><p>    Make any enquiry about computer security, and you will almost    immediately fall over the terms cryptography and encryption    (and also decryption), but what exactly is meant by this?  <\/p>\n<p>    The dictionary (in my case the Oxford English), defines    cryptography as hidden writing.  It has been around for a    very long time.  The Ancient Egyptians, the Arabs and the    Romans developed their own encryption systems.  <\/p>\n<p>    Cryptography is used whenever someone want to send a secret    message to someone else, in a situation where anyone might be    able to get hold of the message and read it.  It was    often used by generals to send orders to their armies, or to    send messages between lovers.  The most famous encryption    machine invented was the Enigma, used in the Second World War    to send military messages.  (Several books and at least    one film have featured Enigma encryption.)  <\/p>\n<p>    One of the best examples of early cryptography is the Caesar    cipher, named after Julius Caesar because he is thought to have    used it even if he didn't actually invent it.  <\/p>\n<p>    It works like this.  Take a piece of paper and write    along the top edge the alphabet.  Take another piece of    paper and do the same thing. You should then have two lines of    letters like this:  <\/p>\n<p>    Now write your message.  SEND MONEY TONIGHT  <\/p>\n<p>    Move one of your pieces of paper along to the right one or more    letters so that they no longer line up. That should look like    this:  <\/p>\n<p>    Now every time you see a letter of your message in the top    line, write down instead the letter on the bottom line.  <\/p>\n<p>    SEND MONEY TONIGHT becomes  <\/p>\n<p>    QCLB KMLCW RMLGEFR  <\/p>\n<p>    What you have done is performed a cryptographic transformation    (encrypted) your message.  To do it you have used an    algorithm (for each letter in your message, move a number of    locations on in the alphabet and write that one down instead)    and an encryption key, in this case the value 2 because    we moved A two places forwards on the bottom line.  <\/p>\n<p>    All we have to do now is make sure that the person receiving    our message knows the encryption key and the algorithm.     As long as they know it's the Caesar cipher and the encryption    key is 2 they can put their lower line two places to the right,    and by taking each letter of the message and writing down the    letter immediately above it, they can re-create the original    message.  <\/p>\n<p>    However, if you think about it, the Caesar cipher wasn't all    that brilliant. After all, it didn't have many encryption keys.    A value of zero meant that you didn't actually encrypt    anything, as did 26 because it also moved A under A. An enemy,    knowing that was the algorithm, therefore only had to try a    relatively small number of encryption keys before finding    yours. By just trial and error he could run quickly through all    25 possible encryption keys on just the first word. As soon as    he finds a real word the system is broken.  <\/p>\n<p>    Until we started using computers, these ciphers, with very much    better algorithms and much more complex encryption keys were    the order of the day. However, the basic approach to this way    of creating secret messages has not really changed. So now you    understand the basic method used in any symmetric cipher.  <\/p>\n<p>    Taking our example above, the operation is as follows:  <\/p>\n<p>    now you have an encrypted message (ciphertext). The recipient    then:  <\/p>\n<p>    Now they have the original message back (plaintext).     This is called a symmetric cipher because you use the same    algorithm and the same key to carry out both encryption and    decryption.  There are other types of cipher systems but    they are covered in other encryption white papers.  <\/p>\n<p>    The quality of the algorithm and encryption key combination (as    we saw with the Caesar cipher, making the key bigger on its own    did not actually make the encryption any stronger at all) were    the factors that made the strength of the system. However,    until there was some automation you could not use really    complex methods because it simply took too long to encrypt and    decrypt messages.  <\/p>\n<p>    Thanks to computers we are now able to do these things much    faster and better than Caesar, or, indeed Enigma. There    are many encryption algorithms available far harder to break    than the Caesar cipher.  These encryption    algorithms have strange names, such as Rijndahl,    Blowfish, RC2, RC4, Triple DES, CAST.  They have key    sizes that are enormous by comparison to our Caesar cipher.  <\/p>\n<p>    Of course, just as computers are able to operate such powerful    encryption algorithms, computers can be harnessed to break    them.  The encryption algorithm DES (Data Encryption    Standard) in use for many years to protect banking transactions    was considered very strong until the University of Cambridge    published a design for a custom machine to break the cipher in    minutes, for a manufacturing cost of under $1 million.     Fortunately, the encryption algorithms mentioned above are    still considered effective.  <\/p>\n<p>    There are many books available describing encryption and    cryptography, either as a history or as a mathematical system    or as a guide to use and implementation.  The following    is a very short list of books appealing to each group.  <\/p>\n<p><!-- Auto Generated --><\/p>\n<p>Originally posted here:<br \/>\n<a target=\"_blank\" href=\"http:\/\/www.articsoftpgp.com\/encryption.htm\" title=\"Introduction to Encryption &amp; Cryptography - ArticSoft PGP\">Introduction to Encryption &amp; Cryptography - ArticSoft PGP<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p> Make any enquiry about computer security, and you will almost immediately fall over the terms cryptography and encryption (and also decryption), but what exactly is meant by this? The dictionary (in my case the Oxford English), defines cryptography as hidden writing. It has been around for a very long time<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1600],"tags":[],"class_list":["post-30940","post","type-post","status-publish","format-standard","hentry","category-cryptography"],"_links":{"self":[{"href":"https:\/\/euvolution.com\/open-source-convergence\/wp-json\/wp\/v2\/posts\/30940"}],"collection":[{"href":"https:\/\/euvolution.com\/open-source-convergence\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/euvolution.com\/open-source-convergence\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/euvolution.com\/open-source-convergence\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/euvolution.com\/open-source-convergence\/wp-json\/wp\/v2\/comments?post=30940"}],"version-history":[{"count":0,"href":"https:\/\/euvolution.com\/open-source-convergence\/wp-json\/wp\/v2\/posts\/30940\/revisions"}],"wp:attachment":[{"href":"https:\/\/euvolution.com\/open-source-convergence\/wp-json\/wp\/v2\/media?parent=30940"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/euvolution.com\/open-source-convergence\/wp-json\/wp\/v2\/categories?post=30940"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/euvolution.com\/open-source-convergence\/wp-json\/wp\/v2\/tags?post=30940"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}