MCPcopy
hub / github.com/bitfield/script / SHA256Sum

Method SHA256Sum

script.go:877–879  ·  view source on GitHub ↗

SHA256Sum returns the hex-encoded SHA-256 hash of the entire contents of the pipe, or an error. Deprecated: SHA256Sum has been deprecated by [Pipe.Hash]. To get the SHA-256 hash for the contents of the pipe, call `Hash(sha256.new())`

()

Source from the content-addressed store, hash-verified

875// Deprecated: SHA256Sum has been deprecated by [Pipe.Hash]. To get the SHA-256
876// hash for the contents of the pipe, call `Hash(sha256.new())`
877func (p *Pipe) SHA256Sum() (string, error) {
878 return p.Hash(sha256.New())
879}
880
881// SHA256Sums reads paths from the pipe, one per line, and produces the
882// hex-encoded SHA-256 hash of each corresponding file, one per line. Any files

Calls 1

HashMethod · 0.95