driver

package
v1.0.1001 Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2022 License: Apache-2.0 Imports: 2 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Aes

type Aes struct {
	// contains filtered or unexported fields
}

*

  • Aes 验证 *
  • @create 2021-8-28
  • @author deatil

func (*Aes) Init

func (this *Aes) Init(conf map[string]interface{})

初始化

func (*Aes) Sign

func (this *Aes) Sign(data string) string

签名

func (*Aes) Validate

func (this *Aes) Validate(data string, signData string) bool

验证

type Bcrypt

type Bcrypt struct {
	// contains filtered or unexported fields
}

bcrypt 验证

func (*Bcrypt) Sign

func (this *Bcrypt) Sign(data string) string

签名

func (*Bcrypt) Validate

func (this *Bcrypt) Validate(data string, signData string) bool

验证

type Hmac

type Hmac struct {
	// contains filtered or unexported fields
}

func (*Hmac) Init

func (this *Hmac) Init(conf map[string]interface{})

初始化

func (*Hmac) Sign

func (this *Hmac) Sign(data string) string

签名

func (*Hmac) Validate

func (this *Hmac) Validate(data string, signData string) bool

验证

type MD5

type MD5 struct{}

func (*MD5) Sign

func (this *MD5) Sign(data string) string

签名

func (*MD5) Validate

func (this *MD5) Validate(data string, signData string) bool

验证

type Rsa

type Rsa struct {
	// contains filtered or unexported fields
}

func (*Rsa) Init

func (this *Rsa) Init(conf map[string]interface{})

初始化

func (*Rsa) Sign

func (this *Rsa) Sign(data string) string

签名

func (*Rsa) Validate

func (this *Rsa) Validate(data string, signData string) bool

验证

type SHA1

type SHA1 struct{}

func (*SHA1) Sign

func (this *SHA1) Sign(data string) string

签名

func (*SHA1) Validate

func (this *SHA1) Validate(data string, signData string) bool

验证

Jump to

Keyboard shortcuts

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