auth

package
v0.2.4-0...-bb5b233 Latest Latest
Warning

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

Go to latest
Published: Jan 30, 2017 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const PasswordCost = 10 // for bcrypt

Variables

This section is empty.

Functions

func CheckPassword

func CheckPassword(pw string) error

func CheckUsername

func CheckUsername(usr string) error

func GenerateRandomKey

func GenerateRandomKey(strength int) []byte

Taken from 'gorilla toolkit secure cookie'

func PasswordEncrypt

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

func ValidatePassword

func ValidatePassword(pwh, pw []byte) bool

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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