https://github.com/zorchenhimer/go-acc
A utility to verify CRC32 hashes in filenames and generate ed2k links
https://github.com/zorchenhimer/go-acc
crc32 ed2k ed2k-link hashing
Last synced: 5 months ago
JSON representation
A utility to verify CRC32 hashes in filenames and generate ed2k links
- Host: GitHub
- URL: https://github.com/zorchenhimer/go-acc
- Owner: zorchenhimer
- License: mit
- Created: 2022-10-23T23:57:03.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2024-12-17T00:19:13.000Z (over 1 year ago)
- Last Synced: 2024-12-17T01:33:03.945Z (over 1 year ago)
- Topics: crc32, ed2k, ed2k-link, hashing
- Language: Go
- Homepage:
- Size: 11.7 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: license.md
Awesome Lists containing this project
README
# go-acc
Compute CRC32 and ED2K hashes for files.
Default behavior is to simply compute and verify CRC32 hashes found in
filenames. If no hash is found, one can be added with the `--add` option.
The `--add-delim` option sets the character to use to separate the original
filename from the added CRC32 hash. This defaults to an empty string (ie, no
delimiter). The added hash is always surrounded by square brackets.
Generating full ED2K links is done with the `--ed2k option`. If this option is
passed, the files will not be CRC32 hashed. ED2K hashes cannot
be added to filenames.
## Usage
acc [--add] [--add-delim ADD-DELIM] [--ed2k] INPUTFILES [INPUTFILES ...]
Positional arguments:
INPUTFILES Input files
Options:
--add, -a Add the calculated hash to the filename if none is found
--add-delim ADD-DELIM, -d ADD-DELIM
Character to use before the added hash
--ed2k, -e Print ED2K links
--help, -h display this help and exit