You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

12 lines
159 B

  1. package tools
  2. import (
  3. "crypto/md5"
  4. "encoding/hex"
  5. )
  6. func MD5V(str []byte) string {
  7. h := md5.New()
  8. h.Write(str)
  9. return hex.EncodeToString(h.Sum(nil))
  10. }