utils

package
v0.3.6 Latest Latest
Warning

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

Go to latest
Published: Oct 24, 2018 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckPasswordHash added in v0.2.4

func CheckPasswordHash(password, hash string) bool

CheckPasswordHash will check password hash

func HashPassword added in v0.2.4

func HashPassword(password string) (string, error)

HashPassword will hash password

func IPToCIDR

func IPToCIDR(ip string, netmask string) string

IPToCIDR will do like 0.0.0.0/255.255.255.0 to 0.0.0.0/24

func Intersection

func Intersection(a, b []string) (ret []string)

Intersection will do intersection

func Intersections

func Intersections(input [][]string) (ret []string)

Intersections will do many intersection

func SHA256String

func SHA256String(str string) string

SHA256String will do SHA256 String

Types

This section is empty.

Jump to

Keyboard shortcuts

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