Shuttle.Core.Encryption 21.0.0-alpha

Prefix Reserved
This is a prerelease version of Shuttle.Core.Encryption.
dotnet add package Shuttle.Core.Encryption --version 21.0.0-alpha
                    
NuGet\Install-Package Shuttle.Core.Encryption -Version 21.0.0-alpha
                    
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="Shuttle.Core.Encryption" Version="21.0.0-alpha" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Shuttle.Core.Encryption" Version="21.0.0-alpha" />
                    
Directory.Packages.props
<PackageReference Include="Shuttle.Core.Encryption" />
                    
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 Shuttle.Core.Encryption --version 21.0.0-alpha
                    
#r "nuget: Shuttle.Core.Encryption, 21.0.0-alpha"
                    
#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 Shuttle.Core.Encryption@21.0.0-alpha
                    
#: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=Shuttle.Core.Encryption&version=21.0.0-alpha&prerelease
                    
Install as a Cake Addin
#tool nuget:?package=Shuttle.Core.Encryption&version=21.0.0-alpha&prerelease
                    
Install as a Cake Tool

Shuttle.Core.Encryption

Provides an encryption adapter through the IEncryptionAlgorithm interface.

Implementations available in this package:

  • TripleDesEncryptionAlgorithm
  • NullEncryptionAlgorithm

There is also an IEncryptionService that acts as a central container for all registered IEncryptionAlgorithm implementations.

Configuration

In order to add encryption:

services.AddEncryption(builder => {
	builder.AddTripleDes(tripleDesOptions);
});

Will try to add the EncryptionService singleton, with an option to add the TripleDesEncryptionAlgorithm instance using the given symmetric Key.

The default JSON settings structure is as follows:

{
	"Shuttle": {
		"TripleDes": {
			"Key": "triple-des-key"
		}
	}
}

Usage

var algorithm = encryptionService.Get("algorithm-name");
var encrypted = await algorithm.EncryptAsync(Encoding.UTF8.GetBytes("some data"));
var decrypted = await algorithm.DecryptAsync(encrypted);
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 (3)

Showing the top 3 NuGet packages that depend on Shuttle.Core.Encryption:

Package Downloads
Shuttle.Esb

Contains the core Shuttle.Esb assembly that should always be referenced when building Shuttle.Esb solutions.

Shuttle.Recall

Event sourcing mechanism.

Shuttle.Hopper

Hopper is a flexible enterprise service bus which works with Azure Storage Queues, Amazon SQS, RabbitMQ, Kafka, and Event Hubs through a provider plugin API.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
21.0.0-alpha 59 1/18/2026
20.0.0 4,257 2/2/2025
12.0.1 5,213 5/3/2024
12.0.0 1,484 4/30/2024
11.0.1 16,631 12/1/2022
11.0.0 27,884 9/4/2022
10.0.3 49,079 11/27/2020
10.0.2 71,776 10/15/2018
10.0.1 63,924 7/3/2018
10.0.0 22,964 1/2/2018