Nsec Versions Save

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

24.5.0-preview.1

1 week ago

Compatibility

NSec now supports iOS, tvOS, and Mac Catalyst.

Note that this has not been extensively tested. Please provide feedback in https://github.com/ektrah/nsec/issues/80 whether it works or not.

Please indicate the target platform (iOS, tvOS, or Mac Catalyst), development platform (macOS, Windows, ...), and .NET SDK used, including version numbers.

Both positive and negative reports are welcome!

This pre-release runs on .NET 8.

24.4.0

2 weeks ago

New release! 🎉

See Installation for installation details and supported platforms.

23.9.0-preview.3

7 months ago

New Features

  • Algorithms
    • AEAD: AEGIS-128L, AEGIS-256

Compatibility

This pre-release runs on .NET 6 and 7.

23.6.0-preview.2

10 months ago

New Features

  • Incremental signing and signature verification
  • Algorithms
    • Signature: Ed25519ph

Compatibility

This pre-release runs on .NET 6 and 7.

23.5.0-preview.1

1 year ago

API Changes

  • Deprecated APIs have been removed

Compatibility

This pre-release runs on .NET 6 and 7.

22.4.0

2 years ago

New release! 🎉

See Installation for installation details and supported platforms.

22.4.0-preview3

2 years ago

New Features

  • Extract-then-expand interface for HKDF

API Changes

  • A new KeyDerivationAlgorithm2 class deriving from the KeyDerivationAlgorithm class has been added
  • HkdfSha256 and HkdfSha512 classes have been changed to derive from the new KeyDerivationAlgorithm2 class
  • Method overloads accepting the password as a string have been added to PasswordBasedKeyDerivationAlgorithm
  • MinSaltSize and MaxSaltSize properties have been added to KeyDerivationAlgorithm and PasswordBasedKeyDerivationAlgorithm
  • KeyDerivationAlgorithm.SupportsSalt and PasswordBasedKeyDerivationAlgorithm.SaltSize have been deprecated and will be removed in a future version

Compatibility

This pre-release runs on .NET 5 and 6 as well as .NET Core 3.1.

21.11.0-preview2

2 years ago

New Features

  • Algorithms
    • AEAD: XChaCha20-Poly1305
    • Password-based key derivation: Argon2id & scrypt

API Changes

  • Import, TryImport, Export, and TryExport methods have been added to the SharedSecret class
  • The previous SharedSecret.Import method (without a SharedSecretBlobFormat parameter) is obsolete and will be removed in a future version
  • The KeyDerivationAlgorithm class has been extended to accept input keying material directly as ReadOnlySpan<byte>

Compatibility

This pre-release supports .NET 5 and 6 as well as .NET Core 3.1.

20.11.0-preview1

3 years ago

API Changes

  • The AeadAlgorithm class has been changed to accept nonces simply as ReadOnlySpan<byte>
  • The Nonce struct has been deprecated and will be removed in a future version
  • The RandomGenerator class has been deprecated and will be removed in a future version

Compatibility

This pre-release supports .NET 5.0 as well as .NET Core 3.1 and 2.1.

20.2.0

4 years ago

New release! :tada:

See Installation for installation details and supported platforms.