Difference Between Encryption and Hashing

Encryption and Hashing are methods from Cryptography practices. For more details about Cryptography visit the Wikipedia page link.

What is Encryption?

Encryption is the process of encoding or scrambling data using a secret code so that only parties with right key can decode/unscramble it.

Common encryption techniques are:

Asymmetric Encryption: Also known as Public Key encryption. In this method one encrypts and other key decrypts. Real time example: SSL/TLS.

Algorithms:

  • RSA (Rivest–Shamir–Adleman)
  • DSA (Digital Signature Algorithm)

Symmetric Encryption:Symmetric encryption is the oldest and best-known technique. A secret key, which can be a number, a word, or just a string of random letters, is applied to the text of a message to change the content in a particular way.

Algorithms:

  • DES (Data Encryption Standard)
  • AES (Advanced Encryption Standard)

What is Hashing?

Hashing is the transformation of a string of characters into a usually shorter fixed-length value. It is deterministic so the same message always results in the same hash. It’s a one way technique. Applications: Password verification, Fingerprinting, etc..

Algorithms:

  • MD5
  • SHA-1
  • SHA-2
  • SHA-3

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

Create a website or blog at WordPress.com

Up ↑

<span>%d</span> bloggers like this: