auth

package
v0.0.13 Latest Latest
Warning

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

Go to latest
Published: May 24, 2021 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Overview

Package auth collects structures and functions around the generation and processing of credentials.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HashBcrypt

func HashBcrypt(password string) (hash string, err error)

Types

type PasswordAuth

type PasswordAuth struct {
	Username string
	Password string
}

PasswordAuth wraps a set of password-based credentials

func RandomPasswordAuth

func RandomPasswordAuth() (*PasswordAuth, error)

func (*PasswordAuth) Htpassword

func (auth *PasswordAuth) Htpassword() (string, error)

Jump to

Keyboard shortcuts

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