passwordmethods

package
v0.0.0-...-c20b901 Latest Latest
Warning

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

Go to latest
Published: Jul 28, 2023 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Overview

Package passwordmethods includes all implemented methods for checking passwords. For compatibilities sake, it implements the empty method "" as plain so older configurations work as before.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MethodBcrypt64

func MethodBcrypt64(password, truth string) (bool, error)

MethodBcryptPlain compares a password to a base64-encoded bcrypt hash.

func MethodBcryptPlain

func MethodBcryptPlain(password, truth string) (bool, error)

MethodBcryptPlain compares a password to a bcrypt hash in plain format.

func MethodPlain

func MethodPlain(password, truth string) (bool, error)

MethodPlain compares a password to the plain text truth. It tries to hide details of the original password like length

Types

This section is empty.

Jump to

Keyboard shortcuts

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