Crypto Academy / Season 3 / Week 2 - Homework Post for Professor @pelon53

in hive-108451 •  3 years ago  (edited)

image.png

Homework for @pelon53

Explain what the collision resistance means? And what does preimage resistance mean?

Collision Resistance

means that it is incredibly difficult for two pieces of data to produce the same hash, different data will practically always produce different hashes. Now as we are talking about, let's say, SHA256 we do have to take into account that we are talking about reducing a large number of data to 256 bits of output, this means, as incredible as it sounds that it is possible, even though highly unlikely, that two different sets of data will produce the same hash, collision resistance just implies that the same hash for two different sets of data is almost negligible. Collision Resistance is a Crypto Hash Property.

Preimage Resistance

is a component of the hash function that is incredibly difficult to invert. What I think this means is that say, a hacker trying to find a password by using by attacking hash outputs would not find it feasible, even though not impossible to hack the password.

Use tronscan and etherscan to verify the hash of the last block and the hash of that transaction. Screenshot is required for checking.

Verifying blocks with Tronscan:

image.png

First we must go to tronscan.org and then scroll down to blocks (bloques in my case as Tronscan shows up in Spanish for me).
And now we click on the block number which will take us to all the information we need about this block.

image.png
The hash number for this particlar block is:0000000001e4d6c0507bedf9f4ae2a7d6a36d2fac6f6e8b17d1e1c6d7bd90ddc

Here are some of the transaction details:

image.png

And this is the last transaction on this block:

image.png

Last transaction hash #: f478f521ade83cb3943f6f4ef3f4d93e4a164cbda3aae223484c6132eff2fc15

Verifying blocks with Etherscan:

We of course go to Etherscan.io where we find the following:

image.png
Here we can see the last Block mined.

image.png

And here we see the hash number 0x8d4c80da9a897c8f7ce7fb7c3e20e214ca6312509e6f7580f217886589548ee8

Then we click on transaction and go to the last one and click on it:

image.png

Here we see all transaction details including it has number:

image.png

Generate the hash using SHA-256 , from the word CryptoAcademy and from cryptoacademy. Screenshot required. Do you see any difference between the two words? Explain.

To do this we must go to https://passwordsgenerator.net/sha256-hash-generator/ and proceed with each phrase we are going to generate a hash for:

image.png
Hash for CryptoAcademy is D03CA34B258E6E0FD06B2070DDE61B50BD4EEF6161A8EDAA4A420C9AE1BEB7F9

image.png
For cryptoacademy the hash is 0592F5DD27DC72E675B2AB9C77487A69FAAF84196597FA052EC099C18EE7C4C5.

As we can see the hashes are completely different, and the only difference in the words themselves is that in one two letters are capitalized while the other one uses no capital letters. This is enough of a difference to produce two completely different hashes.

In your own words explain the difference between hash and cryptography.

To me a hash is a mathematical function that minimizes a large number of data into a unique string of alphanumerical characters which are incredibly difficult, close to impossible to obtain the same outcome from different sets of data.

As for cryptography is to me the securing of data by encrypting the data itself making it nearly impossible for this data to be hacked.

Conclusions:

Hashes and cryptography are functions that enable data, in this case, on a blockchain to not be tampered with. It is this security which makes the blockchain the future of most of the functions humankind relies on.

Tagging:
@pelon53

Authors get paid when people like you upvote their post.
If you enjoyed what you read here, create your account today and start earning FREE STEEM!
Sort Order:  

Gracias por participar en Steemit Crypto Academy Season 3:

Espero seguir leyendo tus publicaciones.

NoPreguntas.Puntaje.
1Explique ¿Qué significa la resistencia a la colisión? Y ¿Qué significa resistencia a la preimagen?1.0
2Use tronscan y etherscan para verificar el hash del último bloque y el hash de esa transacción. Se requiere capture de pantalla para su comprobación.2.2
3Genere el hash usando SHA-256, de la palabra CryptoAcademy y de cryptoacademy. Se requiere capture de pantalla. ¿Observa alguna diferencia entre ambas palabras? Explique.2.8
4En sus propias palabras explique la diferencia entre el hash y la criptografía.1.2

No pude ver el hash de la transacción del último bloque en etherscan.

Recomendaciones:

  • Explicar de forma clara y sencilla cada concepto que se solicite.

  • Hacer una investigación profunda en el tema que se solicite.

Calificación: 7.2