Skip to main content
8 events
when toggle format what by license comment
Nov 8, 2015 at 8:05 comment added CodesInChaos SHA1 only has one parameter, the data. HMAC-SHA-1 has two parameters, key and data. Simply concatenating key and data and passing them to SHA-1 is not a good idea. SHA1(Data + Key) is much weaker than HMAC-SHA-1, since it relies on collision resistance. SHA1(Key + Data) is totally broken, due to length extensions.
Nov 8, 2015 at 5:43 comment added Imran Qadir Baksh - Baloch @CodesInChaos you mean SHA1(Data) and SHA1(Data + Key)? Can you please explain?
Nov 7, 2015 at 19:26 history closed otus
DrLecter
fgrieu
Gilles 'SO- stop being evil'
CodesInChaos
Duplicate of What is the difference between a HMAC and a hash of data?
Nov 7, 2015 at 19:26 comment added CodesInChaos HMAC takes a key, plain SHA-1 does not.
Nov 7, 2015 at 18:49 review Close votes
S Nov 7, 2015 at 19:30
Nov 7, 2015 at 18:39 review Low quality posts
S Nov 7, 2015 at 19:30
Nov 7, 2015 at 18:29 review First posts
Nov 7, 2015 at 18:34
Nov 7, 2015 at 18:22 history asked Imran Qadir Baksh - Baloch CC BY-SA 3.0