utils

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jul 24, 2023 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckStrsIsEmpty added in v0.1.14

func CheckStrsIsEmpty(strs ...string) bool

func CreateFileName added in v0.1.8

func CreateFileName(router string) string

func EncryptBytesSHA1 added in v0.1.8

func EncryptBytesSHA1(b []byte) string

func EncryptStrMD5 added in v0.1.8

func EncryptStrMD5(str string) string

EncryptStrMD5 对字符串进行MD5加密

func GetFileBytes

func GetFileBytes(filePath string) ([]byte, error)

GetFileBytes 获取文件字节

func RsaDecrypt added in v0.1.3

func RsaDecrypt(encStr string) (string, error)

func RsaEncrypt added in v0.1.3

func RsaEncrypt(str string) (string, error)

加密

Types

This section is empty.

Jump to

Keyboard shortcuts

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