How to return a string generated from a sha1 bytearray to that bytearray?

后端 未结 2 612
逝去的感伤
逝去的感伤 2021-01-23 19:05

first of all sorry for the bad English.

Well, I want to read the pieces hashes information from a torrent file. Currently, I\'m using https://github.com/hyPiRion/java-be

2条回答
  •  星月不相逢
    2021-01-23 19:19

    Thanks guys for your answer, but I can find the solution using this https://github.com/bedeho/bencodej

    The lib loads the Bencode data alwais as bytearray with custom classes, and is able have a 1:1 with the bytestrings :p Thanks for all.

提交回复
热议问题