- package main
- import (
- "crypto/md5"
- "encoding/hex"
- )
- func main() {
- str := "wph_esp_177F64a9CF5c_4187724128Yeafw93#d392207127"
- md5Ctx := md5.New()
- md5Ctx.Write([]byte(str))
- encryptPwd := md5Ctx.Sum(nil)
- pwdmd5 := hex.EncodeToString(encryptPwd[:])
- println(pwdmd5)
- }
|