hasher

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2021 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Overview

Package hasher provides functions for hashing string and comparing string with hash

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckPasswordHash

func CheckPasswordHash(password, hash string) bool

CheckPasswordHash checks if provided password and hash are the same return true if hashed password have the same hash as provided hash return false otherwise

func HashPassword

func HashPassword(password string) (string, error)

HashPassword hashes provided string with usage SHA256 Error is returned if provided string is empty If password is not empty returned hashed password and nil

Types

This section is empty.

Jump to

Keyboard shortcuts

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