Fetch the repository succeeded.
package password
type PASSWORD_ALG = string
const (
PASSWORD_ALG_NOOP PASSWORD_ALG = "noop"
PASSWORD_ALG_BCRYPT PASSWORD_ALG = "bcrypt"
PASSWORD_ALG_MD5 PASSWORD_ALG = "md5"
PASSWORD_ALG_SHA256 PASSWORD_ALG = "sha256"
)
const (
CHAR_BRACE_START byte = '{'
CHAR_BRACE_END byte = '}'
CHAR_DOLLAR byte = '$'
STR_BRACE_START string = "{"
STR_BRACE_END string = "}"
STR_DOLLAR string = ""
)
// var _ PasswordEncoder = (*passwordEncoder)(nil)
type PasswordEncoder interface {
i()
Alg() string
Encrypt(pwd string) (string, error)
// encryptPass without prefix
Equal(pass string, encryptPass string) bool
}
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。