data_mask/strategy/password.go

29 lines
517 B
Go
Raw Normal View History

2023-10-19 17:25:09 +08:00
// Package strategy ...
2023-05-24 15:04:53 +08:00
//
// Description : data_mask ...
//
// Author : go_developer@163.com<白茶清欢>
//
// Date : 2023-05-24 15:02
2023-10-19 17:25:09 +08:00
package strategy
import (
"git.zhangdeman.cn/zhangdeman/data_mask/define"
)
2023-05-24 15:04:53 +08:00
// PasswordDataMask 密码数据脱敏
//
// Author : go_developer@163.com<白茶清欢>
//
// Date : 15:04 2023/5/24
type PasswordDataMask struct {
}
func (p PasswordDataMask) Mask(input string) string {
return "********"
}
func (p PasswordDataMask) Type() string {
2023-10-19 17:25:09 +08:00
return define.TypePassword
2023-05-24 15:04:53 +08:00
}