Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BCryptPasswordEncoder ¶
type BCryptPasswordEncoder struct {
// contains filtered or unexported fields
}
func (*BCryptPasswordEncoder) Encode ¶
func (this *BCryptPasswordEncoder) Encode(password []byte) ([]byte, error)
Encode implements [core.PasswordEncoder].
func (*BCryptPasswordEncoder) Matches ¶
func (this *BCryptPasswordEncoder) Matches(password, encoded []byte) bool
Matches implements [core.PasswordEncoder].
func (BCryptPasswordEncoder) New ¶
func (this BCryptPasswordEncoder) New(strength int) *BCryptPasswordEncoder
type DelegatingPasswordEncoder ¶
type DelegatingPasswordEncoder struct {
// contains filtered or unexported fields
}
func (*DelegatingPasswordEncoder) Encode ¶
func (this *DelegatingPasswordEncoder) Encode(password []byte) ([]byte, error)
Encode implements [core.PasswordEncoder].
func (*DelegatingPasswordEncoder) Matches ¶
func (this *DelegatingPasswordEncoder) Matches(password, encoded []byte) bool
Matches implements [core.PasswordEncoder].
func (DelegatingPasswordEncoder) New ¶
func (this DelegatingPasswordEncoder) New(idForEncode string, idToPasswordEncoder map[string]PasswordEncoder) *DelegatingPasswordEncoder
type NoOpPasswordEncoder ¶
type NoOpPasswordEncoder struct{}
func (*NoOpPasswordEncoder) Encode ¶
func (this *NoOpPasswordEncoder) Encode(password []byte) ([]byte, error)
Encode implements [core.PasswordEncoder].
func (*NoOpPasswordEncoder) Matches ¶
func (this *NoOpPasswordEncoder) Matches(password, encoded []byte) bool
Matches implements [core.PasswordEncoder].
func (NoOpPasswordEncoder) New ¶
func (this NoOpPasswordEncoder) New() *NoOpPasswordEncoder
Click to show internal directories.
Click to hide internal directories.