crypto

package
v0.0.0-...-50815b3 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2019 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ComparePasswords

func ComparePasswords(hashedPassword string, password string) bool

ComparePasswords checks if given password maps correctly to the given hash

func HashAndSalt

func HashAndSalt(password string) (string, error)

HashAndSalt hashes and salts the given user password

func ValidateCredentialValues

func ValidateCredentialValues(email, password string) error

ValidateCredentialValues verifies that the chosen username and passwords are valid

Types

This section is empty.

Jump to

Keyboard shortcuts

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