hash

package
v0.0.0-...-d3ff880 Latest Latest
Warning

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

Go to latest
Published: Oct 11, 2022 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SHA1Hasher

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

SHA1Hasher uses SHA1 to hash passwords with provided salt.

func NewSHA1Hasher

func NewSHA1Hasher(salt string) *SHA1Hasher

func (*SHA1Hasher) Hash

func (h *SHA1Hasher) Hash(password string) (string, error)

Hash creates SHA1 hash of given password.

Jump to

Keyboard shortcuts

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