https://github.com/d06i/verifysn
Fast file hash verification tool
https://github.com/d06i/verifysn
compare hash tool verification
Last synced: about 1 year ago
JSON representation
Fast file hash verification tool
- Host: GitHub
- URL: https://github.com/d06i/verifysn
- Owner: d06i
- Created: 2024-04-01T13:23:09.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2025-03-04T21:23:56.000Z (over 1 year ago)
- Last Synced: 2025-03-28T17:26:22.965Z (about 1 year ago)
- Topics: compare, hash, tool, verification
- Language: C++
- Homepage:
- Size: 11.7 KB
- Stars: 0
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# VerifySN
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."****
# Results
Test on 12.2 GB file.
**XXH64 -> 15 seconds**

**VerifySN -> 0.016 seconds**

## **Installation**
### Cmake (Default)
````
git clone https://github.com/d06i/verifySN.git
cd verifysn
cmake CMakeLists.txt
cmake --build .
````
### Cmake for MSVC:
````
git clone https://github.com/d06i/verifySN.git
cd verifysn
cmake CMakeLists.txt -G "Visual Studio 17 2022"
cmake --build . or open the .sln
````
### Compile with Clang \ G++ :
````
clang -O3 verifysn.cpp -o verifysn.exe
````
or
````
g++ -O3 -s verifysn.cpp -o verifysn.exe
````
## Issues
* It works slowly with small and numerous files (such as more than 10,000 files). -> Async might be applicable.
## Credits
https://github.com/ztanml/fast-hash