test

package
v0.0.0-...-708d9d6 Latest Latest
Warning

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

Go to latest
Published: Aug 4, 2022 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AesCBCDecrypt

func AesCBCDecrypt(key, iv []byte, data string) string

func AesCBCEncrypt

func AesCBCEncrypt(key, data, iv []byte) ([]byte, error)

AesCBCEncrypt ...

func GetIV

func GetIV() string

GetIV 获取IV

func GetImg

func GetImg(url string) (n int64, err error)

GetImg ...

func MyEncrypt

func MyEncrypt(phone, domain string)

func PKCS5Padding

func PKCS5Padding(ciphertext []byte, blockSize int) []byte

PKCS5Padding 使用PKCS5进行填充

func PKCS7UnPadding

func PKCS7UnPadding(origData []byte) []byte

PKCS7UnPadding 使用PKCS7进行去码

Types

type ClientInfo

type ClientInfo struct {
	LoginPhone string `json:"loginPhone"`
	Domain     string `json:"domain"`
}

Jump to

Keyboard shortcuts

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