GitPedia

Nsec

A modern and easy-to-use cryptographic library for .NET based on libsodium

From ektrah·Updated June 10, 2026·View on GitHub·

[NSec](https://nsec.rocks/) is a cryptographic library for [.NET](https://dotnet.microsoft.com/) based on [libsodium](https://libsodium.org/) ❤. It provides modern cryptographic primitives in a modern API based on [Span<T>](https://docs.microsoft.com/en-us/archive/msdn-magazine/2017/connect/csharp-all-about-span-exploring-a-new-net-mainstay). NSec aims to be easy to use, secure by default, fast, and agile. The project is written primarily in C#, distributed under the MIT License license, first published in 2017. Key topics include: aead, aes-gcm, blake2b, chacha20-poly1305, crypto.

Latest release: 26.4.0
April 30, 2026View Changelog →

NSec

Maintenance
License
NuGet

NSec is a cryptographic library for
.NET based on
libsodium ❤.
It provides modern cryptographic primitives in a modern API based on
Span<T>.
NSec aims to be easy to use, secure by default, fast, and agile.

For more information about NSec, please refer to the following resources:

Project homepage:https://nsec.rocks/
Installation:https://nsec.rocks/docs/install
Online documentation:https://nsec.rocks/docs/api/nsec.cryptography
Open issues:https://github.com/ektrah/nsec/issues
Pull requests:https://github.com/ektrah/nsec/pulls

Contributors

Showing top 7 contributors by commit count.

View all contributors on GitHub →

This article is auto-generated from ektrah/nsec via the GitHub API.Last fetched: 6/13/2026