Skip to content

Binary signature of file contents

License

Notifications You must be signed in to change notification settings

hobby-dev/vsign

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

vsign

Creates binary signature of file contents. Works as fast as your storage. Uses Meow Hash - the best hash that I could find for this particual type of work.

Prerequisites

  • Windows or Linux
  • x86-64 C++14 compiler

Building

Windows (using Visual Studio)

  • make sure you have relevant Windows SDK installed
  • run cmd in vsign dir
  • run C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Auxiliary\Build\vcvars64.bat or equivalent for your Visual Studio version
  • run build.bat

Linux (using clang++)

  • run build.sh

Usage:

Experimental software! Use at your own risk! Overwrites output file.

vsign -h

Usage: vsign [OPTIONS] INPUT_FILE [OUTPUT_FILE]

Creates binary signature of contents of INPUT_FILE and writes to OUTPUT_FILE
(by default will write to 'INPUT_FILE.signature')

Options:
 -b		Block size (bytes), default is 1 048 576 bytes
 -h		Print help text
 -t		Threads count, equals to number of logical cores by default 
 -v		Verbose output
 -y		Verify that OUTPUT_FILE contains correct signature of INPUT_FILE

Known issues:

  • Currently there is no clear error message for "out of disk space" situation
  • Add tests
  • Implement verify feature (-y)
  • [Windows] no error message when lack permisiion to create signature file

About

Binary signature of file contents

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published