crypto

package module
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Apr 7, 2021 License: Apache-2.0 Imports: 9 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetCrc32

func GetCrc32(b []byte) string

GetCrc32 returns CRC32 checksum in hex format.

func GetMd5

func GetMd5(b []byte) string

GetMd5 returns MD5 hash.

func GetSha1

func GetSha1(b []byte) string

GetSha1 returns SHA1 hash.

func GetSha256

func GetSha256(b []byte) string

GetSha256 returns SHA256 hash.

func GetSha512

func GetSha512(b []byte) string

GetSha512 returns SHA512 hash.

func GetSsdeep

func GetSsdeep(b []byte) (string, error)

GetSsdeep returns ssdeep fuzzy hash.

Types

type Result

type Result struct {
	Crc32  string
	Md5    string
	Sha1   string
	Sha256 string
	Sha512 string
	Ssdeep string
}

Result aggregates all hashes.

func HashBytes

func HashBytes(data []byte) Result

HashBytes run all crypto modules and return results.

Jump to

Keyboard shortcuts

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