Skip to content

Commit

Permalink
Merge pull request #15 from woshiqiang1/patch-1
Browse files Browse the repository at this point in the history
Update sha256.md
  • Loading branch information
duanbiaowu authored Nov 20, 2024
2 parents 4414a57 + 1c05298 commit e19aaa7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions content/introduction/sha256.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,12 @@ func main() {
h := sha256.New()
h.Write([]byte(s))
res := h.Sum(nil)
fmt.Printf("sha245(`hello world`) = %x\n", res)
fmt.Printf("sha256(`hello world`) = %x\n", res)
}

// $ go run main.go
// 输出如下
/**
sha256(`hello world`) = b94d27b9934d3e08a52e52d7da7dabfac484efe37a5380ee9088f7ace2efcde9
*/
```
```

0 comments on commit e19aaa7

Please sign in to comment.