Questions tagged [info-hash]
18 questions
45
votes
3 answers
What exactly is the info_Hash in a torrent file
I am reading lately a lot about hash from torrents, and magnetic links, etc. But there is a question I don't understand.
I have:
hash of a file
and the infohash of a torrent
Is the infohash = hash of the file ?
If yes what if the torrent describes…

Emetiel
- 1,285
- 1
- 10
- 9
6
votes
2 answers
Calculating the info-hash of a torrent file
I'm using C++ to parse the info hash of a torrent file, and I am having trouble getting a "correct" hash value in comparison to this site:
http://i-tools.org/torrent
I have constructed a very simple toy example just to make sure I have the basics…

Ethan
- 1,206
- 3
- 21
- 39
5
votes
2 answers
Parsing a torrent file - hash info. (Erlang)
I'm trying to come up with the correct url-encoded info hash to send to the tracker in order to get the peers list.
For testing, I tried parsing the torrent in this url.
After opening the file, manually cut the info dictionary piece and SHA1-hash…

Taher
- 11,902
- 2
- 28
- 44
3
votes
2 answers
Problem creating info hash of torrent file
I'm creating a BitTorrent site.
If a user uploads a .torrent file I need to get the info hash to get more info from the tracker.
However I cannot seem to get the correct info hash from the file.
I've download the a .torrent (…

PeeHaa
- 71,436
- 58
- 190
- 262
3
votes
1 answer
MonoTorrent and metadata mode
MonoTorrent client doesn't download file from another peer using matadata mode:
var torrentDefaults = new TorrentSettings {
UseDht = true,
EnablePeerExchange = true
};
var engine = new ClientEngine();
engine.ChangeListenEndpoint(new…

SHSE
- 2,423
- 17
- 16
3
votes
3 answers
How do I convert a Bit Torrent info_hash (obtained from Wireshark) to a SHA1 hash
I'm running Snort which detects some P2P activity, specifically the BitTorrent announce request. I see the HTTP GET /announce.php?info_hash=XXX... request and I'm trying to convert this XXX into a proper SHA1 hash to try and get an idea of what is…

Jeff
- 31
- 1
- 2
3
votes
1 answer
How to convert bit torrent info hash from Base 32 into Base 16
I have a Base32 info hash. e.g. IXE2K3JMCPUZWTW3YQZZOIB5XD6KZIEQ, and I need to convert it to base16.
How can I do it with PHP?
My code looks like this:
$hash32=strtolower($hash32);
echo $hash32; // shows -…

miyuru
- 1,141
- 11
- 19
3
votes
2 answers
Calculating bittorent info_hash with java
I am trying to calculate the info_hash value for a torrent. I read the whole torrent into StringBuffer, then cut it like the following:
d8:announce...info[d6:length...e]e
I can't seem to get the correct hash. Does reading the torrent into a…

Hamza Yerlikaya
- 49,047
- 44
- 147
- 241
2
votes
2 answers
Translating info_hash in the announce request of a torrent in PHP
I'm having an issue to understand how can I "translate" the info_hash value to a real hash.
Here's an example of what I'm getting from uTorrent when it's announcing to my tracker:
{
passkey: "77ec6a27adcc441648d66d0b873550e4",
info_hash:…

NeoTrix
- 124
- 8
2
votes
1 answer
python libtorrent How I get file list of torrent from info_hash?
def magnet2torrent(id, info_hash):
info_hash_id=id
magnet="magnet:?xt=urn:btih:"+info_hash
ses = lt.session()
params = {
'save_path': './',
'duplicate_is_error': True,
'storage_mode':…

user2648192
- 47
- 6
2
votes
2 answers
Create torrent hash info
how do I generate torrent hash info on torrent files.
I have been taking a look on this example: How to calculate the hash value of a torrent using Java and am trying to convert it to C++. This is the code I have so far:
void…

Araw
- 2,410
- 3
- 29
- 57
1
vote
1 answer
I've written my own javascript bencode library and I still can't generate torrent info hashes?
I've searched everywhere looking for a working JavaScript Bencode module and couldn't find one so I decided to write my own for the purpose of generating torrent info hashes.
The module works to the best of my knowledge as I wrote the functions to…
user465643
0
votes
3 answers
Magnet links library for PHP
Does anyone here know of a magnet-URI-parser for PHP? To validate it, or maybe to extract some information from it?

Wieger
- 663
- 1
- 9
- 24
0
votes
3 answers
Getting a torrent title from metadata or torrent file
Is it possible to extract the torrent title from the meta data loaded from DHT or the file downloaded from some server like TPB? any api,lib any language would do

Max
- 4,152
- 4
- 36
- 52
0
votes
1 answer
How to generate all possible Torrent info hashes?
How do I generate all possible torrent info hashes? I am looking for an elegant way to do so.
python code would be immensely appreciated, any other langues are cool too.

Max
- 4,152
- 4
- 36
- 52