CryptoNet 3.0.1
Requires NuGet 1.0.0 or higher.
dotnet add package CryptoNet --version 3.0.1
NuGet\Install-Package CryptoNet -Version 3.0.1
<PackageReference Include="CryptoNet" Version="3.0.1" />
paket add CryptoNet --version 3.0.1
#r "nuget: CryptoNet, 3.0.1"
// Install CryptoNet as a Cake Addin #addin nuget:?package=CryptoNet&version=3.0.1 // Install CryptoNet as a Cake Tool #tool nuget:?package=CryptoNet&version=3.0.1
Introduction
🚀 CryptoNet is simple, fast, and a lightweight asymmetric and symmetric encryption NuGet library supporting .NET Standard 2.0 and C# 8.0 for cross platforms Windows, Linux, and iOS. It is a 100% native C# implementation based on Microsoft cryptography. It does not depend on other libraries.
Installation
You can install the CryptoNet NuGet package via NuGet.
Website
https://itbackyard.github.io/CryptoNet
Versions
is latest version and are maintained.
CryptoNet v3:
- RSA: Asymmetric cryptographic algorithm used for secure data transmission and digital signatures.
- AES: Symmetric cryptographic algorithm used for fast and secure data encryption.
- DSA: Asymmetric cryptographic algorithm used for digital signatures
CryptoNet Extensions v3:
- RSA PEM exporting and importing.
- Support for X509Certificate2.
- Ability to encrypt and decrypt text, and files like images, word, excel, and any byte content.
- Cross-platform compatible with Windows, Linux, and iOS.
Issues
Please report issues here.
How to use
Ref to docs.
Build and Testing
You have different options to build and run the unit tests from:
- Visual Studio 2019/2022.
- Visual Studio Code.
- dotnet command line.
- dotnet commands are preserved in a PowerShell script
build.ps1
. - Docker, run the following command from the solution folder:
docker build . --file .\Dockerfile --tag cryptonet-service:latest
or run preserved PowerShell:
./run_docker_build.ps1
How to release a new version?
Preview
.\run_release.ps1 -VersionNumber 3.0.0 -IsPreview $true
Release
.\run_release.ps1 -VersionNumber 3.0.0 -IsPreview $false
Documentation Creation
There are static and dynamically generated documentation. Both are published automatically in the pipeline called 5-static.yml
.
To work with the documentation locally, the following might be relevant:
- Static base documentation is located in the
docs
folder. - Dynamically generated documentation is created from code using a tool called DocFX.
Running Documentation Creation Locally
To generate the documentation locally on your computer, run:
.\run_docs.ps1
Setup
- Install the DocFX tool (only needs to be done once):
dotnet tool install -g docfx
- The following step is already configured in this repository. However, if you need to start over, run the following to initialize and configure DocFX:
docfx init -y
Update index.md
with README.md
To update index.md
with the latest content from README.md
, run the following command:
./run_update_index.ps1
This script will:
- Add the following header to the top of
index.md
:
---
_layout: landing
---
- Append the content of
README.md
toindex.md
.
This ensures that index.md is always up to date with the latest changes in README.md
.
Code Coverage
Code coverage ensures that your tests adequately cover your codebase, improving overall quality, reliability, and maintainability. Follow these steps to set up and generate code coverage reports.
Running Code Coverage Locally
To generate code coverage reports locally on your computer, run the following command in Windows:
.\run_codecoverage.ps1
Setup
If the required tools and packages are not set up locally, follow the steps below to configure them:
- Navigate to your test project directory (e.g.,
CryptoNet.UnitTests
):
cd .\CryptoNet.UnitTests\
- Add the necessary coverage packages to your test project:
dotnet add package coverlet.collector
dotnet add package coverlet.msbuild
- Install the report generator tool (only needs to be done once):
dotnet tool install --global dotnet-reportgenerator-globaltool
Once set up, you can use these tools to analyze and generate detailed code coverage reports to ensure thorough testing of your application.
Contributing
You are more than welcome to contribute in one of the following ways:
- Basic: Give input, and suggestions for improvement by creating an issue and labeling it https://github.com/itbackyard/CryptoNet/issues
- Advance: if you have good knowledge of C# and Cryptography just grab one of the issues, or features, or create a new one and refactor and add a pull request.
- Documentation: Add, update, or improve documentation, by making a pull request.
How to contribute:
Here is a link to learn how to contribute if you are not aware of how to do it.
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net5.0 was computed. net5.0-windows was computed. net6.0 was computed. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. 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. |
.NET Core | netcoreapp2.0 was computed. netcoreapp2.1 was computed. netcoreapp2.2 was computed. netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
.NET Standard | netstandard2.0 is compatible. netstandard2.1 was computed. |
.NET Framework | net461 was computed. net462 was computed. net463 was computed. net47 was computed. net471 was computed. net472 was computed. net48 was computed. net481 was computed. |
MonoAndroid | monoandroid was computed. |
MonoMac | monomac was computed. |
MonoTouch | monotouch was computed. |
Tizen | tizen40 was computed. tizen60 was computed. |
Xamarin.iOS | xamarinios was computed. |
Xamarin.Mac | xamarinmac was computed. |
Xamarin.TVOS | xamarintvos was computed. |
Xamarin.WatchOS | xamarinwatchos was computed. |
-
.NETStandard 2.0
- CryptoNet.ExtShared (>= 3.0.1)
- CryptoNet.Models (>= 3.0.1)
- System.Text.Json (>= 8.0.5)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.