MCPcopy Create free account
hub / github.com/a7a2/cp33 / EncryptClient

Function EncryptClient

common/encrypt.go:46–72  ·  view source on GitHub ↗

func EncryptClient(password []byte, platform string) (hash string) { //argon2加密到浏览器、客户端cookie 同时缓存在redis salt := []byte(models.PwdKey + platform) hashByte, err := argon2.Key(password, salt, 3, 4, 4096, 32, argon2.Argon2i) if err != nil { fmt.Println(err) return } hash = hex.EncodeToString(

(plaintext []byte, platform string)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers

nothing calls this directly

Calls 1

md5SumFunction · 0.85

Tested by

no test coverage detected