what is the diffrence between hashing and encryption

+1 vote
This Question has been running in my mind for a very long time. Can anyone please answer

1. What makes Hash different from encryption

2. When to use what?
Jun 25, 2019 by shubham
• 7,340 points
204 views

1 answer to this question.

+1 vote
In hash, you can't get the actual data back

For Example: If your data is hashed, then you can't get the actual data back, so to compare if the data which you have now is same as the data which is already present, then hash the present data and compare only the hashed data, since you can't retrieve the original data.

  Original data: SUNSHINE

hashed data 1: q345gjseiwueiwjr39

Present data: SUNSHINE

Hashed data 2: q345gjseiwueiwjr39

Since hashed data 1 == hashed data 2 it is equal

Where in the case of Encryption, you can get the data back

For example: You will have some encryption algorithm to encrypt the data so that your data is protected

Data: SUNSHINE

Encryption:ENIHSNUS

Use case:

For storing the password in a database or somewhere where you think the data should not be retrieved by anyone go for hashing

But if you want to retrieve your data like Card No or something which have to be protected but retrieved back then go for encryption.
answered Jun 25, 2019 by sunshine
• 1,300 points

Related Questions

0 votes
1 answer

What is the difference between hashing and encryption process?

Hashing and encryption are same but not ...READ MORE

answered Dec 4, 2018 in Blockchain by Omkar
• 69,220 points
1,894 views
0 votes
1 answer

What is the difference between hashing and masking?

Hashing and masking are two distinct techniques ...READ MORE

answered Jan 10 in Cyber Security & Ethical Hacking by CaLLmeDaDDY
• 16,200 points
55 views
0 votes
10 answers

What is the difference between Mongodb and Hadoop?

MongoDB is a NoSQL database, whereas Hadoop is ...READ MORE

answered Jun 20, 2018 in Big Data Hadoop by jenny_code
12,392 views
0 votes
1 answer
0 votes
1 answer
0 votes
1 answer
0 votes
1 answer

What is the difference between thoughtworks.selenium and openqa.selenium selenium?

thoughtworks.selenium is the original Selenium (aka Selenium 1, ...READ MORE

answered Apr 13, 2018 in Selenium by king_kenny
• 3,710 points
3,066 views
0 votes
1 answer

What is the difference between if() and require() statement in solidity??

If() and require() have separate functions and ...READ MORE

answered Apr 18, 2018 in Blockchain by Shashank
• 10,400 points
5,145 views
0 votes
2 answers
0 votes
2 answers

What is the difference between implements and extends?

Extends : This is used to get attributes ...READ MORE

answered Aug 3, 2018 in Java by samarth295
• 2,220 points
16,644 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP