Cryptonite 0.3.0

dotnet add package Cryptonite --version 0.3.0
NuGet\Install-Package Cryptonite -Version 0.3.0
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Cryptonite" Version="0.3.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Cryptonite --version 0.3.0
#r "nuget: Cryptonite, 0.3.0"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install Cryptonite as a Cake Addin
#addin nuget:?package=Cryptonite&version=0.3.0

// Install Cryptonite as a Cake Tool
#tool nuget:?package=Cryptonite&version=0.3.0

Cryptonite

Written by CypherPotato

Cryptonite is an .NET library which provides cryptographic utilities. It is cross-platform, functional and simple to use, without requiring much technical knowledge of cryptography and easy to use.

Functions

  • Cryptonite.StaticOperations.TimingSafeEqual: evaluates an timing-attack-resistant comparison between spans A and B.
  • Cryptonite.StaticOperations.Range: gets an span range from another span.
  • Cryptonite.StaticOperations.PadZeros: pads leading or trailing bytes from another span.
  • Cryptonite.StaticOperations.Copy: copies contents from A to B at specified offset.
  • Cryptonite.StaticOperations.RefXorGate: performs an xor operation in A using B.
  • Cryptonite.StaticOperations.RefRandomSecureBytes: gets an random byte array in an existing span.
  • Cryptonite.StaticOperations.XorGate: returns an span resulted from a xor operation between the two arrays A^B.
  • Cryptonite.StaticOperations.RandomSecureBytes: gets an new array with secure random bytes at specified length.
  • Cryptonite.StaticOperations.ScryptDerive: creates an SCRYPT key derive from an key, at an specified length.
  • Cryptonite.StaticOperations.Pbkdf2Derive: creates an hashing key derive from an key, at an specified length.

Credits

Some old code has been updated to be compatible with new features of the latest framework by me, however all the heavy lifting is dedicated to the original creators of the implementations.

Product Compatible and additional computed target framework versions.
.NET net7.0 is compatible.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • net7.0

    • No dependencies.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
0.3.0 226 11/25/2023
0.2.3 163 8/2/2023
0.2.0 122 5/29/2023
0.1.0 146 4/29/2023