添加更多的方法

This commit is contained in:
yun
2025-11-03 23:40:41 +08:00
parent 6e088f68bd
commit 7bbd570de9
10 changed files with 1660 additions and 0 deletions
+14
View File
@@ -0,0 +1,14 @@
package sha512x
import (
"crypto/sha512"
"encoding/hex"
)
// Sha512加密
func Sha512(src string) string {
m := sha512.New()
m.Write([]byte(src))
res := hex.EncodeToString(m.Sum(nil))
return res
}