It is a tool for verifying files very quickly. You can save hashes to a file and compare them.
Usage: program.exe [options] filepath.
-save : save hashes to hash.txt.
-compare: compare hash.
Example -> verifysn.exe -save "C:\gcc"
verifysn.exe -compare "C:\gcc"
or you can directly list
verifysn.exe "C:\gcc"
How it works?
-> So easy. Get bytes from the files and calculate the hash. That's all.
"Not guaranteed for highly secure tasks."
Test on 12.2 GB file.
XXH64 -> 15 seconds
VerifySN -> 0.016 seconds
git clone https://github.com/d06i/verifySN.git
cd verifysn
cmake CMakeLists.txt
cmake --build .
git clone https://github.com/d06i/verifySN.git
cd verifysn
cmake CMakeLists.txt -G "Visual Studio 17 2022"
cmake --build . or open the .sln
clang -O3 verifysn.cpp -o verifysn.exe
or
g++ -O3 -s verifysn.cpp -o verifysn.exe
- It works slowly with small and numerous files (such as more than 10,000 files). -> Async might be applicable.