* Hash is a function that takes an input message and returns a fixed-size string of bytes that is unique to the input to produce a short, fixed-length representation of the data, which can be used for various applications like data integrity checks */ Hasher() returns the global hashing alg
()
| 23 | |
| 24 | // Hasher() returns the global hashing algorithm used |
| 25 | func Hasher() hash.Hash { return sha256.New() } |
| 26 | |
| 27 | // Hash() executes the global hashing algorithm on input bytes |
| 28 | func Hash(msg []byte) []byte { |