little-cui commented on code in PR #1365:
URL: 
https://github.com/apache/servicecomb-service-center/pull/1365#discussion_r1045518865


##########
pkg/privacy/password.go:
##########
@@ -33,6 +33,17 @@ const (
 
 var ScryptParams = scrypt.Params{N: 1024, R: 8, P: 1, SaltLen: 8, DKLen: 32}
 
+// DefaultManager default manager
+var DefaultManager PasswordManager = &Password{}
+
+type PasswordManager interface {
+       ScryptPassword(pwd string) (string, error)
+       SamePassword(hashedPwd, pwd string) bool
+}
+
+type Password struct {
+}
+
 // HashPassword
 // Deprecated: use ScryptPassword, this is only for unit test to test 
compatible with old version
 func HashPassword(pwd string) (string, error) {

Review Comment:
   改成私有



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to