hash

package
v0.0.0-...-7426b64 Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2024 License: BSD-3-Clause Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ShortHash

func ShortHash(data ...string) string

ShortHash will return the first 4 bytes in base16 of the sha1 sum of the provided data.

For example:

  ShortHash("ActiveState-TestProject-python3")
	 => e784c7e0

This is useful for creating a shortened namespace for language installations.

Types

This section is empty.

Jump to

Keyboard shortcuts

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