Documentation
¶
Overview ¶
* @Author: i@douxuefeng.cn * @Date: 2021-10-23 13:44:03 * @LastEditTime: 2021-10-29 19:21:04 * @LastEditors: i@douxuefeng.cn * @Description: 加密算法 * @FilePath: \go-utils\string_encript.go
Index ¶
- Variables
- func AesDecrypt(encrypted, cip string) (string, error)
- func AesEncrypt(origin, cip string) (string, error)
- func Base64Decoding(s string) string
- func Base64Encoding(s string) string
- func EncodePassword(password string) string
- func GetRandomNumber(l int) string
- func GetRandomPureString(l int) string
- func GetRandomString(l int) string
- func InitSnowflake(epoch int64, i int64)
- func JoinStringArr(strs, str string, dep string) string
- func Md5(s string) string
- func Padding(plaintext []byte, blockSize int) []byte
- func Sha1(s string) string
- func UnPadding(origData []byte) []byte
- func Uuid() string
- func ValidatePassword(encodePassword, inputPassword string) bool
- func ValidateStruct(s interface{}) error
- type File
- type JsonData
- type Page
Constants ¶
This section is empty.
Variables ¶
View Source
var ( Validate *validator.Validate ValidateTrans ut.Translator )
表单验证 https://github.com/go-playground/validator
View Source
var NewFile = newFile()
View Source
var SnowFlake *snowflake.Node
Functions ¶
func AesDecrypt ¶ added in v0.0.2
*
- @name: ase 解密
- @description:
- @param {*} encrypted 加密字符串
- @param {string} cip 密文
- @return {*}
func AesEncrypt ¶ added in v0.0.2
*
- @name: AES加密 cbc
- @description:
- @param {*} origin 需要加密的字符串
- @param {string} cip 密文
- @return {*}
func Base64Decoding ¶
func EncodePassword ¶
func InitSnowflake ¶
func JoinStringArr ¶
*
- @name: 向字符串增加字符
- @description:
- @param {*} strs 使用dep隔开的字符串
- @param {string} str 需要添加的字符串
- @param {string} dep
- @return {*}
func ValidatePassword ¶
func ValidateStruct ¶
func ValidateStruct(s interface{}) error
Types ¶
Source Files
¶
Directories
¶
Path | Synopsis |
---|---|
* Desc: * Package: cache * File Created: Sunday, 21st March 2021 4:04:59 pm * Author: douxuefeng (i@douxuefeng.cn) * ----- * Last Modified: Sunday, 21st March 2021 4:04:59 pm * Modified By: douxuefeng (i@douxuefeng.cn>) * Desc: * Package: cache * File Created: Sunday, 21st March 2021 3:55:50 pm * Author: douxuefeng (i@douxuefeng.cn) * ----- * Last Modified: Sunday, 21st March 2021 3:55:50 pm * Modified By: douxuefeng (i@douxuefeng.cn>)
|
* Desc: * Package: cache * File Created: Sunday, 21st March 2021 4:04:59 pm * Author: douxuefeng (i@douxuefeng.cn) * ----- * Last Modified: Sunday, 21st March 2021 4:04:59 pm * Modified By: douxuefeng (i@douxuefeng.cn>) * Desc: * Package: cache * File Created: Sunday, 21st March 2021 3:55:50 pm * Author: douxuefeng (i@douxuefeng.cn) * ----- * Last Modified: Sunday, 21st March 2021 3:55:50 pm * Modified By: douxuefeng (i@douxuefeng.cn>) |
sms
|
|
aliyun_sms
* @Author: i@douxuefeng.cn * @Date: 2021-10-13 13:38:48 * @LastEditTime: 2021-10-13 14:05:19 * @LastEditors: i@douxuefeng.cn * @Description: * @FilePath: \go-utils\sms\aliyun_sms\aliyun.go
|
* @Author: i@douxuefeng.cn * @Date: 2021-10-13 13:38:48 * @LastEditTime: 2021-10-13 14:05:19 * @LastEditors: i@douxuefeng.cn * @Description: * @FilePath: \go-utils\sms\aliyun_sms\aliyun.go |
wechat
|
|
mp/params
* Desc: * Package: params * File Created: Friday, 26th March 2021 8:45:18 am * Author: douxuefeng (i@douxuefeng.cn) * ----- * Last Modified: Friday, 26th March 2021 8:45:18 am * Modified By: douxuefeng (i@douxuefeng.cn>) * Desc: * Package: params * File Created: Saturday, 27th March 2021 9:35:31 pm * Author: douxuefeng (i@douxuefeng.cn) * ----- * Last Modified: Saturday, 27th March 2021 9:35:31 pm * Modified By: douxuefeng (i@douxuefeng.cn>) * @Author: i@douxuefeng.cn * @Date: 2021-10-25 16:15:38 * @LastEditTime: 2021-10-29 10:57:32 * @LastEditors: i@douxuefeng.cn * @Description: * @FilePath: \go-utils\wechat\mp\params\sns.go
|
* Desc: * Package: params * File Created: Friday, 26th March 2021 8:45:18 am * Author: douxuefeng (i@douxuefeng.cn) * ----- * Last Modified: Friday, 26th March 2021 8:45:18 am * Modified By: douxuefeng (i@douxuefeng.cn>) * Desc: * Package: params * File Created: Saturday, 27th March 2021 9:35:31 pm * Author: douxuefeng (i@douxuefeng.cn) * ----- * Last Modified: Saturday, 27th March 2021 9:35:31 pm * Modified By: douxuefeng (i@douxuefeng.cn>) * @Author: i@douxuefeng.cn * @Date: 2021-10-25 16:15:38 * @LastEditTime: 2021-10-29 10:57:32 * @LastEditors: i@douxuefeng.cn * @Description: * @FilePath: \go-utils\wechat\mp\params\sns.go |
Click to show internal directories.
Click to hide internal directories.