contents
This commit is contained in:
parent
198b3fdc2e
commit
75c81c6d95
@ -30,3 +30,5 @@
|
||||
* sort-by
|
||||
* errors
|
||||
* compilation
|
||||
* ruby and nodejs stdlib
|
||||
* ruby and nodejs killer apps
|
||||
|
10
xx-sha1.go
Normal file
10
xx-sha1.go
Normal 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))
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user