how can i change the MD5 Hash of a zip file on my server.

Discussion in 'Programming' started by spyece, Jan 5, 2009.

  1. #1
    Hey guys,

    I want to change the MD5 Hash of a zip file on my server.

    Is there anyway by which i can add 1kb text file to that file using some script or any way?
    Or Is there any other way by which i can change the MD5 Hash of that file?

    Please Help.

    Thankyou.
     
    spyece, Jan 5, 2009 IP
  2. phper

    phper Active Member

    Messages:
    247
    Likes Received:
    17
    Best Answers:
    0
    Trophy Points:
    60
    #2
    If the content of your file changes, the md5 hash value would change as well.

    To add a file to your zip file, on Windows you can right click on the file you want to add, then choose 'Add to Zip file', then choose the zip file you have.

    On Linux just run zip theFileYouWantToadd theZipFile.zip
    (double check 'man zip' to be sure).
     
    phper, Jan 5, 2009 IP