Fork me on GitHub
摘要: package util import ( "bytes" "crypto/aes" "crypto/cipher" "crypto/rand" "encoding/base64" "io" ) // CBC func EncryptAESByCBC(origData []byte, key []b 阅读全文
posted @ 2021-11-03 10:20 myboran 阅读(130) 评论(0) 推荐(0)
摘要: 生成不一样的随机数 rand.Seed(time.Now().Unix()) r := rand.Int63() Golang 数据类型转换 Int64 转化为 String 使用函数为: strconv.FormatInt(int64(original_int64_varialble), radi 阅读全文
posted @ 2021-11-03 09:04 myboran 阅读(25) 评论(0) 推荐(0)