Files
llgo/_cmptest/sha1demo/sha1.go
2024-07-31 14:28:15 +08:00

15 lines
218 B
Go

package main
import (
"crypto/sha1"
"fmt"
"io"
)
func main() {
h := sha1.New()
io.WriteString(h, "The fog is getting thicker!")
io.WriteString(h, "And Leon's getting laaarger!")
fmt.Printf("%x", h.Sum(nil))
}