1 Star 0 Fork 0

carlmax_my/console-core-go

Create your Gitee Account
Explore and code with more than 12 million developers,Free private repositories !:)
Sign up
文件
Clone or Download
models.go 641 Bytes
Copy Edit Raw Blame History
carlmax_my authored 2024-12-02 21:32 . init project
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
}
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Go
1
https://gitee.com/carlmax_my/console-core-go.git
git@gitee.com:carlmax_my/console-core-go.git
carlmax_my
console-core-go
console-core-go
v0.0.20

Search

0d507c66 1850385 C8b1a773 1850385