Easy.Net.Common 10.0.2

dotnet add package Easy.Net.Common --version 10.0.2
                    
NuGet\Install-Package Easy.Net.Common -Version 10.0.2
                    
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="Easy.Net.Common" Version="10.0.2" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Easy.Net.Common" Version="10.0.2" />
                    
Directory.Packages.props
<PackageReference Include="Easy.Net.Common" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Easy.Net.Common --version 10.0.2
                    
#r "nuget: Easy.Net.Common, 10.0.2"
                    
#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.
#:package Easy.Net.Common@10.0.2
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Easy.Net.Common&version=10.0.2
                    
Install as a Cake Addin
#tool nuget:?package=Easy.Net.Common&version=10.0.2
                    
Install as a Cake Tool

Easy.Net.Common

Common utilities for .NET 10 applications.

Features

Result Pattern

A robust implementation of the Result pattern for handling operation outcomes without exceptions.

// Success case
var result = OpeResult<User>.Success(user);

// Failure case
var result = OpeResult<User>.Failure(ex, "User not found", HttpStatusCode.NotFound);

// Usage
if (result.IsSuccess)
{
    var user = result.Value;
}
else
{
    var error = result.Error;
    Console.WriteLine(error.FriendlyMessage);
}

Cryptography Helpers

AES-256-GCM encryption/decryption utilities using BouncyCastle.

// Generate key and nonce
var keyNonce = Cryptor.KeyNonce();

// Encrypt
byte[] encrypted = Cryptor.Encrypt(plainTextBytes, keyNonce);

// Decrypt
byte[] decrypted = Cryptor.Decrypt(encrypted, keyNonce);

Password-Based Key Derivation

Secure key derivation from passwords using PBKDF2.

// Create a new key from password
var keySalt = GetKeyFromPasswordHelper.CreateKey("myPassword");

// Restore key from password and salt
byte[] key = GetKeyFromPasswordHelper.RestoreKey("myPassword", savedSalt);

Installation

dotnet add package Easy.Net.Common

License

MIT

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

NuGet packages (1)

Showing the top 1 NuGet packages that depend on Easy.Net.Common:

Package Downloads
Easy.Net.Starter

Package Description

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
10.0.2 163 1/19/2026