标签:crypto main 实现md5 fun package \n [] %x UNC
package main import ( "crypto/md5" "fmt" ) func main() { md5_ob := md5.New() md5_ob.Write([]byte("dddfff")) md5_value := md5_ob.Sum([]byte("")) fmt.Println(md5_value) fmt.Print("\n") fmt.Printf("%x\n\n", md5_value) } //50f84daf3a6dfd6a9f20c9f8ef428942 //a87ff679a2f3e71d9181a67b7542122c //77963b7a931377ad4ab5ad6a9cd718aa //fe97959c9d06bb82e55791ba3cb5bb31
标签:crypto main 实现md5 fun package \n [] %x UNC
原文地址:https://www.cnblogs.com/chenadong/p/9055479.html