auth

package
v0.0.0-...-5469a11 Latest Latest
Warning

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

Go to latest
Published: Apr 14, 2016 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

package auth implement authorized.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Authority

type Authority interface {

	//Verify verify the hash with the password & salt.
	Verify(privSalt, password, hash []byte) bool

	//HashAndSalt generate a new hash & salt pair from password.
	HashAndSalt(password []byte) ([]byte, []byte, error)
}

Authority implments authorized.

var Auther Authority = auth{}

Auther is a helper for authorized.

Jump to

Keyboard shortcuts

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