
Security News
Axios Supply Chain Attack Reaches OpenAI macOS Signing Pipeline, Forces Certificate Rotation
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.
LibtorrentDotNet
Advanced tools
![]()
LibtorrentDotNet is a C++/CLI wrapper around libtorrent, designed for use in .NET applications. This wrapper allows .NET developers to leverage many of the core features of libtorrent in their projects.
You can install this package using the NuGet Package Manager:
Install-Package LibtorrentDotNet
Here's a basic example of how to use LibtorrentDotNet:
using LibtorrentDotNet;
class Program
{
static void Main(string[] args)
{
using (var torrentSession = TorrentSession.Create())
{
torrentSession.TorrentStateUpdated += (sender, torrentStateUpdateEventArgs) =>
{
var status = torrentStateUpdateEventArgs.UpdatedTorrents[0];
if (status.State == TorrentState.Downloading)
{
Console.WriteLine($"Downloading torrent: {Math.Round(status.Progress * 100, 2)}%");
}
else
{
Console.WriteLine(status.State);
}
};
torrentSession.AddTorrent(new AddTorrentFromMagnetLinkRequest("your magnet link goes here", "a save directory path goes here"));
Console.WriteLine("Press any key to exit.");
Console.ReadLine();
}
}
}
Before building the solution, ensure that you have the following installed:
This project uses the following third-party library:
libtorrent is a C++ library that provides a feature-complete implementation of the BitTorrent protocol.
The libtorrent library is used to handle torrent functionalities within this project. You can find more information about libtorrent on the official website or view its source code on GitHub.
This project is licensed under the BSD License. For more information, see the LICENSE.txt file in the root of this repository.
This project includes or depends on libtorrent, which is subject to its own license terms. See LICENSE.txt for details.
Special thanks to the open-source community and all contributors of libtorrent for providing an excellent library that made this project possible.
FAQs
A C++/CLI .Net wrapper for libtorrent.
We found that libtorrentdotnet demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.

Security News
Open source is under attack because of how much value it creates. It has been the foundation of every major software innovation for the last three decades. This is not the time to walk away from it.

Security News
Socket CEO Feross Aboukhadijeh breaks down how North Korea hijacked Axios and what it means for the future of software supply chain security.