mirror of
https://github.com/wyx2685/V2bX.git
synced 2026-02-04 12:40:11 +00:00
12 lines
159 B
Go
12 lines
159 B
Go
package crypt
|
|
|
|
import (
|
|
"crypto/sha256"
|
|
"encoding/hex"
|
|
)
|
|
|
|
func GenShaHash(data []byte) string {
|
|
d := sha256.Sum256(data)
|
|
return hex.EncodeToString(d[:])
|
|
}
|