auth

package
v1.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 4, 2023 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetContentHashBase64

func GetContentHashBase64(content []byte) string

Hash content with SHA256 and return the hash in base64

func GetHmac

func GetHmac(content string, key []byte) string

Hash content with HMAC-SHA256 and return the hash in base64

func SignRequestHMAC

func SignRequestHMAC(secret string, req *http.Request) error

SignRequestHMAC signs a HTTP request with HMAC-SHA256

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL