package
0.0.0-20241106013813-926841a6acba
Repository: https://github.com/xyzj/toolbox.git
Documentation: pkg.go.dev
# Packages
No description provided by the author
# Functions
FillBase64 用`=`补全base64长度.
GetMD5 生成md5字符串.
GetRandom 获取随机数据.
GetSHA1 生成sha1字符串.
GetSHA256 生成sha256字符串.
GetSHA512 生成sha512字符串.
GetSM3 生成sm3字符串.
NewAES 创建一个新的aes加密解密器.
No description provided by the author
NewECC 创建一个新的ecc算法器
签名算法采用sha256 支持 openssl ecparam -name prime256v1/secp384r1 格式的密钥.
NewHash creates a new hash algorithm instance based on the provided hash type and HMAC key.
NewRSA 创建一个新的rsa算法器
签名算法采用sha256.
NewSM2 创建一个新的sm2算法器.
NewSM4 创建一个新的sm4算法器.
TLSConfigFromFile 从文件载入证书.
TLSConfigFromPEM 从pem载入证书.
# Constants
AES128CBC aes128cbc算法.
AES128CFB aes128cfb算法.
AES128ECB aes128ecb算法.
AES192CBC aes192cbc算法.
AES192CFB aes192cfb算法.
AES192ECB aes192ecb算法.
AES256CBC aes256cbc算法.
AES256CFB aes256cfb算法.
AES256ECB aes256ecb算法.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
HashHMACSHA1 hmacsha1摘要算法.
HashHMACSHA256 hmacsha256摘要算法.
HashMD5 md5算法.
HashSHA1 sha1算法.
HashSHA256 sha256算法.
HashSHA512 sha512算法.
HashSM3 国密sm3.
No description provided by the author
SM4CBC SM4 CBC算法.
SM4CFB SM4 CFB算法.
SM4ECB SM4 CFB算法.
SM4OFB SM4 CBC算法.
# Variables
ECPrime256v1 as elliptic.P256() and openssl ecparam -name prime256v1.
ECSecp384r1 as elliptic.P384() and openssl ecparam -name secp384r1.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
# Type aliases
No description provided by the author
CompressType 压缩编码类型.
CValue 加密后的数据,可输出[]byte,hex string,base64string.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author