check

package
v1.3.2 Latest Latest
Warning

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

Go to latest
Published: Jun 1, 2022 License: GPL-3.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	MD5ValRegexp    = regexp.MustCompile("^(?i)([0-9a-h]{32})$")
	SHA1ValRegexp   = regexp.MustCompile("^(?i)([0-9a-h]{40})$")
	SHA256ValRegexp = regexp.MustCompile("^(?i)([0-9a-h]{64})$")
	SHA512ValRegexp = regexp.MustCompile("^(?i)([0-9a-h]{128})$")
)

Functions

func IsMD5

func IsMD5(hash string) bool

func IsSHA1

func IsSHA1(hash string) bool

func IsSHA256

func IsSHA256(hash string) bool

func IsSHA512

func IsSHA512(hash string) bool

func IsValidHash

func IsValidHash(hash string) bool

Types

This section is empty.

Jump to

Keyboard shortcuts

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