Encryption

From Hackepedia
Revision as of 01:23, 1 February 2008 by Pbug (talk | contribs)
Jump to navigationJump to search

Encryption is the art of obfuscating information so that a third party cannot read its contents.

Meet Alice. (person A)
Meet Bob.  (person B).

Alice likes Bob and wants to write Bob a loveletter.

Meet Eve. (the person that eavesdrops).
Meet Mallory (the person that likes to destroy things).

Eve and Mallory want to know what Alice writes to Bob. Mallory wants to go even further and anger Alice and Bob.

There is different types of encryption, symmetric and assymetric. Former one requires a key that is well known on both ends between Alice and Bob. If Bob doesn't have the secret key, he and Alice can use public encryption (assymetric) to work out a new key in a secure fashion. Supposedly Eve cannot determine the new key. But Mallory can still get in the way by disrupting communication. At this point encryption won't help either and noone is any smarter about what the key is that Alice holds, not Bob, not Eve and especially not Mallory.

The encrypted text in encryption is called ciphertext. In plain text it's called plaintext.


Symmetric Encryption

There is several private key encryptions such as

DES
3DES
AES
Blowfish

Most of these are considered BLOCK ciphers because, as in Blowfish's case you can only encrypt a block of 8 bytes at a time.

Stream ciphers are opposite and encrypt a bit or byte at a time.

RC4 - supposedly is a stream cipher.

Private key or Symmetric encryption needs Alice and Bob to have the same key, perhaps negotiated last thursday when they had lunch together down at the Plaza, we saw Alice write the key on Bob's napkin.


Asymmetric Encryption

Diffie-Hellman exchange
RSA