auth

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Feb 9, 2020 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Checksum

func Checksum(pw string) [32]byte

func Client

func Client(username, pw string) orbit.AuthnFunc

func PasswordHash

func PasswordHash(pw string) ([]byte, error)

func Server

func Server(hook GetHashHook) orbit.AuthnFunc

Types

type GetHashHook

type GetHashHook func(username string) (hash []byte, ok bool)

type HashedCredentials

type HashedCredentials map[string][]byte

Jump to

Keyboard shortcuts

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