Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Something I found I hash some code like “e3b0c44298fc1c149af……….1e4649b934ca4959

ID: 3715450 • Letter: S

Question

Something I found

I hash some code like “e3b0c44298fc1c149af……….1e4649b934ca495991b7852b855” in SHA-256 it is really really long random code but the result comes out is still 32-byte signature.
   and the result is “ 5d5d67f4dd5535e7ec5e0a1f9846e7b0”
so that means the hash function will loosing a long of information

Something I need to ask
Q1:
Since it will loosing information, is that means:

A. most of the hashing code mathematically impossible to Decrypt ?

B. does there has any case two different text will have same hashed code, if it does please explain?

Q2:
I put text “a” to hash it the result is “ ca978112ca1bbdcafac231b39a23dc4da786eff8147c4e72b9807785afee48bb” (we called 1st hash), and then I put that (1st hash) to hash it again the result becomes “ da3811154d59c4267077ddd8bb768fa9b06399c486e1fc00485116b57c9872f5”(2nd hash), it is easy use the dictionary attack to decode 1st hash. but if we use triple or double hash to encrypt a password, does it will made the password more safety?? if it is does not please explain why??

Explanation / Answer

As given in the question the result obtained from SHA-256 is a code which is a lesser value.

Q1)

A) Yes, sometimes when we try to decrypt the values the process will be complicated due to losing heavy information over the code. It is possible to some extent which means we have tried for many validations to get the actual message. Using brute force attack it will take a longer time to get the data.

B) As the concept behind the encryption is hashing we have collisions in hashing. As per the question, it is possible for two texts to have same hash codes.

Q2) Using dictionary attack you can easily decode the hash values by observing the letter frequency. After applying triple or double hash to encrypt the password. It will make the password secure to some extent but it won't give that much security after a few trails we can easily crack the password by using the frequent letter patterns.

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote