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: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ServerValues = &serverValues{}

Functions

func Checksum

func Checksum(s string) [32]byte

Checksum calculates the SHA256 Checksum of the given string.

func ClientHook

func ClientHook(username, pw string) orbit.Hook

func Hash

func Hash(s string) ([]byte, error)

Hash calculates the bcrypt hash of the SHA256 checksum of the given string.

func ServerHook

func ServerHook(hf UserHashFunc) orbit.Hook

Types

type UserHashFunc

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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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