move extra to NetworkSettings

This commit is contained in:
Yuzuki616
2023-07-14 12:54:09 +08:00
parent b3a8b27c2f
commit 15efffba0d
4 changed files with 60 additions and 17 deletions

11
common/crypt/sha.go Normal file
View 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[:])
}