简体   繁体   English

如何将base64编码的torrent info_hash转换为磁力链接info_hash? (Linux)

[英]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: 我有一个base64编码的info_hashes的列表,例如:

GiQilvwxZ4LUpJ/NpVUv9f7tV8s=

But when I run echo ... | base64 -d 但是,当我运行echo ... | base64 -d echo ... | base64 -d , it doesn't give me the real infohash, but a bunch of gibberish block characters. echo ... | base64 -d ,它没有给我真正的信息哈希,但给了我一堆乱码。

How do I get the real, info_hash that's usable in a magnet link, from a base64 encoded one? 如何从base64编码的链接中获取可在磁链中使用的实际info_hash?

Thanks in advance. 提前致谢。

它需要十六进制转换为基数32,这是命令:

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

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM