passwordhash

package
v0.0.0-...-9df599e Latest Latest
Warning

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

Go to latest
Published: Jul 3, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Overview

Package passwordhash хеширует пароль

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Hasher

type Hasher struct {
}

Hasher хэширует и сравнивает пароли

func New

func New() *Hasher

New конструктор для SHA256PasswordHasher

func (*Hasher) CheckHash

func (h *Hasher) CheckHash(password, hash string) bool

CheckHash проверяет хэш пароля

func (*Hasher) Hash

func (h *Hasher) Hash(password string) (string, error)

Hash возвращает хэш пароля

Jump to

Keyboard shortcuts

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