2 Commits

Author SHA1 Message Date
04137a554f feat(更新代码): 使用标准库
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/tag Build is passing
2025-04-21 09:57:06 +08:00
aa07c086ac feat(升级依赖): 升级依赖
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/tag Build is passing
2024-12-13 11:48:51 +08:00
3 changed files with 2 additions and 10 deletions

6
go.mod
View File

@ -1,7 +1,3 @@
module github.com/xiaoqidun/ihash
go 1.23.1
require golang.org/x/crypto v0.27.0
require golang.org/x/sys v0.25.0 // indirect
go 1.24.2

4
go.sum
View File

@ -1,4 +0,0 @@
golang.org/x/crypto v0.27.0 h1:GXm2NjJrPaiv/h1tb2UH8QfgC/hOf/+z0p6PT8o1w7A=
golang.org/x/crypto v0.27.0/go.mod h1:1Xngt8kV6Dvbssa53Ziq6Eqn0HqbZi5Z6R0ZpwQzt70=
golang.org/x/sys v0.25.0 h1:r+8e+loiHxRqhXVl6ML1nO3l1+oFoWbnlu2Ehimmi34=
golang.org/x/sys v0.25.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA=

View File

@ -5,10 +5,10 @@ import (
"crypto/md5"
"crypto/sha1"
"crypto/sha256"
"crypto/sha3"
"crypto/sha512"
"flag"
"fmt"
"golang.org/x/crypto/sha3"
"hash"
"io"
"io/ioutil"