md5 hashing files

Hyperblaze

Lifer
May 31, 2001
10,027
1
81
I'm in the process of hashing some files on my system

using md5hash

md5 file

What I'd like to do next is add a number to this hash file. What methods would you folks know to accomplish this?

 

TGS

Golden Member
May 3, 2005
1,849
0
0
Why?

for clarification the MD5 hash is a unique fingerprint based on the bit sequence. If you edit the hash output, it becomes useless as subsequent hashes on the file will come up with different values.

You could just say you tagged on a value, but that defeats the purpose of the hash in the first place IMO.
 

TGS

Golden Member
May 3, 2005
1,849
0
0
Without editing something in the bit sequence and rehashing it, I don't believe there is a way to legitimately change it.
 

bsobel

Moderator Emeritus<br>Elite Member
Dec 9, 2001
13,346
0
0
Originally posted by: Hyperblaze
I'm in the process of hashing some files on my system

using md5hash

md5 file

What I'd like to do next is add a number to this hash file. What methods would you folks know to accomplish this?


HB, your description of what you want to do is somethign confusing. Are you saying you want to add a number to the hash value itself, or a file based on the hash name? Can you post more of an example of what you want to accomplish?

 

Hyperblaze

Lifer
May 31, 2001
10,027
1
81
Originally posted by: bsobel
Originally posted by: Hyperblaze
I'm in the process of hashing some files on my system

using md5hash

md5 file

What I'd like to do next is add a number to this hash file. What methods would you folks know to accomplish this?


HB, your description of what you want to do is somethign confusing. Are you saying you want to add a number to the hash value itself, or a file based on the hash name? Can you post more of an example of what you want to accomplish?

add a number to the hash value itself.


 

bsobel

Moderator Emeritus<br>Elite Member
Dec 9, 2001
13,346
0
0
The MD5 is just a 128 bit number. Not sure what language you are doing this in, but here is a .net example of how to add a value to a 128 bit number. You should be able to port it over to whatever language you are using....