hash

package
v0.0.0-...-455cc0d Latest Latest
Warning

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

Go to latest
Published: Aug 2, 2022 License: AGPL-3.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Check

func Check(hash, password string) bool

Check password hash.

func Hash

func Hash(password string, cost int) (string, error)

Generating a new password hash.

Types

type Password

type Password interface {
	Hash(password string, cost int) (string, error)
	Check(hash, password string) bool
}

Password hash interface.

Jump to

Keyboard shortcuts

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