tool

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: May 20, 2020 License: MIT Imports: 24 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AesDecrypt2

func AesDecrypt2(cryted string, psw string) (string, error)

func AesEncrypt

func AesEncrypt(encodeStr string, psw string) (string, error)

cbc mode

func CheckIsString

func CheckIsString(str *string) bool

func CheckPsw

func CheckPsw(psw string) (flag bool)

func FloatToString

func FloatToString(input_num float64, prec int) string

func GetAddressFromPubKey

func GetAddressFromPubKey(pubKey string) (address string, err error)

func GetPubKeyFromWifAndCheck

func GetPubKeyFromWifAndCheck(privKeyHex string, pubKey string) (pubKeyFromWif string, err error)

func GetRandNumDown

func GetRandNumDown(min, max int) (int, error)

func PKCS5Padding

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

func PKCS5UnPadding

func PKCS5UnPadding(origData []byte) []byte

func PathExistsAndCreate

func PathExistsAndCreate(path string) error

判断文件夹是否存在,如果不存在,则创建

func RandBytes

func RandBytes(size int) (string, error)

func SetAesAndIV

func SetAesAndIV(key string, myIv string)

func SignMsgWithBase58

func SignMsgWithBase58(msg []byte) string

func SignMsgWithMd5

func SignMsgWithMd5(msg []byte) string

func SignMsgWithRipemd160

func SignMsgWithRipemd160(msg []byte) string

func SignMsgWithSha256

func SignMsgWithSha256(msg []byte) string

func VerifyEmailFormat

func VerifyEmailFormat(email string) bool

Types

type AStarPathFind

type AStarPathFind struct {
	// contains filtered or unexported fields
}

type PathNode

type PathNode struct {
	// contains filtered or unexported fields
}

Jump to

Keyboard shortcuts

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