https://github.com/dents/torche
Torrent file checker - verifies files in a directory against a torrent file in the same directory
https://github.com/dents/torche
datahoarder datahoarding file file-validation hash security sha1 storage torrent torrent-files torrents
Last synced: 4 months ago
JSON representation
Torrent file checker - verifies files in a directory against a torrent file in the same directory
- Host: GitHub
- URL: https://github.com/dents/torche
- Owner: dents
- License: mit
- Created: 2020-04-22T17:09:29.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2020-05-07T16:33:42.000Z (about 5 years ago)
- Last Synced: 2025-01-01T04:09:53.751Z (5 months ago)
- Topics: datahoarder, datahoarding, file, file-validation, hash, security, sha1, storage, torrent, torrent-files, torrents
- Language: JavaScript
- Size: 16.6 KB
- Stars: 6
- Watchers: 4
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# torche
Torrent file checker - verifies files in a directory against a torrent file in the same directory. Should work anywhere you can install node.jsUseful when you get files from a questionable source. For example, suppose your internet at home is extremely slow so you end up getting a Linux ISO on a USB drive from a shady "friend". Your would like to make sure the ISO has not been tampered with:
0. Install torche: `npm install torche -g` (make sure you have npm [set up to install globals properly.](https://docs.npmjs.com/resolving-eacces-permissions-errors-when-installing-packages-globally))
1. Create a new folder, let's say Ubuntu20LTS
2. Copy the questionable ISO in there (ubuntu-20.04-desktop-amd64.iso)
3. Download the .torrent file into the same directory (ubuntu-20.04-desktop-amd64.iso.torrent)
4. Run `torche ./Ubuntu20LTS/`
5. Make sure you get a successful verification:
```
$ torche Ubuntu20LTS/
VERIFYING ubuntu-20.04-desktop-amd64.iso.torrent
9FC20B9E98EA98B4A35E6223041A5EF94EA27809
Found 1 of 1 in torrent
VERIFIED 2,590/2,590 PIECES; 2,715,254,784 BYTES OK
```Obviously this is a contrived example since most modern Linux ISOs will have signature files for this exact purpose. torche is useful when all you have is a torrent file and absolutely nothing else to go on.