import "github.com/egdaemon/eg/runtime/x/wasi/egsha256x"
<a name="Digest"></a>
func Digest[T string | []byte](b T) hash.Hash
digest the provided contents and return the resulting hash. if an error occurs during hashing then a nil value is returned.
<a name="DigestFile"></a>
func DigestFile(path ...string) hash.Hash
digest the contents from the provided filename and return the resulting hash. if an error occurs during hashing then a nil value is returned.
<a name="DigestIO"></a>
func DigestIO(r io.Reader) hash.Hash
digest the provided reader and return the resulting hash. if an error occurs during hashing then a nil value is returned.
<a name="FormatBase64"></a>
func FormatBase64(m hash.Hash) string
format hash to a base64 encoded string
<a name="FormatHex"></a>
func FormatHex(m hash.Hash) string
format hash to a hex encoded string
<a name="String"></a>
func String(s string) string
String to hash base64 encoded string