util

package
v0.0.0-...-0dc847f Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2023 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BcryptCheck

func BcryptCheck(password, hash string) bool

func BcryptHash

func BcryptHash(password string) string

func GenerateId

func GenerateId() string

Types

type CaptchaRedisStore

type CaptchaRedisStore struct {
	Expiration time.Duration
	PreKey     string
	Context    context.Context
}

func NewDefaultCaptchaRedisStore

func NewDefaultCaptchaRedisStore() *CaptchaRedisStore

func (*CaptchaRedisStore) Get

func (rs *CaptchaRedisStore) Get(key string, clear bool) string

func (*CaptchaRedisStore) Set

func (rs *CaptchaRedisStore) Set(id string, value string) error

func (*CaptchaRedisStore) UseWithContext

func (rs *CaptchaRedisStore) UseWithContext(ctx context.Context) base64Captcha.Store

func (*CaptchaRedisStore) Verify

func (rs *CaptchaRedisStore) Verify(id, answer string, clear bool) bool

Jump to

Keyboard shortcuts

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