go.crypto.hmac 1.24.13.3

There is a newer version of this package available.
See the version list below for details.
dotnet add package go.crypto.hmac --version 1.24.13.3
                    
NuGet\Install-Package go.crypto.hmac -Version 1.24.13.3
                    
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="go.crypto.hmac" Version="1.24.13.3" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="go.crypto.hmac" Version="1.24.13.3" />
                    
Directory.Packages.props
<PackageReference Include="go.crypto.hmac" />
                    
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 go.crypto.hmac --version 1.24.13.3
                    
#r "nuget: go.crypto.hmac, 1.24.13.3"
                    
#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 go.crypto.hmac@1.24.13.3
                    
#: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=go.crypto.hmac&version=1.24.13.3
                    
Install as a Cake Addin
#tool nuget:?package=go.crypto.hmac&version=1.24.13.3
                    
Install as a Cake Tool

go.crypto.hmac

C# package converted from the Go standard library by go2cs.

Tests Docs
Source Source

Package hmac implements the Keyed-Hash Message Authentication Code (HMAC) as defined in U.S. Federal Information Processing Standards Publication 198. An HMAC is a cryptographic hash that uses a key to sign a message. The receiver verifies the hash by recomputing it using the same key.

Receivers should be careful to use Equal to compare MACs in order to avoid timing side-channels:

// ValidMAC reports whether messageMAC is a valid HMAC tag for message.
func ValidMAC(message, messageMAC, key []byte) bool {
	mac := hmac.New(sha256.New, key)
	mac.Write(message)
	expectedMAC := mac.Sum(nil)
	return hmac.Equal(messageMAC, expectedMAC)
}

Copyright 2009 The Go Authors. All rights reserved. This C# package is converted from Go standard library source; use of that source is governed by a BSD-style license that can be found in the LICENSE file.

Artwork licensed under Creative Commons Attribution 3.0; see artwork attribution.

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 (4)

Showing the top 4 NuGet packages that depend on go.crypto.hmac:

Package Downloads
go.crypto.tls

crypto.tls (net10.0 - Release) -- C# project converted from Go source

go.vendor.golang.org.x.crypto.hkdf

vendor.golang.org.x.crypto.hkdf (net10.0 - Release) -- C# project converted from Go source

go.net.smtp

net.smtp (net10.0 - Release) -- C# project converted from Go source

nugetgo.github.com.golang-jwt.jwt.v5

unofficial go2cs C# conversion of github.com/golang-jwt/jwt/v5 v5.3.1, built on the Go 1.24.13 standard library; not affiliated with or endorsed by the golang-jwt maintainers or the Go project. Security: that standard library carries no Go security fixes issued after Go 1.24.13; review before any production use.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
1.24.13.6 0 10/12/2026
1.24.13.5 83 10/9/2026
1.24.13.4 182 10/6/2026
1.24.13.3 205 10/2/2026
1.24.13.2 202 9/24/2026
1.24.13.1 201 9/24/2026
1.23.12.3 270 9/8/2026
1.23.12.2 253 8/29/2026
1.23.12.1 247 8/26/2026
1.23.1.7 361 8/23/2026
1.23.1.6 313 8/11/2026
1.23.1.5 312 8/9/2026
1.23.1.4 325 8/8/2026
1.23.1.3 349 8/4/2026
1.23.1.2 360 7/27/2026
1.23.1.1 372 7/14/2026