file-store/pkg/storefile/util.go

11 lines
128 B
Go
Raw Permalink Normal View History

2022-08-24 02:54:01 +00:00
package storefile
import (
"crypto/sha256"
)
func sha256sum(input []byte) []byte {
v := sha256.Sum256(input)
return v[:]
}