Skip to content

Instantly share code, notes, and snippets.

@cloudaice
Created April 29, 2014 12:41
Show Gist options
  • Save cloudaice/11399095 to your computer and use it in GitHub Desktop.
Save cloudaice/11399095 to your computer and use it in GitHub Desktop.
Golang use md5 lib
package main
import (
"crypto/md5"
"fmt"
"time"
)
var secret string
func main() {
for {
for i := 0; i < 10000; i++ {
secret = fmt.Sprintf("%x", md5.Sum([]byte("helowerrwefdsfsdfsdfsdfs")))
fmt.Println(secret)
}
time.Sleep(time.Second)
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment