# what is the defference between hashing and encryption

Nov 11th, 2009

dear expers,

i'd like to know the defference between the hashing functions and encryption functions, which one performed first on the data, because i've read some of the protocols that perform hashing and others that perform encryption and very confused by them, thanks alot for your reply and help, i appreciate your urgent reply. thanks...

Overall Rating: 0 (0 ratings)

## Replies

labibmakar Thu, 11/12/2009 - 08:05

dear collin clark,

thanks alot for your reply, but when i'm reading the topic ( Understanding How RSA Works) i've encountered some math i didn't understood like this paragraph: We begin by selecting two distinct large random prime numbers p and q. Next we compute

n=pq, where n is used as a modulus for both the public and private keys. Then we compute

the totient using the formula Ï(n)=(p-1)(q-1).

Next we choose an integer e such that 1

1 (coprime). The public key exponent that is released is e. You compute d to satisfy the

congruence relation as de=1(mod Ï(n)). The private key exponent is d.

The public key consists of the modulus n and the public (or encryption) exponent e. The

private key consists of the modules n and the private (or decryption) exponent d that must

always remain secret. would you mind please recommending me some materials explain to me these formulas or math principals of these calculations, thanks alot for you help

Panos Kampanakis Thu, 11/12/2009 - 07:35

You can think hashing as a digest of the message. It is a short digest using a key. More than one messages can potentially give out the same hash output.

Encryption on the other hand (publick key or shared key) is a complete coding of the message. It completely hides and obfuscates the messages and only knowing the keys can get you back the original one.

Encryption is used to hide the mesaage whereas hashing is used to summarize and prove that the guy the claims to have sent it indeed had it and knows the hash.

I hope it is a little more intuitive now.

PK

## Trending Topics - Security Subjects

 Cisco IPSEC VPN ports Cisco tunnel plus IPSEC policy invalidated proposal Cisco Mini usb console driver Reason 440 driver failure Cisco wireless G routers a security exception error Jabber & webcam macbook airs