security

package
v0.0.0-...-eb64f0e Latest Latest
Warning

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

Go to latest
Published: Sep 18, 2018 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SaltHashCompare

func SaltHashCompare(digest []byte, password *string) bool

func SaltHashGenerate

func SaltHashGenerate(password *string) ([]byte, error)

Types

type IP

type IP struct {
	// contains filtered or unexported fields
}

IP allows to check that addresses are in a white list

func NewIP

func NewIP(whitelistStrings []string, insecure bool) (*IP, error)

NewIP builds a new IP given a list of CIDR-Strings to whitelist

func (*IP) Contains

func (ip *IP) Contains(addr string) (bool, net.IP, error)

Contains checks if provided address is in the white list

func (*IP) ContainsIP

func (ip *IP) ContainsIP(addr net.IP) bool

ContainsIP checks if provided address is in the white list

Jump to

Keyboard shortcuts

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