crypto

package
v0.0.0-...-6bdf688 Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2020 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateAPIKey

func GenerateAPIKey() (string, error)

GenerateAPIKey - generates random API key for later authentication

func HashPassword

func HashPassword(password string) ([]byte, []byte, error)

HashPassword - hashes password

func PasswordMatches

func PasswordMatches(salt []byte, suppliedPassword, hashedPassword string) (bool, error)

PasswordMatches - checks whether user supplied password(plain string) matches hash password. Requires original hashed password and salt

Types

This section is empty.

Jump to

Keyboard shortcuts

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