security

package
v0.2.4 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ACCOUNTS_FILEPATH = "./accounts"

Functions

func LoadConfig

func LoadConfig()

func SaltHash

func SaltHash(s string) string

func SetSalt

func SetSalt(s string)

func StartSession

func StartSession(rw http.ResponseWriter, user string)

A session is valid for two days

func UpdateSession added in v0.2.2

func UpdateSession(rw http.ResponseWriter, req *http.Request)

func ValidSession

func ValidSession(req *http.Request) bool

func Validate

func Validate(user string, pass string) bool

Types

This section is empty.

Jump to

Keyboard shortcuts

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