password

package
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 10, 2026 License: MIT Imports: 4 Imported by: 0

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL