package
1.3.1
Repository: https://github.com/mover-code/micro-util.git
Documentation: pkg.go.dev

# Functions

AesDecrypt 解密 It decrypts the data using AES-CBC.
AesEncrypt 加密 It takes a byte array and a key, and returns a byte array.
base64 解码 Decode a base64 string into a string and a byte array.
base64 编码 Base64Encode takes a byte slice and returns a string.
DecryptByAes Aes 解密 It decrypts the data using AES.
Ecrecover returns the uncompressed public key that created the given signature.
EncryptByAes Aes加密 后 base64 再加 Encrypts the data using AES and returns the encrypted data in base64 format.
SHA256生成哈希值 It takes a byte array as input, and returns a string as output.
It takes a byte slice and returns a string.
生成32位md5 salt加密字符串 It takes a string and a salt, and returns the MD5 hash of the string concatenated with the salt.
生成32位md5字符串 It takes a string, creates a new MD5 hash, writes the string to the hash, and then returns the hexadecimal representation of the hash.
It removes all the null bytes from the end of the input byte array.
No description provided by the author
It takes the address of the owner, the tokenId of the token to be minted, and the private key of the owner, and returns the signature of the minting transaction.
discard & 弃用.
It takes a message, hashes it, signs the hash with a private key, and returns the signature.
SigRSV signatures R S V returned as arrays.
SigToPub returns the public key that created the given signature.
It takes a message, a signature, and a public key, and returns true if the signature is valid for the message under the public key.
If the length of the input is a multiple of 8, return the input, otherwise return the input with enough zero bytes appended to make the length a multiple of 8.

# Variables

16,24,32位字符串的话,分别对应AES-128,AES-192,AES-256 加密方法key不能泄露.