蛋蛋星球RabbitMq消费项目
25개 이상의 토픽을 선택하실 수 없습니다. Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

13 lines
166 B

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