Create torrent hash info
问题 how do I generate torrent hash info on torrent files. I have been taking a look on this example: How to calculate the hash value of a torrent using Java and am trying to convert it to C++. This is the code I have so far: void At::ReadTorrent::TorrentParser::create_hash(std::string torrentstub) { std::string info; int counter = 0; while(info.find("4:info") == -1) { info.push_back(torrentstub[counter]); counter++; } unsigned char array[torrentstub.size()]; int test = 0; for(int data; (data =