google_ency

package
v0.0.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	IV = "S4^AX&PFRFVJL73Z"
)

Functions

func AesCBCDecrypt

func AesCBCDecrypt(intput string) (string, error)

func AesCBCEncrypt

func AesCBCEncrypt(intput string) (string, error)

func CheckGoolgeCode

func CheckGoolgeCode(code string, secret string) bool

func GetCode

func GetCode() string

* fun:获取google验证密码

Types

type AesCrypt

type AesCrypt struct {
	Key []byte
	Iv  []byte
}

func (*AesCrypt) Decrypt

func (a *AesCrypt) Decrypt(src []byte) (data []byte, err error)

func (*AesCrypt) Encrypt

func (a *AesCrypt) Encrypt(data []byte) ([]byte, error)

type RandType

type RandType int8
const (
	RandTypeAlphaNum RandType = 1
	RandTypeAlpha    RandType = 2
	RandTypeNum      RandType = 3
)

Jump to

Keyboard shortcuts

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