mirror of
https://github.com/wyx2685/V2bX.git
synced 2025-03-14 00:08:14 -04: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[:])
|
||
|
}
|