mirror of
https://github.com/PretendoNetwork/nex-go.git
synced 2025-04-02 11:02:14 -04:00
11 lines
No EOL
181 B
Go
11 lines
No EOL
181 B
Go
package nex
|
|
|
|
import "crypto/md5"
|
|
|
|
|
|
// MD5Hash returns the MD5 hash of the input
|
|
func MD5Hash(text []byte) []byte {
|
|
hasher := md5.New()
|
|
hasher.Write(text)
|
|
return hasher.Sum(nil)
|
|
} |