Reputation: 39
Whenever I hash a name of a file with MD5 (the file was just uploaded and given a MD5 hashed name) the hexadecimal representation of the hash always starts with a number.
Is this a coincidence of the few files I have on my server, or is this a normal case?
Upvotes: 3
Views: 2898
Reputation: 105
the md5 can only be hexadecimal (32 digits 0-9 A-F), the hash is not part of it.
Upvotes: 0
Reputation: 140220
The #
is not part of the md5.. the whole md5 is 32 letters each representing 4 bits with one hexadecimal digit. Since the whole md5 is just hexadecimal digits, you could say it always starts with a number.
You might have meant if they always start with the hex digit 0-9 instead of a-f, then the answer is no. They can start anywhere between 0-f.
To wrap it up: hexadecimal numbers
Upvotes: 1
Reputation: 48775
chris@siri ~ (3.6M) $ echo 'yoyo' | md5sum
e0ea852f2f2d9564429842f7863af499 -
it's a coincidence.
Upvotes: 11
Reputation: 455020
md5
is a 32-character hexadecimal number so it can start with a digit or a letter between a
and f
.
Upvotes: 1