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 24 by shubham
• 6,870 points
20 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 24 by sunshine
• 1,200 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 3, 2018 in Blockchain by Omkar
• 67,120 points
90 views
0 votes
10 answers

What is the difference between Mongodb and Hadoop?

Apart from the similarity that they are ...READ MORE

answered Dec 6, 2018 in Big Data Hadoop by Deeraj
2,162 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,590 points
130 views
+1 vote
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,330 points
301 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,190 points
408 views
0 votes
1 answer

What is difference the between Selenium and Celerity?

If you are talking about speed, use Celerity. If ...READ MORE

answered Apr 20, 2018 in Selenium by king_kenny
• 3,590 points
54 views