password

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Feb 11, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Overview

Package password provides utilities for password hashing and verification.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PlainHash

func PlainHash(password string) (*types.Document, error)

PlainHash hashes the password and returns the document that should be stored.

func PlainVerify

func PlainVerify(password string, doc *types.Document) error

PlainVerify verifies the password against the document returned by PlainHash.

The returned error is safe for logging, but should not be exposed to the client.

Types

This section is empty.

Jump to

Keyboard shortcuts

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