vos

package
v0.0.0-...-5927a11 Latest Latest
Warning

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

Go to latest
Published: Sep 23, 2021 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidSecret            = errors.New("invalid secret")
	ErrDifferentHashAndPassword = errors.New("password hashes are not same")
)
View Source
var (
	ErrInvalidCPF = errors.New("invalid cpf")
)

Functions

func CompareHashAndSecret

func CompareHashAndSecret(secret string, hash string) error

func HashAndSalt

func HashAndSalt(secret Secret) string

func IsValidCPF

func IsValidCPF(cpf CPF) error

func IsValidSecret

func IsValidSecret(secret Secret) error

Types

type CPF

type CPF string

type Hash

type Hash interface {
	HashAndSalt(secret Secret) string
}

type Secret

type Secret string

Jump to

Keyboard shortcuts

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