hash

package
v0.5.1 Latest Latest
Warning

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

Go to latest
Published: Sep 28, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FNV128

func FNV128(text string) string

FNV128 returns a new 128-bit FNV-1a encoded string.

func FNV32

func FNV32(text string) string

FNV32 returns a new 32-bit FNV-1a encoded string.

func FNV64

func FNV64(text string) string

FNV64 returns a new 64-bit FNV-1a encoded string.

func MD5

func MD5(text string) string

MD5 returns the MD5 checksum of the string.

func SHA1

func SHA1(text string) string

SHA1 returns the SHA1 checksum of the string.

func SHA1Short

func SHA1Short(text string) string

SHA1Short returns the first 6 characters of the SHA1 checksum of the string.

func SHA256

func SHA256(text string) string

SHA256 returns the SHA256 checksum of the string.

Types

This section is empty.

Jump to

Keyboard shortcuts

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