mirror of
https://github.com/wyx2685/V2bX.git
synced 2026-02-04 04:30:08 +00:00
move extra to NetworkSettings
This commit is contained in:
11
common/crypt/sha.go
Normal file
11
common/crypt/sha.go
Normal file
@@ -0,0 +1,11 @@
|
||||
package crypt
|
||||
|
||||
import (
|
||||
"crypto/sha256"
|
||||
"encoding/hex"
|
||||
)
|
||||
|
||||
func GenShaHash(data []byte) string {
|
||||
d := sha256.Sum256(data)
|
||||
return hex.EncodeToString(d[:])
|
||||
}
|
||||
Reference in New Issue
Block a user