util

package
v0.0.0-...-46570f8 Latest Latest
Warning

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

Go to latest
Published: Nov 9, 2017 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HashPassword

func HashPassword(plain string, cost int) string

func TmpDir

func TmpDir(t *testing.T) (string, func())

func VerifyPassword

func VerifyPassword(encrypted string, plain string) bool

func VerifyPasswordCtx

func VerifyPasswordCtx(ctx context.Context, encrypted string, plain string) bool

Types

This section is empty.

Jump to

Keyboard shortcuts

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