Skip to content

ifraixedes/go-hmac-validator

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 

Go HMAC Validator

Go Report Card GoDoc

A generic tiny Golang package to check HMAC signatures generated by Internet Services to guarantee the HTTP request origin.

Usage

Documentation

Package is documented following Golang conventions so you can generate them with godoc command or read them online on godoc.org.

The package is served under a custom domain and a canonical import path is set in order to restrict to import this package through the github.com domain, hence for getting it you have to

go get go.fraixed.es/hmacval

Golang Version & dependencies

The library may work with a few previous Golang releases, however I haven't tested in any than 1.6.

The current dependencies are only used in the tests, which are testify assert and require

Roadmap

Write some benchmarks and do an implementation of using key/value byte slice as payload than a map to compare how map type probably penalize and it may be avoided.

Why

After I implemented this concept in a node module, I thought that would be great to have this generic HMAC validation functionality for Golang, so I took the concept and I developed it in the Go way (this is not a the NodeJS implementation translated to Go).

Related works

The same concept and similar functionality for NodeJS

License

MIT, read LICENSE file for more information.

About

A generic HMAC signature validator for Go

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published