MCPcopy Create free account
hub / github.com/codingo/bbr / sha256Username

Function sha256Username

bbr.go:110–115  ·  view source on GitHub ↗

sha256Username returns the SHA256 value of username

()

Source from the content-addressed store, hash-verified

108
109// sha256Username returns the SHA256 value of username
110func sha256Username() []byte {
111 hash := sha256.New()
112 hash.Write([]byte(*username))
113 md := hash.Sum(nil)
114 return []byte(fmt.Sprintf("%x", md))
115}
116
117// validateFlags validates if all the required flags are set
118func validateFlags() error {

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected