You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@servicecomb.apache.org by GitBox <gi...@apache.org> on 2022/12/12 10:08:40 UTC
[GitHub] [servicecomb-service-center] Sphairis commented on a diff in pull request #1365: extend password
Sphairis commented on code in PR #1365:
URL: https://github.com/apache/servicecomb-service-center/pull/1365#discussion_r1045627495
##########
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: commits-unsubscribe@servicecomb.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org