hash

package
v0.4.1 Latest Latest
Warning

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

Go to latest
Published: Jan 9, 2023 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Directory

func Directory(path string) (string, error)

Directory creates the hash value of a directory

func DirectoryExcludes

func DirectoryExcludes(srcPath string, excludePatterns []string, fast bool) (string, error)

DirectoryExcludes calculates a hash for a directory and excludes the submitted patterns

func File

func File(path string) (string, error)

File creates the hash value of a file

func Password

func Password(password string) (string, error)

Password hashes the password with sha256 and returns the string

func String

func String(s string) string

String hashes a given string

func StringToNumber

func StringToNumber(s string) uint32

StringToNumber hashes a given string to a number

Types

This section is empty.

Jump to

Keyboard shortcuts

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