hasher

package
v0.0.4 Latest Latest
Warning

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

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

Documentation

Overview

Package hasher wraps stl package crypto by providing ability to implement specific cryptographic operations (creating hashes for passwords etc).

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 is equal to sha512 hash string In case there was error when composing password hash false value will be returned

func HashPassword

func HashPassword(password string) (string, error)

HashPassword returns sha512 hash string for provided password

Types

This section is empty.

Jump to

Keyboard shortcuts

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