password

package
v0.0.0-...-d841f61 Latest Latest
Warning

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

Go to latest
Published: Jun 11, 2021 License: AGPL-3.0 Imports: 3 Imported by: 0

Documentation

Overview

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
	// IsValidPassword checks a raw password against an encoded password.
	IsValidPassword(encodedPassword, password []byte) bool
}

Encoder is used to implement password encoder.

func NewSha1Encoder

func NewSha1Encoder() Encoder

NewSha1Encoder creates new encoder.

Jump to

Keyboard shortcuts

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