Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Algorithm ¶
type Algorithm string
type Digest ¶
type Digest string
Digest allows simple protection of hex formatted digest strings, prefixed by their algorithm.
The following is an example of the contents of Digest types:
sha256:7173b809ca12ec5dee4506cd86be934c4596dd234ee82c0662eac04a8c2c71dc
func CalcSHA256 ¶
func CalcSHA256(r io.ReadSeeker) (Digest, error)
func NewDigestFromString ¶ added in v0.42.0
NewDigestFromString returns a Digest from alg and a string.
Click to show internal directories.
Click to hide internal directories.