huencode

package
v1.0.7 Latest Latest
Warning

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

Go to latest
Published: Jun 17, 2025 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AESDecode added in v1.0.7

func AESDecode(ciphertextstr, keystr, ivstr string)

func AESEncode added in v1.0.7

func AESEncode(plaintextstr string, args ...string)

func BarCodeEncode

func BarCodeEncode(content string, width, height int) (pngb []byte, err error)

生成条码PNG bese64 bytes 前端使用 <img src="data:image/png;base64," + {string(PNG bytes)}/>

func Base64Decode

func Base64Decode(str string, salt ...string) (string, error)

*

  • base64解密

func Base64Encode

func Base64Encode(str string, salt ...string) string

*

  • base64加密

func Base64ImgDataToFile added in v1.0.5

func Base64ImgDataToFile(filepath string, base64data string)

func GetAESIv added in v1.0.7

func GetAESIv() []byte

func GetAESIvStr added in v1.0.7

func GetAESIvStr() string

func GetAESKey added in v1.0.7

func GetAESKey() []byte

func GetAESKeyStr added in v1.0.7

func GetAESKeyStr() string

func GetAllSerial added in v1.0.5

func GetAllSerial() (SerialList []string)

func GetBaseBoardID

func GetBaseBoardID() string

GetBaseBoardID 获取主板的id

func GetDiskDriveSN added in v1.0.5

func GetDiskDriveSN() string

GetDiskDriveSN 获取硬盘SN

func QRCodeEncode

func QRCodeEncode(content string, level qrcode.RecoveryLevel, size int) (pngb []byte, err error)

生成二维码PNG bese64 bytes 前端使用 <img src="data:image/png;base64," + {string(PNG bytes)}/>

Types

This section is empty.

Jump to

Keyboard shortcuts

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