File hash: Does it change for same content but in different order?

Posted by Nirmal on Stack Overflow See other posts from Stack Overflow or by Nirmal
Published on 2010-04-03T03:40:48Z Indexed on 2010/04/03 3:43 UTC
Read the original article Hit count: 289

Filed under:
|
|

Let's say there is a file called myfile.txt with the following contents:

one two three

Another file called yourfile.txt with following contents:

two three one

Will the SHA-1 hash be the same for both of these files, because the content are same but in different order?

© Stack Overflow or respective owner

Related posts about file

Related posts about hash