package
0.0.0-20241217062345-852b9c5a8d98
Repository: https://github.com/tianlin0/plat-lib.git
Documentation: pkg.go.dev

# Functions

AesDecryptBase64 对字符串对称解密,输入输出都为base64字符.
AesDecryptString 解密.
AesEncryptBase64 对字符串对称加密,输入输出都为base64字符.
AesEncryptString 加密.
Argon2CompareHashAndPassword performs a constant-time comparison between a plain-text password and Argon2id hash, using the parameters and salt contained in the hash.
Argon2PasswordEncoder returns an Argon2id hash of a plain-text password using the provided algorithm parameters.
No description provided by the author
No description provided by the author
CBCDecrypt 解密 decryptOri decrypt cypher text by key.
CBCEncrypt 加密 encryptOri encrypt plain text by key.
Decrypt aes.
Encrypt aes.
GenRsaPublicAndPrivateKey 老的方法.
GenRsaPublicAndPrivateKey111 RSA公钥私钥产生.
HmacSha256 转化为hmac.
Md5 计算出md5的值.
PriKeyDecrypt 私钥解密.
PriKeyEncrypt 私钥加密.
PublicDecrypt 公钥解密.
PublicEncrypt 公钥加密.
RSA_Decrypt 非对称解密.
RSA_Encrypt 非对称加密.
RsaDecryptByPrivateKey 私钥解密.
RsaDecryptByPublicKey 公钥解密.
RsaEncryptByPrivateKey 私钥加密.
RsaEncryptByPublicKey 公钥加密.
RSAPrivateDecrypt 私钥解密.
RSAPublicEncrypt 公钥加密.
Serialize 序列化一个对象.
Sha256Hex 转换为sha256字符.
UnSerialize 反序列化一个对象.
XorDecode 异或解密.
XorEncode 异或加密.

# Variables

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
RSA 默认.

# Structs

Argon2Params describes the input parameters used by the Argon2id algorithm.
RSASecurity security.

# Type aliases

No description provided by the author
No description provided by the author