crypto_utils

package
v0.0.0-...-dd2dae2 Latest Latest
Warning

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

Go to latest
Published: Jan 21, 2021 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Compare

func Compare(hash, password string) bool

Compare compares passsword in db with password supplied

func ConvertStringToByte

func ConvertStringToByte(s string) []byte

ConvertStringToByte takes a string and return byte array

func HashPassword

func HashPassword(password string) (string, error)

HashPassword take plaintext password and salt and return hash

Types

This section is empty.

Jump to

Keyboard shortcuts

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