hash

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Jul 6, 2020 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Salt = "and-pepper"

Salt for hashing

Functions

func DecodeID added in v0.3.0

func DecodeID(len int, hash string) []int

DecodeID decodes hash id into integers.

func EncodeID added in v0.3.0

func EncodeID(len int, input ...int) string

EncodeID encodes integer inputs to hash id string.

func GenerateMD5 added in v0.2.1

func GenerateMD5() string

GenerateMD5 returns a generated md5 hash.

func GenerateSha1 added in v0.3.0

func GenerateSha1() string

GenerateSha1 returns a generated sha1 hash.

func MD5 added in v0.2.1

func MD5(s string) string

MD5 returns a md5 hashed string.

func Sha1 added in v0.3.0

func Sha1(s string) string

Sha1 returns a sha1 hashed string.

Types

This section is empty.

Jump to

Keyboard shortcuts

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