hasher

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Aug 20, 2023 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Hasher

type Hasher interface {
	Hash(b []byte) string
}

Hasher is an interface to abstract hash calculation.

type Service

type Service struct {
	// contains filtered or unexported fields
}

Service represents the password reset token management service.

func New

func New(h hash.Hash) Service

New initializes the token generation service.

func (Service) Hash

func (s Service) Hash(b []byte) string

Hash hashes a stream of bytes using sha2 algorithm.

Jump to

Keyboard shortcuts

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