Torrent to Magnet
Javascript implementation of magnet URI conversion
view on
github

Converter

Javascript is required to use the inline converter.
Drop .torrent files here
to convert them to magnet URIs
Or click to open the file browser

Libraries

The following Javascript libraries are used on this page:

They are primarly designed for web usage, but they can be trivially modified to be used with something such as node.js.

sha1.js

Computes the SHA-1 hash of the specified data using the basic algorithm described in RFC 3174, with a paradigm similar to python's hashlib. Data can be input in chunks, and the digest can be calculated at any point without modifying the internal state.

Public interface

The following are public methods on the SHA1 class:

bencode.js

Encode/decode an object or string using the Bencode format.

Public interface

The following are public methods on the Bencode module:

base32.js

Encode/decode a string using the RFC 4648 Base32 format.

Public interface

The following are public methods on the Base32 module:

Other Javascript files

These are the other Javascript files included in this repository: