bcrypt

package
v0.0.0-...-b24e222 Latest Latest
Warning

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

Go to latest
Published: Oct 9, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

Package bcrypt implements a tqcquito Config interface. It uses bcrypt to secure the password in a hashed form and stores it statically in source. This is strictly an example of how this interface might be implemented. It is not recommended to be used in production and is only an example.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Authenticator

type Authenticator struct {
	authenticators.Methods
	// contains filtered or unexported fields
}

Authenticator with bcrypt password hashing used for validation

func New

func New(l loggerProvider, s getSecret) *Authenticator

New Bcrypt Authenticator

func (Authenticator) Handle

func (a Authenticator) Handle(response tq.Response, request tq.Request)

Handle handles all authenticate message types, scoped to the uid

func (Authenticator) New

func (a Authenticator) New(username string, options map[string]string) (tq.Handler, error)

New creates a new bcrypt authenticator which implements tq.Config

Directories

Path Synopsis
Package main provides a utility to create or verify bcrypt strings used by the bcrypt authenticator
Package main provides a utility to create or verify bcrypt strings used by the bcrypt authenticator

Jump to

Keyboard shortcuts

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