InnoAndLogic.Shared
1.0.9
dotnet add package InnoAndLogic.Shared --version 1.0.9
NuGet\Install-Package InnoAndLogic.Shared -Version 1.0.9
<PackageReference Include="InnoAndLogic.Shared" Version="1.0.9" />
<PackageVersion Include="InnoAndLogic.Shared" Version="1.0.9" />
<PackageReference Include="InnoAndLogic.Shared" />
paket add InnoAndLogic.Shared --version 1.0.9
#r "nuget: InnoAndLogic.Shared, 1.0.9"
#:package InnoAndLogic.Shared@1.0.9
#addin nuget:?package=InnoAndLogic.Shared&version=1.0.9
#tool nuget:?package=InnoAndLogic.Shared&version=1.0.9
InnoAndLogic.Shared
Overview
InnoAndLogic.Shared
is a shared library designed to provide reusable components for .NET projects. It includes utilities, models, and enums that simplify common development tasks and promote code reuse across projects.
Features
- Encryption Utilities: Securely encrypt and decrypt data using AES with password-based key derivation.
- Result Handling: Fluent APIs for handling operation results, including success and failure states.
- Error Codes: Predefined enums for consistent error handling.
Usage
This library is published as a NuGet package and can be used in various projects, including InnoAndLogic.Persistence
and other .NET applications.
Installation
To install the NuGet package, use the following command: dotnet add package InnoAndLogic.Shared
Example Usage
Encryptionusing InnoAndLogic.Shared;
var password = "securePassword"; var salt = 12345678L; var data = new byte[] { 1, 2, 3, 4 };
// Encrypt data var encrypted = Encryption.Encrypt(password, salt, data);
// Decrypt data var decrypted = Encryption.Decrypt(password, salt, encrypted);
Result Handlingusing InnoAndLogic.Shared;
using InnoAndLogic.Shared.Models;
var result = Result.Success; result = result.Then(() ⇒ Result.Failure(ErrorCodes.ValidationError, "Invalid input"));
if (result.IsFailure) { Console.WriteLine(result.ErrorMessage); }
License
This library is licensed under the MIT License. See the LICENSE file for details.
Repository
For more information, visit the GitHub repository.
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | 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 was computed. 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. net10.0 was computed. 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. |
-
net8.0
- Evolve (>= 3.2.0)
- Microsoft.Extensions.Configuration.Abstractions (>= 9.0.0)
- Microsoft.Extensions.Configuration.Binder (>= 9.0.0)
- Microsoft.Extensions.Options (>= 9.0.0)
- Npgsql (>= 9.0.2)
- StackExchange.Redis (>= 2.8.37)
NuGet packages (1)
Showing the top 1 NuGet packages that depend on InnoAndLogic.Shared:
Package | Downloads |
---|---|
InnoAndLogic.Persistence
A library for database persistence and migrations using PostgreSQL. |
GitHub repositories
This package is not used by any popular GitHub repositories.