VOOZH about

URL: https://www.nuget.org/packages/AWS.EncryptionSDK/

⇱ NuGet Gallery | AWS.EncryptionSDK 3.1.0




👁 Image
AWS.EncryptionSDK 3.1.0

Prefix Reserved
Suggested Alternatives

AWS.Cryptography.EncryptionSDK

dotnet add package AWS.EncryptionSDK --version 3.1.0
 
 
NuGet\Install-Package AWS.EncryptionSDK -Version 3.1.0
 
 
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="AWS.EncryptionSDK" Version="3.1.0" />
 
 
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="AWS.EncryptionSDK" Version="3.1.0" />
 
Directory.Packages.props
<PackageReference Include="AWS.EncryptionSDK" />
 
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 AWS.EncryptionSDK --version 3.1.0
 
 
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: AWS.EncryptionSDK, 3.1.0"
 
 
#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 AWS.EncryptionSDK@3.1.0
 
 
#: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=AWS.EncryptionSDK&version=3.1.0
 
Install as a Cake Addin
#tool nuget:?package=AWS.EncryptionSDK&version=3.1.0
 
Install as a Cake Tool
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

AWS Encryption SDK for .NET

AWS Encryption SDK for .NET

Using the AWS Encryption SDK for .NET

The AWS Encryption SDK is available on NuGet and can referenced from an existing .csproj through typical ways.

Using the dotnet CLI:

dotnet add <your-project-name>.csproj package AWS.EncryptionSDK

Alternatively, you may directly modify the .csproj and add the AWS Encryption SDK to PackageReference ItemGroup:

<PackageReference Include="AWS.EncryptionSDK" />

The AWS Encryption SDK targets both .NET/.NET Core 3.1 and newer on all platforms, and .NET Framework 4.5.2 and newer on Windows only.

Additional setup for macOS only

If you are using macOS then you must install OpenSSL 1.1, and the OpenSSL 1.1 lib directory must be on the dynamic linker path at runtime. Also, if using an M1-based Mac, you must install OpenSSL and the .NET SDK for x86-64. Please refer to the wiki for detailed instructions.

Building the AWS Encryption SDK for .NET

To build, the AWS Encryption SDK requires the most up to date version of Dafny on your PATH.

The AWS Encryption SDK targets frameworks netstandard2.1 and net452. Tests and test vectors target frameworks netcoreapp3.1 and net452. In all cases, net452 and newer .NET Framework versions are only supported on Windows. To build and test the AWS Encryption SDK, you must install the following .NET tools:

You will also need to ensure that you fetch all submodules using either git clone --recursive ... when cloning the repository or git submodule update --init on an existing clone.

To build all source files into one dll:

dotnet build

(Optional) Set up the AWS Encryption SDK to work with AWS KMS

If you set up the AWS Encryption SDK to use the AWS KMS Keyring, the AWS Encryption SDK will make calls to AWS KMS on your behalf, using the appropriate AWS SDK.

However, you must first set up AWS credentials for use with the AWS SDK. Instructions for setting up AWS credentials are available in the AWS Docs for the AWS SDK for .NET..

Testing the AWS Encryption SDK for .NET

Configure AWS credentials

To run the test suite you must first set up AWS credentials for use with the AWS SDK. This is required in order to run the integration tests, which use a KMS Keyring against a publically accessible KMS CMK.

Instructions for setting up AWS credentials are available in the AWS Docs for the AWS SDK for .NET.

Run the tests

Run the test suite with:

dotnet test

You can see more detail about what test cases are being run by increasing the verbosity:

dotnet test --logger:"console;verbosity=normal"

Run the test vector suite after with:

dotnet test TestVectors

Run tests on examples, to ensure they are up to date:

dotnet test Examples

Please note that tests and test vectors require internet access and valid AWS credentials, since calls to KMS are made as part of the test workflow.

Generate decryption test vectors

See the .

Generate code coverage results

From the Test/ directory, you can generate a coverage.cobertura.xml file containing code coverage results to the Test/TestResults/ directory with:

dotnet test --collect:"XPlat Code Coverage" --settings ../runsettings.xml

We use Coverlet for our code coverage. For a list of Coverlet commands/additional options, please see the following usage guide.

We use ReportGenerator to visualize code coverage.

Install ReportGenerator with:

dotnet new tool-manifest
dotnet tool install dotnet-reportgenerator-globaltool

From Source/, generate a human readable index.html file of our code coverage to Test/TestResults/ with:

dotnet reportgenerator
"-reports:../Test/TestResults/coverage.cobertura.xml" 
"-targetdir:../Test/TestResults"

To view the code coverage report, open the index.html file in any browser.

License

This library is licensed under the Apache 2.0 License.

Product Versions Compatible and additional computed target framework versions.
.NET net5.0 net5.0 was computed.  net5.0-windows net5.0-windows was computed.  net6.0 net6.0 was computed.  net6.0-android net6.0-android was computed.  net6.0-ios net6.0-ios was computed.  net6.0-maccatalyst net6.0-maccatalyst was computed.  net6.0-macos net6.0-macos was computed.  net6.0-tvos net6.0-tvos was computed.  net6.0-windows net6.0-windows was computed.  net7.0 net7.0 was computed.  net7.0-android net7.0-android was computed.  net7.0-ios net7.0-ios was computed.  net7.0-maccatalyst net7.0-maccatalyst was computed.  net7.0-macos net7.0-macos was computed.  net7.0-tvos net7.0-tvos was computed.  net7.0-windows net7.0-windows was computed.  net8.0 net8.0 was computed.  net8.0-android net8.0-android was computed.  net8.0-browser net8.0-browser was computed.  net8.0-ios net8.0-ios was computed.  net8.0-maccatalyst net8.0-maccatalyst was computed.  net8.0-macos net8.0-macos was computed.  net8.0-tvos net8.0-tvos was computed.  net8.0-windows net8.0-windows was computed.  net9.0 net9.0 was computed.  net9.0-android net9.0-android was computed.  net9.0-browser net9.0-browser was computed.  net9.0-ios net9.0-ios was computed.  net9.0-maccatalyst net9.0-maccatalyst was computed.  net9.0-macos net9.0-macos was computed.  net9.0-tvos net9.0-tvos was computed.  net9.0-windows net9.0-windows was computed.  net10.0 net10.0 was computed.  net10.0-android net10.0-android was computed.  net10.0-browser net10.0-browser was computed.  net10.0-ios net10.0-ios was computed.  net10.0-maccatalyst net10.0-maccatalyst was computed.  net10.0-macos net10.0-macos was computed.  net10.0-tvos net10.0-tvos was computed.  net10.0-windows net10.0-windows was computed. 
.NET Core netcoreapp3.0 netcoreapp3.0 was computed.  netcoreapp3.1 netcoreapp3.1 was computed. 
.NET Standard netstandard2.1 netstandard2.1 is compatible. 
.NET Framework net452 net452 is compatible.  net46 net46 was computed.  net461 net461 was computed.  net462 net462 was computed.  net463 net463 was computed.  net47 net47 was computed.  net471 net471 was computed.  net472 net472 was computed.  net48 net48 was computed.  net481 net481 was computed. 
MonoAndroid monoandroid monoandroid was computed. 
MonoMac monomac monomac was computed. 
MonoTouch monotouch monotouch was computed. 
Tizen tizen60 tizen60 was computed. 
Xamarin.iOS xamarinios xamarinios was computed. 
Xamarin.Mac xamarinmac xamarinmac was computed. 
Xamarin.TVOS xamarintvos xamarintvos was computed. 
Xamarin.WatchOS xamarinwatchos xamarinwatchos 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 AWS.EncryptionSDK:

Package Downloads
Tiger.ContinuationToken

A model binder for encoded application continuation tokens.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
3.1.0 999,744 9/7/2022 3.1.0 is deprecated because it is no longer maintained.
3.0.0 57,967 5/17/2022