tool

package
v0.0.0-...-dc89538 Latest Latest
Warning

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

Go to latest
Published: Dec 3, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Decrypt

func Decrypt(crypted, key []byte) ([]byte, error)

func DecryptFromBase64

func DecryptFromBase64(data string, key []byte) ([]byte, error)

func Encrypt

func Encrypt(origData, key []byte) ([]byte, error)

func EncryptToBase64

func EncryptToBase64(origData, key []byte) (string, error)

func PKCS5Padding

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

func PKCS5UnPadding

func PKCS5UnPadding(origData []byte) []byte

func RawMap

func RawMap(db *gorm.DB, sqlQuery string, sqlValues ...interface{}) (result []map[string]string, err error)

RawMap sql查询返回[]map[string]string类型

Types

This section is empty.

Jump to

Keyboard shortcuts

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