SAPTeam.EasySign
0.10.1
Prefix Reserved
See the version list below for details.
dotnet add package SAPTeam.EasySign --version 0.10.1
NuGet\Install-Package SAPTeam.EasySign -Version 0.10.1
<PackageReference Include="SAPTeam.EasySign" Version="0.10.1" />
<PackageVersion Include="SAPTeam.EasySign" Version="0.10.1" />
<PackageReference Include="SAPTeam.EasySign" />
paket add SAPTeam.EasySign --version 0.10.1
#r "nuget: SAPTeam.EasySign, 0.10.1"
#addin nuget:?package=SAPTeam.EasySign&version=0.10.1
#tool nuget:?package=SAPTeam.EasySign&version=0.10.1
Easy Sign
Easy Sign is a simple C# library for signing and verifying files. It supports multiple .NET targets, including .NET Standard 2.1, .NET 6, and .NET 8.
Features
- Sign files with X.509 certificates.
- Verify file integrity and signatures.
- Store files within the bundle.
- Support for concurrent operations.
- AOT compilation support.
- Logging support.
Installation
To install Easy Sign, run the following command:
dotnet add package SAPTeam.EasySign
Usage
Creating a Bundle
using SAPTeam.EasySign;
// Initialize a new bundle
var bundle = new Bundle("path/to/dir");
// Add files to the bundle
bundle.AddEntry("path/to/dir/file1.txt");
bundle.AddEntry("path/to/dir/file2.txt");
// Sign the bundle
var certificate = new X509Certificate2("path/to/certificate.pfx", "password");
var privateKey = certificate.GetRSAPrivateKey();
bundle.Sign(certificate, privateKey);
// Save the bundle
bundle.Update();
Loading and Verifying a Bundle
using SAPTeam.EasySign;
// Load an existing bundle
var bundle = new Bundle("path/to/dir");
bundle.LoadFromFile();
// Get certificate hash
string certificateHash = bundle.Signatures.Entries.First().Key;
// Verify certificate
bool isCertificateValid = bundle.VerifyCertificate(certificateHash);
// Verify signature
bool isSignatureValid = bundle.VerifySignature(certificateHash);
// Verify files integrity
bool isFileValid = bundle.VerifyFile("file1.txt");
bool isFile2Valid = bundle.VerifyFile("file2.txt");
Documentation
A full API Documentation is available at EasySign Project Site.
Command Line Interface
Easy Sign also provides a command line interface (CLI) for signing and verifying files. To install the CLI tool, use the following command:
dotnet tool install -g SAPTeam.EasySign.Tool
For more informations, see the CLI Readme.
Security Reporting
If you discover any security vulnerabilities, please report them by following our Security Guidelines.
Contributing
We welcome contributions! Please see our Contributing guide for more information on how to get started.
License
This project is licensed under the MIT License.
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net5.0 was computed. net5.0-windows was computed. net6.0 is compatible. 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 is compatible. 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. net9.0 is compatible. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. |
.NET Core | netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
.NET Standard | netstandard2.1 is compatible. |
MonoAndroid | monoandroid was computed. |
MonoMac | monomac was computed. |
MonoTouch | monotouch was computed. |
Tizen | 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.1
- Ensure.That (>= 10.1.0)
- Microsoft.Extensions.Logging (>= 8.0.1)
- System.Text.Json (>= 9.0.3)
-
net6.0
- Ensure.That (>= 10.1.0)
- Microsoft.Extensions.Logging (>= 8.0.1)
-
net8.0
- Ensure.That (>= 10.1.0)
- Microsoft.Extensions.Logging (>= 9.0.3)
-
net9.0
- Ensure.That (>= 10.1.0)
- Microsoft.Extensions.Logging (>= 9.0.3)
NuGet packages (1)
Showing the top 1 NuGet packages that depend on SAPTeam.EasySign:
Package | Downloads |
---|---|
SAPTeam.EasySign.CommandLine
A Library providing the EasySign API for console applications. |
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last updated |
---|---|---|
0.11.0 | 179 | 4/13/2025 |
0.10.1 | 164 | 4/13/2025 |
0.9.5 | 100 | 4/11/2025 |
0.9.2 | 101 | 4/4/2025 |
0.9.1 | 119 | 4/4/2025 |
0.9.0 | 155 | 4/3/2025 |
0.8.2 | 453 | 3/25/2025 |
0.7.2 | 454 | 3/25/2025 |
0.6.1 | 455 | 3/24/2025 |
0.5.2 | 391 | 3/24/2025 |
0.4.1 | 323 | 3/24/2025 |
0.3.1 | 256 | 3/23/2025 |
0.2.1 | 258 | 3/23/2025 |
0.1.2 | 143 | 3/23/2025 |