package
0.0.0-20220228055417-80fcaa9d72f4
Repository: https://github.com/jinares/xpkg.git
Documentation: pkg.go.dev
# Functions
Base64Decode base64解密.
Base64Encode base64加密.
CRC32.
No description provided by the author
No description provided by the author
生成ECC椭圆曲线密钥对,保存到文件.
GenRsaKeyWithPKCS1 RSA公钥私钥产生 PKCS1 公钥私钥 进行base64返回.
No description provided by the author
hex.DecodeString(s string)//解密
hex.EncodeToString(src []byte) string//加密
*/解密.
加密.
MD5 对一个字符串进行MD5加密,不可解密.
RsaDecryptPKCS1v15 解密.
RsaEncryptPKCS1v15 加密.
签名 对采用sha256算法RsaSignPKCS1v15WithSHA256.
验签:对采用sha256算法RsaVerfySignPKCS1v15WithSHA256.
Sha1 获取 SHA1 字符串.
No description provided by the author