Difference between HMAC and hash functions

0

I have not been very clear about the difference between HMAC and hash functions like SHA. I think the main difference is that HMAC uses a key and uses a hash function.

    
asked by secru 19.07.2017 в 04:55
source

1 answer

0

An HMAC is a hash with a secret value, so that the calculated HMAC can only have been generated by the person who knows it.

Can be added to the beginning or end.

For example, if I make an HMAC with the password "pepe" from the text "In a Place of La Mancha" the result, which is a hash, I can only calculate it myself. I would do the hash of "pepeEn un Lugar de La Mancha" (obviously this is a crude example)

Used to add to the integrity (the original text has not changed) the non-repudiation of the issuer (only I could calculate it)

It is, in a way, an electronic signature (but without asymmetric keys)

    
answered by 17.04.2018 в 17:45