Documentation ¶
Index ¶
Constants ¶
View Source
const ( // SHA256Size is the size of a SHA-256 hash. SHA256Size = sha256.Size // SHA512Size is the size of a SHA-512 hash. SHA512Size = sha512.Size )
Variables ¶
This section is empty.
Functions ¶
func SHA256File ¶
SHA256File computes the SHA-256 hash of the file denoted by filename and returns it as a hex encoded string.
func SHA256Sum ¶
SHA256Sum computes the SHA-256 hash of all files and writes the result to w. If bsdFormat is true, output is shown in BSD-style. Linux-style otherwise.
func SHA512File ¶
SHA512File computes the SHA-512 hash of the file denoted by filename and returns it as a hex encoded string.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.