Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
i have a file and i want to change the content of file but i also want that md5sum of that file remains same.
is it possible?
if yes then send me the procedure.
Distribution: Slackware (mainly) and then a lot of others...
Posts: 855
Rep:
Umm... if you say that then I am in trouble. I have my debian 4 connected to the internet and all I am betting on is the md5sum that I check ocassionally. So far I do not think there is anything wrong with my pc. I can install tripwire but then I suppose it is too late. Any suggestions for me?
Distribution: Ubuntu, played with Puppy Slitaz & OpenSUSE
Posts: 40
Rep:
Well one way could be to add 128bits to the end of the file and then try every combination possible in those 16 bytes performing md5sum on each until it produces the right value.
Distribution: Slackware (mainly) and then a lot of others...
Posts: 855
Rep:
I hope I did not offend anyone with saying something I did not really mean.
@martinbc I apologise if somehow I said something that was rude or offensive. I did not mean it.
I speak, write and understand four languages... and english is in someway my fourth language so please bear with me. Adding to it is the complication that all I have is a mobile (a very basic one) to post so it is that somehow I have only a limited screen space that I can see and I have to pack everything in very small place.
I am not a programer neither will I ever be but then I love the philosophy of linux and so I will stick around for perhaps my lifetime. So making some people like you all my enemies is something I am not really willing to do.
Sorry again if sarcasm was detected - I did not mean it.
Distribution: Ubuntu, played with Puppy Slitaz & OpenSUSE
Posts: 40
Rep:
Hi SilverBack
I took no offence to anything you said and did not think you rude.
I wish I had the knowledge, intelligence, skill and patience to master four languages. What talent I have is in a different direction.
If there was any misunderstanding, it comes from me not making it obvious that the suggestion was not a serious one.
Your friend
Martin
I haven't done a calculation but I doubt there is enough coal and oil on this planet to power the computers long enough to solve the problem in the inefficient way I suggested. It would certainly give rise to a very high electricity bill.
Distribution: Slackware (mainly) and then a lot of others...
Posts: 855
Rep:
@martinbc - thanks that is really appericiated. Getting back to me was very polite. Thanks again.
BTW: I speak with my wife in one language and then with family (joint family) a different one, at work english ofcourse and with my sister-in-law and her family another one. And I have to it on a daily basis
I thought I detected sarcasm there, maybe in both posts! LOL
hGiven that it is common knowledge that practically, changing a message will result in a different digest, may be the poster should clarify which two posts seem sarcastic.
To the OP. It is not possible unless you cheat the system - by hard-coding the output - irrespective of the computed result.
md5sum is a computer program that calculates and verifies 128-bit MD5 hashes, as described in RFC 1321. The MD5 hash (or checksum) functions as a compact digital fingerprint of a file. It is extremely unlikely that any two non-identical files existing in the real world will have the same MD5 hash
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.