gohash

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: May 3, 2019 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateRandomBytes

func GenerateRandomBytes(length int) []byte

GenerateRandomBytes Generate n number of random bytes

func GetHash

func GetHash(input string) (string, error)

GetHash Generate a hash based on the input and return it hexadecimal

func NeedsRehash

func NeedsRehash(hash string) (bool, error)

NeedsRehash Check whether the given hash needs a newer algorithm, parameters or bigger size

func VerifyHash

func VerifyHash(hash string, input string) (bool, error)

VerifyHash Check whether the given value matches the given hash

Types

This section is empty.

Jump to

Keyboard shortcuts

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