Menu

#314 SHA1 mismatch

open
SHA1 (1)
5
2019-06-02
2019-05-30
Winny
No

Why is SHA1 shown on 7-Zip UI different from CLI (7z h -scrcSHA1 == sha1sum != UI)?

Discussion

  • Igor Pavlov

    Igor Pavlov - 2019-06-02

    Please show some examples.

     
  • Winny

    Winny - 2019-06-02

    Please check the screenshots attached.

    I am not sure if 7-Zip computes SHA1 only on the data (397 bytes less in UI) or the entire zip however I think it would be nice to have an SHA1 entry which matches the command line version.

     

    Last edit: Winny 2019-06-02
  • Igor Pavlov

    Igor Pavlov - 2019-06-02

    When you have 1.txt, it has sha-1 checksum.
    If you compress 1.txt to 1.zip, then 1.zip will have another checksum.
    When you open 1.zip, and call checksum function, 7-Zip shows checksum of files inside archive, but not checksum of zip file itself.

     
  • Winny

    Winny - 2019-06-02

    Yes, exactly. If I download a zip file from another machine I would like to see the SHA1 checksum of the entire zip file in UI (just like cmd shows).

    Not sure how SHA1 checksum of the data inside the zip file can help me in that situation. I believe a common usecase for all general users would be the ability to see the whole file checksum. (ofcourse, it is good to have SHA1 checksum of data inside available in UI).

     

    Last edit: Winny 2019-06-02
  • Igor Pavlov

    Igor Pavlov - 2019-06-02

    go one level up.
    select zip file and call sha-1 command from menu.

     
  • Igor Pavlov

    Igor Pavlov - 2019-06-02

    use case:
    let's suppose that you have big video file - 16 GB .
    And you have sha-1 code for that file.
    You compress video file to multivolume zip archive.
    Then you want to check that everything is correct.
    You open zip archive and call sha-1 function for video file inside (not for zip archive).
    Then you compare original sha-1 checksum of video file and sha-1 checksum for same file in archive.

     

    Last edit: Igor Pavlov 2019-06-02
  • Winny

    Winny - 2019-06-02

    Got it! Thank you for your time and clarification.

    7-Zip is a great software, thank you for making it.

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.