NSec.Cryptography
26.4.0
52 download(s)
public
Provides modern cryptographic algorithm implementations for .NET based on libsodium. Commonly Used Types: NSec.Cryptography.Aegis256 NSec.Cryptography.Argon2id NSec.Cryptography.Blake2b NSec.Cryptography.Chacha20Poly1305 NSec.Cryptography.Ed25519 NSec.Cryptography.X25519
aead
aegis128l
aegis256
aes-gcm
argon2id
blake2b
chacha20-poly1305
crypto
cryptography
curve25519
ed25519
encryption
hash
hkdf
hmac
libsodium
scrypt
security
sha2
x25519
PackageReference
<PackageReference Include="NSec.Cryptography" Version="26.4.0" />
.NET CLI
dotnet add package NSec.Cryptography --version 26.4.0
Dependencies
net9.0
| Package | Version range |
|---|---|
| libsodium | [1.0.22, 1.0.23) |
net9.0-ios18.0
| Package | Version range |
|---|---|
| libsodium | [1.0.22, 1.0.23) |
net9.0-maccatalyst18.0
| Package | Version range |
|---|---|
| libsodium | [1.0.22, 1.0.23) |
net9.0-tvos18.0
| Package | Version range |
|---|---|
| libsodium | [1.0.22, 1.0.23) |
Readme
# NSec.Cryptography NSec is a cryptographic library for .NET based on libsodium. It aims to be easy to use, secure by default, fast, and agile. ## Getting Started To get started with NSec, install the package via NuGet: ``` dotnet add package NSec.Cryptography ``` For more detailed documentation, usage examples, and API references, please visit [the project homepage](https://nsec.rocks/). ## Documentation | Class | Algorithms | |:--------------------------------------------------------------------------------------------------------------------------------- |:------------------------- | | [AeadAlgorithm Class](https://nsec.rocks/docs/api/nsec.cryptography.aeadalgorithm) | AEGIS-128L | | | AEGIS-256 | | | AES256-GCM | | | ChaCha20-Poly1305 | | | XChaCha20-Poly1305 | | [HashAlgorithm Class](https://nsec.rocks/docs/api/nsec.cryptography.hashalgorithm) | BLAKE2b *(unkeyed)* | | | SHA-256 | | | SHA-512 | | | SHA3-256 | | | SHA3-512 | | [KeyAgreementAlgorithm Class](https://nsec.rocks/docs/api/nsec.cryptography.keyagreementalgorithm) | X25519 | | [KeyDerivationAlgorithm2 Class](https://nsec.rocks/docs/api/nsec.cryptography.keyderivationalgorithm2) | HKDF-SHA-256 | | | HKDF-SHA-512 | | [MacAlgorithm Class](https://nsec.rocks/docs/api/nsec.cryptography.macalgorithm) | BLAKE2b *(keyed)* | | | HMAC-SHA-256 | | | HMAC-SHA-512 | | [PasswordBasedKeyDerivationAlgorithm Class](https://nsec.rocks/docs/api/nsec.cryptography.passwordbasedkeyderivationalgorithm) | Argon2id | | | scrypt | | [SignatureAlgorithm Class](https://nsec.rocks/docs/api/nsec.cryptography.signaturealgorithm) | Ed25519 | | [SignatureAlgorithm2 Class](https://nsec.rocks/docs/api/nsec.cryptography.signaturealgorithm2) | Ed25519ph | See [the API reference](https://nsec.rocks/docs/api/nsec.cryptography) for more information. ## Supported Platforms NSec is intended to run on the following platforms. Please note, not all of these platforms have been tested. | | `-x64` | `-x86` | `-arm64` | `-arm` | |:----------------------|:--------:|:--------:|:--------:|:--------:| | **`android-`** | ✓ | ✓ | ✓ | ✓ | | **`ios-`** | | | ✓ | | | **`linux-`** | ✓ | | ✓ | ✓ | | **`linux-musl-`** | ✓ | | ✓ | ✓ | | **`maccatalyst-`** | ✓ | | ✓ | | | **`osx-`** | ✓ | | ✓ | | | **`tvos-`** | | | ✓ | | | **`win-`** | ✓ | ✓ | ✓ | | See [the installation instructions](https://nsec.rocks/docs/install) for more information, particularly regarding hardware and software requirements.
Versions
Target frameworks
net9.0
net9.0-ios18.0
net9.0-maccatalyst18.0
net9.0-tvos18.0
Metadata
- Published
- Size
- 170.96 KB
- Authors
- Klaus Hartke
- License
- MIT
- Project
- https://nsec.rocks/
- Repository
- https://github.com/ektrah/nsec.git commit 02c51bb20a7b6accc96e74ecab6e2659cc1f5c63
- Minimum NuGet client
- 4.0.0
- Flags
- SemVer 1 ยท requires license acceptance
- SHA512
- GAXke6qdpurIc7jo4RskdMO9r3vcqW2Q0ZxAdh8PqxeV4IoSb29y3HzmvKEG1+OhrM81PGSNTQ3xM8R6ALMz4Q==
Release notes
https://nsec.rocks/releases