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 not stored for this graph (policy: none)