Questions tagged [info-hash]
18 questions
0
votes
2 answers
Unable to create a torrent's info hash
I'm having trouble finding the issue with how I'm generating the corresponding info hash for a torrent file. This is the code I have so far:
InputStream input = null;
try {
MessageDigest sha1 = MessageDigest.getInstance("SHA-1");
input = new…

nomore2step
- 155
- 1
- 1
- 8
0
votes
1 answer
How do I convert a base64 encoded torrent info_hash to a magnet link info_hash? (Linux)
I have a list of base64 encoded info_hashes such as:
GiQilvwxZ4LUpJ/NpVUv9f7tV8s=
But when I run echo ... | base64 -d, it doesn't give me the real infohash, but a bunch of gibberish block characters.
How do I get the real, info_hash that's usable…

dessalines
- 6,352
- 5
- 42
- 59
0
votes
2 answers
Calculating info_hash from UrlEncoded query string
Basically, I'm building a small tracker for experimental purposes. I've gotten quite far, and am now working on the announce part.
What I really can't figure out is how I should decode the info_hash query string provided.
From the specification, it…

Viktor Elofsson
- 1,581
- 2
- 13
- 20