Categorygithub.com/goicmll/easyuse
modulepackage
1.2.6
Repository: https://github.com/goicmll/easyuse.git
Documentation: pkg.go.dev

# README

Easy Use

轻量封装,简单使用

功能列表

密文

  1. AES 加解密: CBC, CRT, OFB
  2. bcrypt 加解密 $2
  3. jwt 加解密
  4. rsa 加解密
  5. md5
  6. 获取https证书信息

类型转换

  1. string 和 []byte

随机数

  1. 随机字符串

# Functions

key长度必须为16, 24或者32, 参数origin 为hex.EncodeToString 后的字符串 这边IV直接就使用 key.
AesCBCStrEncrypt key长度必须为16, 24或者32, 返回hex.EncodeToString 后的字符串 这边IV直接就使用 key.
########### AES CRT key长度必须为16, 24或者32.
key长度必须为16, 24或者32.
########### AES OFB key长度必须为16, 24或者32.
BcryptCompare 比较密文和字符串.
BcryptStr 字符串生成bcrypt.
Bytes2Str bytes to string.
GetCurrentGoroutineStack 获取当前写成跟踪信息.
GetDomainResolve 通过域名解析获取IP地址列表。 该函数接受一个域名作为参数,返回该域名对应的IP地址列表以及可能出现的错误。 如果域名无法解析,函数将返回一个空切片和一个非nil的错误。.
GetHttpsCertInfo 获取Domain 证书信息.
GetMethodSet 获取类型的方法集合名,可调用不一定属于方法集合 方法集合决定接口实现 参数 Kind 不是 Array, Chan, Map, Pointer, Slice时 返回无元素切片.
No description provided by the author
No description provided by the author
JwtMake 制作jwt串.
JwtParse 解析jwt.
No description provided by the author
NewGoogleAuth 初始化GoogleAuth.
NewHook create a Hook instance.
Placeholder 生成占位符 Placeholder(5, "?") return: "?,?,?,?,?".
Random 生成随机字符传.
RsaDecrypt 解密.
RsaEncrypt ########### RSA 加解密.
Str2SliceByte string to []byte.
StringMd5 md5.

# 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
S5 预定义随机字符串源.

# Structs

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

# Interfaces

Hook a graceful shutdown hook, default with signals of SIGINT and SIGTERM.