Documentation
¶
Overview ¶
Package hash provides a simple interface to hash strings and files using various algorithms.
Index ¶
- func FileMd5(path string) (string, error)
- func FileSha1(path string) (string, error)
- func FileSha256(path string) (string, error)
- func FileSha3New256(path string) (string, error)
- func StringMd5(data string) string
- func StringSha1(data string) string
- func StringSha256(data string) string
- func StringSha3New256(data string) string
- type Algorithm
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FileSha256 ¶
FileSha256 returns the sha256 hash of the file
func FileSha3New256 ¶
FileSha3New256 returns the sha3-256 hash of the file
func StringSha1 ¶
StringSha1 returns the sha1 hash of the string
func StringSha256 ¶
StringSha256 returns the sha256 hash of the string
func StringSha3New256 ¶
StringSha3New256 returns the sha3-256 hash of the string
Types ¶
Click to show internal directories.
Click to hide internal directories.