auth

package
v0.0.0-...-f62d8aa Latest Latest
Warning

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

Go to latest
Published: Aug 2, 2020 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Authorizer

type Authorizer struct {
}

Authorizer is responsible for authorization and security related operations

func New

func New() *Authorizer

New creates a new Authorizer

func (*Authorizer) HashMatchesPassword

func (*Authorizer) HashMatchesPassword(saltedhash string, password string) bool

HashMatchesPassword checks if the salted hash matches the given plain text password, returning true if there is a match, false otherwise.

func (*Authorizer) PasswordHash

func (*Authorizer) PasswordHash(pass string) (string, error)

PasswordHash is responsible for creating safe hashes from passwords, suitable for storage and comparison later using IsPasswordMatch.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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