ASE Labs
Welcome Guest. Please register or log in now. There are 32 people online (0 Friends).
  • Home
  • Articles
  • News
  • Forum
  • Register/Login
You are at ASE Labs » Articles » Reviews Index » Cryptography: Part 1 - Why Cryptography?

Cryptography: Part 1 - Why Cryptography?

Author
Steven Susman
Posted
August 8, 2005
Views
13360
Cryptography: Part 1 - Why Cryptography?
Cryptography, the science of analyzing and deciphering codes and ciphers and cryptograms. This is the introduction of a multi-article discussion on encrpytion.
Tags Security

Page 1: Part One: The Obvious and (Not So Obvious) Purpose of Cryptography

<b>Part One: The Obvious and (Not So Obvious) Purpose of Cryptography</b>

In part one of this series I will address the question of why is cryptography needed? The first reason is obvious. We want to keep a message confidential. However, there are two other less obvious reasons for encryption. Using encryption, it becomes fairly easy to verify the integrity of a message and make sure that it has not been either accidentally or purposefully altered. Secondly, with asymmetric key systems it becomes possible to establish non-repudiation-the undeniable fact that you, and only you alone, have sent me a specific message.

There are three basic ways that a message can be encrypted.

The first is to use a hash. A hash takes a variable length string and outputs a fixed length message digest. A good hash algorithm should never output the same digest for different inputs. Common hash algorithms used today are SHA and MD5. SHA is in fact the basis for SSL, or secure sockets layer developed by Netscape for the exchange of encrypted Web site data. Hashs are also used in many instances (especially older and/or simpler systems) to verify a password where a user password is stored as a hash of the password. When a user then attempts to authenticate, the algorithm computes the hash which is compared to the stored value. If a match occurs, the password is correct. If not, the password is wrong. This allows the hash to be sent or stored in clear text without compromising the original password. Hashs are often used to determine the integrity of a file or message by computing a value when the message is created. Then, when the message is received the integrity can verified by running the algorithm again and making sure the hash values match.

The second type of encryption is to use a shared secret or symmetrical encryption. For example, if both you and I know the encryption key is “+3” we could shift an “a” to “d” , “b” to “e” etc. This is a very simple example, but obviously much, much, more complex keys and encryption can be used. The problem is, how do we exchange the shared secret? If key exchange can be done securely or in advance, then symmetric encryption is fast and powerful. Otherwise, we need to consider other tools to allow us to distribute the keys.

One way is to use a unique method developed by Diffie-Hellman that takes advantage of some rather unique mathematical functions to allow two persons to arrive at a shared secret over an insecure media.

Another method of key exchange is to use asymmetric key encryption which consists of two keys. A private key which is only held by one entity and a public key which is available to anyone. Messages can be encrypted or decrypted by either key, but only in a one way process. For example, I can use your public key to encrypt a message to you, but your private key is required to decode it. Likewise, if I send you a message and encrypt it with my private key and then your public key, only you may read it after first decrypting it with your private key and my public key. Since only you have your private key, you know that no one other than you can have read the message. Since I used my private key to encrypt the message, only I can have sent it. Hence, I have accomplished confidentiality and non-repudiation.

RSA is a common public key system. One disadvantage of asymmetric key systems is the infrastructure required to distribute and verify the public keys. Someone needs to vouch that a public key is being provided from the person or organization that it is being claimed and for example in the case of a certificate, that it is valid.
Many companies take advantage of corporations like Verisign or Thawte to help manage, verify and distribute the keys involved in a public key infrastructure.

So, why not use asymmetric cryptography for all encryption? The reason is that it is highly resource demanding. Most systems today will use an asymmetric system for the initial and periodic key exchange and then use the computationally less demanding symmetric encryption techniques such as Triple DES, Blowfish or AES.

In the next part of the series we will look at the history of the popular symmetric algorithms, how they are used today and the future of shared key encryption.

[Editor's Note: A bit about the author. Steve is head of IT at <a href="http://www.supremealarm.com">Supreme Security</a> where he has over twenty years of experience with computers and security. He also holds many different certifications inculding CCNA, Security+, MCSE, and Network+ (and more).]
 
Page 1
View As Single Page Print This Page Print Entire Article
Related Articles
  • Imation Defender F200 Biometric Flash Drive
  • AirLink101 SkyIPCam777W
  • U.are.U Personal

Title

Medium Image View Large
Login
Welcome Guest. Please register or log in now.
Forgot your password?
Navigation
  • Home
  • Articles
  • News
  • Register/Login
  • Shopping
  • ASE Forums
  • Anime Threads
  • HardwareLogic
  • ASE Adnet
Latest News
  • Welcome to the new server
  • Gmail Gets Optional Preview Pane
  • HBO Go on Consoles
  • HP Touchpad Update
  • Happy System Administrator Day!
  • Apple Releases OS X 10.7 Lion
  • More Android Apps Found to be Malware
  • This Weeks News
  • Happy Birthday USA!
  • Windows Phone Gets Angry Birds, Custom Rings Coming To Mango
Latest Articles
  • Sapphire Edge HD4 Mini PC
  • Logitech G710+ Mechanical Gaming Keyboard
  • EnerPlex Kickr IV And Jumpr Solar Power Pack
  • Kingston Wi-Drive
  • Kingston SDX10V/128GB SDXC Memory
  • In-Win K1 All In One Convertible Case
  • Kingston MobileLite G3 USB3 SDXC Card Reader
  • Synology DS712+ Network Application Server
  • Rapoo Wireless Touchpad Keyboard E9080
  • Netgear NeoTV NTV200 Streaming Player
Latest Topics
  • Pokemon: The Ongaku Region
  • Random Fact of the Day
  • What are you listening to now?
  • P A R A S Y T E [A Samurai's Story]
  • Christina McHale energy sapped
  • Yoon Hee had no choice but to live
  • At first McHale thought it was a sinus
  • Google I/O 2013: an Android developer's preview
  • We Are C A R E E R S [64th Hunger Games!]
  • Many children accidentally end up touching
  • She was born in a village near North
  • Lets talk
  • Review Nokia Lumia 800 V.S. iPhone 4S: Convert DVD/Video to mobile phone devices.
  • You're a Fanfiction?!
  • hello every one
Advertisement
Advertisement
Affiliate Reviews
  • QEMU 1.5 Supports VGA Passthrough, Better USB 3.0 at Phoronix
  • Handbrake 0.9.9 Supports OpenCL Offloading at Phoronix
  • Understanding Email Bounce Messages at Hardware Secrets
  • Freedreno Gallium3D Now Banging The Adreno A3XX at Phoronix
  • Futuremark Announces PCMark 8 at Hardware Secrets
  • ASRock A-Style Motherboards Offer 802.11ac and Bluetooth 4.0 at Hardware Secrets
  • Cooltek Coolcube Maxi Black Review at techPowerUp!
  • Jolla Announces Their First Phone at Phoronix
  • G.Skill RipjawsX F3-2133C9D-16GXH at Bjorn3d.com
  • The Cost Of Ubuntu Disk Encryption at Phoronix
  • Thermaltake Non-Interference Cooler NiC F4 CPU Cooler Review at Pro-Clockers
  • Kingston MobileLite Wireless Review at Pro-Clockers
  • Mageia 3 Released, Still Using Legacy GRUB at Phoronix
  • NetBSD 6.1 Brings In More Features at Phoronix
Press Release
  • Toshiba to Start Mass Production of Next Generation NAND Flash Memory
  • =?ISO-8859-1?Q?zNitro_Presents_Innovative_and_H?= =?ISO-8859-1?Q?igh-Quality_Electronic_Device_Pro?= =?ISO-8859-1?Q?tection,_Including_New_and_Unique?= =?ISO-8859-1?Q?_Retract_iPad=AE_Case,_at_CTIA_20
  • Optimize Automated Test Systems With NI PXI Programmable Power Supplies
  • MotionsTek Announces Crowdfunding Campaign in Support of Tag*it, an Innovative Tracking Technology for Smartphones and Other Small Valuables
  • =?ISO-8859-1?Q?Ceragon_Expands_FibeAir=AE_IP-20_Product_Series_with_th?= =?ISO-8859-1?Q?e_Most_Compact_High_Power_Solutions_for_North_America?=
  • LG Collaborates With Pretty Lights On 'Around The Block' Music Video
  • Sony Launches 4K Ultra HD TV Marketing Campaign
  • Syncsort's New Data Integration Solutions Provide a Smarter Approach to Hadoop ETL
  • Ventev Mobile Accessories Debuts Unique iPhone 5 Battery Cases and a Portable Power Source With Rapid Charging Capability at CTIA 2013
  • Xilinx Achieves PCI Express Compliance Across its All Programmable 28nm Devices
Home - ASE Publishing - About Us
© 2010 Aron Schatz (ASE Publishing) [Queries: 18 (8 Cached)] [Rows: 292 Fetched: 35] [Page Generation time: 0.38110399246216]