What is contained in the torrent file?

Was sure that it was a plain text file. Tried to open the torrent file in the editor - and there krakozyabry.

What is this encoding? How to generate a torrent file? What data are needed for this? Is it possible, for example, to generate the torrent file in the browser, with the server list?
March 19th 20 at 08:34
2 answers
March 19th 20 at 08:36
Download uTorrent.
menu File -> Create new torrent.

In General, the file format is easy to Google.
I don't have to create a torrent client, otherwise I would not have created this issue. - Aimee commented on March 19th 20 at 08:39
From the question it was not clear.

For example,
https://wiki.theory.org/index.php/BitTorrentSpecif... - jamil_Fad commented on March 19th 20 at 08:42
@jamil_Fad, the couple kind of complicated.

Is there a way in the browser to generate a torrent file? Ie so that the user downloaded is not the file from the server, and the fact that he generated in the browser. - Aimee commented on March 19th 20 at 08:45
If you just need to upload the file via the torrent, create it using the program (e.g. uTorrent), and then let the users download torrent.

Better to write the question, what problem is solved. - jamil_Fad commented on March 19th 20 at 08:48
@jamil_Fad, Yes, I think it will be easier, and there is encoding, hashes, every gesture cryptographic. Did not expect.

The goal is to let the user download a torrent file (not magnet link), while not storing the file on the server (what you suggest). I.e. passing the information to the browser client (the list of trackers or whatever you need for the file to work?) to generate the file. How? - Aimee commented on March 19th 20 at 08:51
@Aimee,
you will need:
1) Start uTorrent
2) With it to form .torrent file without reference to the trackers.
3) Stand on the hand, it is desirable to have white ip
4) the torrent file to upload to your website.
5) If the main file is popular, and it will download enough people, you then will be able to get away from the hand. But by default you will have to give the file forever. The advantage is that during peak periods downloads you will not have Overdrive, because who downloaded - distribute to others (at least until he shakes).

The second option:
1) All the same, just use any popular forum. For example, the events.
2) Also fall into the distribution.
3) On your site instead of the torrent file publish a link to the events. - jamil_Fad commented on March 19th 20 at 08:54
The feeling that not reading what I write. - Aimee commented on March 19th 20 at 08:57
And, it seems, came. I just intuitively trying to understand what you want. And it seemed to give to download the file to the user via torrent.
And you really don't want to store the torrent file on the server - so understandable)

Yes, not an easy task. Easiest option - just cut the torrent file and give the pieces to different parts of the world. Or just recode it.

Again not correctly understood? Surely some kind of service for the Assembly of torrents in the browser? The type of online customer, right? - jamil_Fad commented on March 19th 20 at 09:00
@jamil_Fad, Yes, you understood correctly. The aim is not to store the torrent file on the server, maybe only a list of trackers (or what it should be, I don't know). The user to show the button, and when pressed to generate a file already in the browser and not to ask for it.

Yet I found this, but is it possible to replace the fs browser API? https://github.com/webtorrent/create-torrent - Aimee commented on March 19th 20 at 09:03
March 19th 20 at 08:38
Any torrent client.
In General, read the Wikipedia ?

https://ru.wikipedia.org/wiki/.torrent

https://habr.com/ru/post/119753/
I don't have to create a torrent client, otherwise I would not have created this issue.

Maybe the question is read? - Aimee commented on March 19th 20 at 08:41
@Aimee,

So maybe the link closer look?
There is a very small article and explicitly say that Bencode is used, which can contain textual data and byte sequences that have no textual meaning

Well, here's the finished code
https://habr.com/ru/post/119753/ - arjun.Magg commented on March 19th 20 at 08:44

Find more questions by tags P2PBitTorrent