Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implementation of SHA256 for decryption of Passkey #102

Open
BoraVivek opened this issue May 6, 2022 · 5 comments
Open

Implementation of SHA256 for decryption of Passkey #102

BoraVivek opened this issue May 6, 2022 · 5 comments

Comments

@BoraVivek
Copy link

Hello,

Do we need to change the encryption and decryption of torrent pass keys using sha256, in order to support V2 Torrents? If so can you please implement those changes at the earliest.

https://blog.libtorrent.org/2020/09/bittorrent-v2/

Thankyou

@madness85
Copy link

With so many clients now supporting v2 torrent it's only a matter of time before xbt is left behind. You should really consider implementing hybrid and V2 torrents.

@OlafvdSpek
Copy link
Owner

With so many clients now supporting v2 torrent it's only a matter of time before xbt is left behind. You should really consider implementing hybrid and V2 torrents.

In XBT Client?

@madness85
Copy link

madness85 commented Feb 13, 2023

With so many clients now supporting v2 torrent it's only a matter of time before xbt is left behind. You should really consider implementing hybrid and V2 torrents.

In XBT Client?
https://alternativeto.net/list/32585/bittorrent-v2-supported-torrent-clients/

But xbt tracker doesn't support hybrid or v2.

@OlafvdSpek
Copy link
Owner

It doesn't?

To handle this, DHT- and tracker announces and lookups for v2 torrents use the SHA-256 info-hash truncated to 20 bytes.

@AngelOfFear
Copy link

AngelOfFear commented Mar 6, 2023

It doesn't?

To handle this, DHT- and tracker announces and lookups for v2 torrents use the SHA-256 info-hash truncated to 20 bytes.

Need support hybrid mode (v1 + v2) for compatibility with old clients. In DB need info_hash binary(20) AND info_hash2 binary(32) (i.e. 2 hashes).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants