Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BCryptPasswordEncoder ¶
type BCryptPasswordEncoder struct { }
func NewBCryptPasswordEncoder ¶
func NewBCryptPasswordEncoder() *BCryptPasswordEncoder
func (*BCryptPasswordEncoder) Encode ¶
func (thiz *BCryptPasswordEncoder) Encode(rawPassword string) string
func (*BCryptPasswordEncoder) Matches ¶
func (thiz *BCryptPasswordEncoder) Matches(rawPassword, encodedPassword string) bool
type NoEncryptor ¶
type NoEncryptor struct { }
不加密
func NewNoEncryptor ¶
func NewNoEncryptor() *NoEncryptor
func (*NoEncryptor) Decrypt ¶
func (n *NoEncryptor) Decrypt(cipher string) string
func (*NoEncryptor) Encrypt ¶
func (n *NoEncryptor) Encrypt(text string) string
Click to show internal directories.
Click to hide internal directories.