AWSSignatureGenerator 1.0.8
dotnet add package AWSSignatureGenerator --version 1.0.8
NuGet\Install-Package AWSSignatureGenerator -Version 1.0.8
<PackageReference Include="AWSSignatureGenerator" Version="1.0.8" />
paket add AWSSignatureGenerator --version 1.0.8
#r "nuget: AWSSignatureGenerator, 1.0.8"
// Install AWSSignatureGenerator as a Cake Addin #addin nuget:?package=AWSSignatureGenerator&version=1.0.8 // Install AWSSignatureGenerator as a Cake Tool #tool nuget:?package=AWSSignatureGenerator&version=1.0.8
AWSSignatureGenerator
Library for generating AWS V4 signatures. This library has not been tested comprehensively; bugs likely exist. Multiple examples of AWS V4 signature generation exists in random places and seemingly all of them have issues. This code was built using the AWS CLI and boto as a reference.
Feedback and Enhancements
Encounter an issue or have an enhancement request? Please file an issue or start a discussion here!
New in v1.0.x
- Initial release supporting V4 signatures
Examples
Refer to the Test
project for a full examples.
using AWSSignatureGenerator;
NameValueCollection headers = new NameValueCollection
{
{ "Host", "localhost:8000" },
{ "x-amz-content-sha256", "[sha256 hash, lowercase hex string" },
{ "x-amz-date", "20231109T012345Z" }
};
V4SignatureResult result = new V4SignatureResult(
"20231109T012345Z", // timestamp, of the form yyyyMMddTHHmmssZ
"GET", // HTTP method
"http://localhost:8000/", // URL
"AKIAIOSFODNN7EXAMPLE", // access key
"wJalrXU...EXAMPLEKEY", // secret key
"us-west-1", // region
"s3", // service
headers, // request headers
body, // request body, string, byte[], or Stream
V4PayloadHashEnum.Signed // Signed, IsStreaming, Unsigned
);
Console.WriteLine("Signature : " + result.Signature);
Console.WriteLine("Authorization header : " + result.AuthorizationHeader);
Version History
Refer to CHANGELOG.md for details.
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 is compatible. 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. |
.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
- No dependencies.
-
net6.0
- No dependencies.
-
net7.0
- No dependencies.
-
net8.0
- No dependencies.
NuGet packages (2)
Showing the top 2 NuGet packages that depend on AWSSignatureGenerator:
Package | Downloads |
---|---|
S3Server
Emulated Amazon Web Services (AWS) Simple Storage Service (S3) server-side interface. |
|
S3Lite
Lightweight Amazon S3 client without all the heft and dependency drag of the official library. |
GitHub repositories
This package is not used by any popular GitHub repositories.
Initial release