Skip to main content
Search type Search syntax
Tags [tag]
Exact "words here"
Author user:1234
user:me (yours)
Score score:3 (3+)
score:0 (none)
Answers answers:3 (3+)
answers:0 (none)
isaccepted:yes
hasaccepted:no
inquestion:1234
Views views:250
Code code:"if (foo != bar)"
Sections title:apples
body:"apples oranges"
URL url:"*.example.com"
Saves in:saves
Status closed:yes
duplicate:no
migrated:no
wiki:no
Types is:question
is:answer
Exclude -[tag]
-apples
For more details on advanced search visit our help page
Results tagged with
Search options answers only not deleted user 971

Secure Hash Algorithm is a family of cryptographic hash functions published by NIST. This includes SHA-1, and the SHA-2 and SHA-3 families of functions. SHA-1 is deprecated for all usages.

5 votes

Is it possible to know the key if we have the original value and the hash using HmacSHA1?

It is not possible to recover the key ... assuming the key has sufficient entropy. Here's what the attacker can do. If the attacker has a guess at the key, the attacker can check whether his guess i …
D.W.'s user avatar
  • 100k
37 votes

Is SHA1 better than MD5 only because it generates a hash of 160 bits?

No. It's not just the length of the output. There are significant differences in their level of security against cryptanalytic attacks. There are devastating collision attacks on MD5. (The Wikiped …
D.W.'s user avatar
  • 100k