hash

package
v1.45.0 Latest Latest
Warning

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

Go to latest
Published: May 30, 2025 License: Apache-2.0 Imports: 9 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Bcrypt added in v1.45.0

func Bcrypt(password string) []byte

func CorrectBcrypt

func CorrectBcrypt(hash []byte, password string) bool

func CreateHMAC added in v1.45.0

func CreateHMAC(data, key []byte, h func() hs.Hash) *hash.Hash

func CreateHash added in v1.45.0

func CreateHash(data []byte, h hash2.Hash) *hash.Hash

func MD5

func MD5(data []byte) string

func Shake128 added in v1.45.0

func Shake128(data []byte, bits int) string

NewShake128 creates a new SHAKE128 variable-output-length ShakeHash. Its generic security strength is 128 bits against all attacks if at least 32 bytes of its output are used.

func Shake256 added in v1.45.0

func Shake256(data []byte, bits int) string

NewShake256 creates a new SHAKE256 variable-output-length ShakeHash. Its generic security strength is 256 bits against all attacks if at least 64 bytes of its output are used.

Types

This section is empty.

Jump to

Keyboard shortcuts

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