validation

package
v0.0.0-...-cf47736 Latest Latest
Warning

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

Go to latest
Published: Oct 1, 2020 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ComputeSha1HMac

func ComputeSha1HMac(s string, t string) string

ComputeSha1HMac : Compute Sha1 HMac from a (secret,text) pair

func SafeCompareStrings

func SafeCompareStrings(s1 string, s2 string) bool

SafeCompareStrings : Time safe compare of 2 strings

func ValidateHMac

func ValidateHMac(h string, s string, t string) bool

ValidateHMac : Safe validate a given hmac with the (secret,text) pair

Types

This section is empty.

Jump to

Keyboard shortcuts

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