password

package
v0.0.0-...-7ff62be Latest Latest
Warning

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

Go to latest
Published: Dec 16, 2024 License: AGPL-3.0 Imports: 5 Imported by: 0

Documentation

Overview

Package password contains password encoders.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Encoder

type Encoder interface {
	// EncodePassword encodes the raw password.
	EncodePassword(password []byte) ([]byte, error)
	// IsValidPassword checks a raw password against an encoded password.
	IsValidPassword(encodedPassword, password []byte) (bool, error)
}

Encoder is used to implement password encoder.

func NewBcryptEncoder

func NewBcryptEncoder() Encoder

func NewSha1Encoder

func NewSha1Encoder() Encoder

Jump to

Keyboard shortcuts

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