Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RandString ¶
RandString 返回长度为 n 的随机字符串(字符集 a-zA-Z0-9)。 当 n <= 0 时返回空字符串。若底层随机源出错会返回 error。
Types ¶
type DynamicAES ¶
type DynamicAES struct {
// contains filtered or unexported fields
}
func (*DynamicAES) Decrypt ¶
func (d *DynamicAES) Decrypt(cipherTextStr string, obj any) error
Decrypt 解密 Base64 字符串到对象
func (*DynamicAES) Encrypt ¶
func (d *DynamicAES) Encrypt(obj any) (string, error)
Encrypt 加密任意对象为 Base64 字符串
Click to show internal directories.
Click to hide internal directories.