How to return a string generated from a sha1 bytearray to that bytearray?
问题 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-bencode this bencode library to decode the information, but my problem is when I want to convert the string of pieces to a byte array. The torrent file is encoded in UTF-8. but If I do Byte[] bytepieces = piecestring.getBytes("UTF-8"); It gives well. anything really usable. For other side, for comparing or try to get the string,