sha256Username returns the SHA256 value of username
()
| 108 | |
| 109 | // sha256Username returns the SHA256 value of username |
| 110 | func 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 |
| 118 | func validateFlags() error { |