Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HMACHasher ¶
type HMACHasher struct {
// contains filtered or unexported fields
}
HMACHasher implements Hasher using HMAC-SHA256.
func NewHMACHasher ¶
func NewHMACHasher(key []byte) *HMACHasher
NewHMACHasher returns an HMACHasher keyed with the given secret.
func (*HMACHasher) Hash ¶
func (h *HMACHasher) Hash(plaintext string) string
Hash returns the HMAC-SHA256 hex digest of plaintext.
Click to show internal directories.
Click to hide internal directories.