sri computes the SHA256/384/512 sum for a list of files, writing each line as NDJSON to a given io.Writer
go get github.com/kasperlewau/base62
$ find . -maxdepth 1 -type f | sri > shasums.json
import "github.com/kasperlewau/sri"
func main() {
b := []byte(`myfile.txt`)
if err := sri.Hash(bytes.NewReader(b), os.Stdout); err != nil {
panic(err)
}
}
MIT