hasher

package
v0.0.0-...-0041c27 Latest Latest
Warning

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

Go to latest
Published: Mar 12, 2024 License: AGPL-3.0 Imports: 6 Imported by: 0

Documentation

Overview

Package hasher provides a simple interface for hashing and verifying passwords.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckPasswordHash

func CheckPasswordHash(password, hash string) bool

func HashPassword

func HashPassword(password string) (string, error)

func HashToken

func HashToken(plainTextToken string) []byte

Types

type Token

type Token struct {
	Raw  string
	Hash []byte
}

func GenerateToken

func GenerateToken() Token

Jump to

Keyboard shortcuts

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