This commit is contained in:
Mark McGranaghan 2012-09-16 18:11:41 -07:00
parent 198b3fdc2e
commit 75c81c6d95
2 changed files with 12 additions and 0 deletions

View File

@ -30,3 +30,5 @@
* sort-by
* errors
* compilation
* ruby and nodejs stdlib
* ruby and nodejs killer apps

10
xx-sha1.go Normal file
View File

@ -0,0 +1,10 @@
package main
import ("fmt"; "crypto/sha1"; "encoding/hex")
func main() {
h := sha1.New()
h.Write([]byte("sha1 this string"))
bs := h.Sum([]byte{})
fmt.Println(hex.EncodeToString(bs))
}