add crypto sha1, sha256, sha512
This commit is contained in:
11
_cmptest/sha1demo/sha1.go
Normal file
11
_cmptest/sha1demo/sha1.go
Normal file
@@ -0,0 +1,11 @@
|
||||
package main
|
||||
|
||||
import (
|
||||
"crypto/sha1"
|
||||
"fmt"
|
||||
)
|
||||
|
||||
func main() {
|
||||
data := []byte("This page intentionally left blank.")
|
||||
fmt.Printf("% x", sha1.Sum(data))
|
||||
}
|
||||
Reference in New Issue
Block a user