用于创建包含文件 MD5 哈希值的 torrent 文件的命令工具?

用于创建包含文件 MD5 哈希值的 torrent 文件的命令工具?

我知道 mktorrent,并且知道如何使用它,但出于测试目的,我需要一个实用程序,该实用程序还将在 torrent 元信息中包含 torrent 中每个文件的 MD5 哈希值。我意识到每个文件的 MD5 哈希值通常不用于大多数现代 torrent 应用程序,并且是多余的,但我希望有一个我错过的实用程序支持这一点。

有什么建议么?

答案1

你可以使用这个:https://py3createtorrent.readthedocs.io/en/latest/

但是您需要安装python才能使用这个。

“py3createtorrent 是一个用于创建 torrent 的综合 shell/命令行实用程序(Linux 和 Windows)。它是一个 GPL 许可的 Python v3.1 脚本。我使用 Ubuntu 8.04 / rTorrent 和 Windows 7 / µTorrent 对其进行了测试。”

答案2

您可以将该--checksum md5选项与 torrenttools 一起使用。

除了 MD5 之外,还支持各种其他哈希函数。您可以使用 列出可用选项torrenttools --checksum-algorithms

Torrenttools 可以在这里找到:https://github.com/fbdtemme/torrenttools

免责声明:我是该工具的作者。

相关内容