Menu

#1521 Additional option to allow 7z h command to store hashes in unix format

None
open
nobody
None
5
2022-06-20
2021-06-16
Zygmunt
No

Hello, I would like to ask for additional format of saved hashes which 7zip produces with "h" command. 7zip doesn't have any tool or command to verify own generated files, and I have few tools which accept hashes in unix format like:
FFEEDDCCFF *filename.ext

It is the same format what md5sum -b *.ext is using.

It shouldn't be big hassle to add this as option to "h" command. Thank You.
Currently, every change i had to modify hash file each time my files changes.

Discussion

  • Igor Pavlov

    Igor Pavlov - 2021-06-17
    • Group: -->
     
  • Igor Pavlov

    Igor Pavlov - 2021-06-17

    Ok. Probably I'll do it later.

     
  • Zygmunt

    Zygmunt - 2021-06-18

    Nothing serious or major, but still would be nice. Thank You.

     
  • Zygmunt

    Zygmunt - 2022-06-17

    Hello. Did anything happen with my small request?

     
  • Igor Pavlov

    Igor Pavlov - 2022-06-17
    7z a -thash a.sha256 a.txt 
    7z t a.sha256
    
     
  • Zygmunt

    Zygmunt - 2022-06-20

    Interesting. Not sure why You did it this way and not by expanding h -scrc functionality but it works. Thank You very much.
    Shouldn't asterisk character prefix the filename like in binary mode? I don't know if binary mode in md5sum even work or it is only empty mode though.

     
  • Igor Pavlov

    Igor Pavlov - 2022-06-20

    1) these created files are identical to files created by linux utils.
    2) a command

    7z a -thash a.sha256 new.txt
    

    allows to add new files to a.sha256.
    Also you can open a.sha256 in 7-Zip File Manager and you can do some operations as with archives.

     

    Last edit: Igor Pavlov 2022-06-20

Log in to post a comment.

MongoDB Logo MongoDB