How do I convert a base64 encoded torrent info_hash to a magnet link info_hash? (Linux)

3.4k views Asked by At

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 in a magnet link, from a base64 encoded one?

Thanks in advance.

1

There are 1 answers

3
dessalines On

It required a hex conversion to base 32, here's the command:

echo GiQilvwxZ4LUpJ/NpVUv9f7tV8s=| base64 -d| xxd -l 32 -p