From 75c81c6d9593b12ec78e901098b44336ed7d1511 Mon Sep 17 00:00:00 2001 From: Mark McGranaghan Date: Sun, 16 Sep 2012 18:11:41 -0700 Subject: [PATCH] contents --- 00-notes.txt | 2 ++ xx-sha1.go | 10 ++++++++++ 2 files changed, 12 insertions(+) create mode 100644 xx-sha1.go diff --git a/00-notes.txt b/00-notes.txt index 3d28281..d0d0691 100644 --- a/00-notes.txt +++ b/00-notes.txt @@ -30,3 +30,5 @@ * sort-by * errors * compilation +* ruby and nodejs stdlib +* ruby and nodejs killer apps diff --git a/xx-sha1.go b/xx-sha1.go new file mode 100644 index 0000000..9e15586 --- /dev/null +++ b/xx-sha1.go @@ -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)) +}