hash_id

package module
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Aug 9, 2022 License: MIT Imports: 3 Imported by: 0

README

hash_id

Hash algorithm identifier

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ALGORITHMS = map[string]map[string]any{
	"MD5": {
		"Length": 32,
		"Format": "AlphaNum",
	},
	"SHA1": {
		"Length": 40,
		"Format": "AlphaNum",
	},
	"SHA224": {
		"Length": 56,
		"Format": "AlphaNum",
	},
	"SHA256": {
		"Length": 64,
		"Format": "AlphaNum",
	},
	"SHA384": {
		"Length": 96,
		"Format": "AlphaNum",
	},
	"SHA512": {
		"Length": 128,
		"Format": "AlphaNum",
	},
	"HAVAL128": {
		"Length": 32,
		"Format": "AlphaNum",
	},
	"HAVAL160": {
		"Length": 40,
		"Format": "AlphaNum",
	},
	"HAVAL192": {
		"Length": 48,
		"Format": "AlphaNum",
	},
	"HAVAL224": {
		"Length": 56,
		"Format": "AlphaNum",
	},
	"HAVAL256": {
		"Length": 64,
		"Format": "AlphaNum",
	},
	"CRC16": {
		"Length": 4,
		"Format": "Num",
	},
	"CRC32": {
		"Length": 8,
		"Format": "AlphaNum",
	},
}

Available formats: AlphaNum Alpha Num

Functions

func Identify

func Identify(hash string) []string

Returns possible hash algorithm for given hash

func IsNum

func IsNum(s 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