Hi,
I have been trying to parse a torrent file in Erlang, So far I was able to extract all the general info like torrent name, files(length, path, name), tracker link...
The only thing that is bothering me is the sha1 hash value. I checked many websites online and according to the specification the "info" dictionary is what needs to be hashed. However, I'm still confused by the delimiters. Should d and e be included or not?
Finally, I think that it matters how the data is read in from the file, right now I read the file as a binary then convert it to a list before parsing the data. Does this change/corrupt the hash if generated? Is there a suitable data type (Binary / List) to be able to correctly extract the info dictionary.
Thanks in advance.