本文实例讲述了Go语言对字符串进行MD5加密的方法。。具体实现方法如下:
package main
import (
"crypto/md5"
"fmt"
"io"
)
func main() {
h := md5.New()
io.WriteString(h, "welcome to jb51.net")
fmt.Printf("%x", h.Sum(nil))
}
希望本文所述对大家的Go语言程序设计有所帮助。
本文实例讲述了Go语言对字符串进行MD5加密的方法。。具体实现方法如下:
package main
import (
"crypto/md5"
"fmt"
"io"
)
func main() {
h := md5.New()
io.WriteString(h, "welcome to jb51.net")
fmt.Printf("%x", h.Sum(nil))
}
希望本文所述对大家的Go语言程序设计有所帮助。

2023-03-15
0万阅读

2023-03-15
0万阅读

2023-03-15
0万阅读

2023-03-15
0万阅读

2023-03-15
0万阅读

2023-03-13
0万阅读

2023-03-08
0万阅读

2023-03-07
0万阅读

2023-03-06
0万阅读

2023-03-06
0万阅读

2023-03-15
0万阅读

2023-03-15
0万阅读

2023-03-15
0万阅读

2023-03-15
0万阅读

2023-03-15
0万阅读

2023-03-13
0万阅读

2023-03-08
0万阅读

2023-03-07
0万阅读

2023-03-06
0万阅读

2023-03-06
0万阅读