Documentation ¶
Overview ¶
* @Author: i@douxuefeng.cn * @Date: 2021-10-23 13:44:03 * @LastEditTime: 2021-10-29 19:32:50 * @LastEditors: i@douxuefeng.cn * @Description: 加密算法 * @FilePath: \go-utils\strs\string_encript.go
Index ¶
- 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 GetRandomNumber(l int) string
- func GetRandomPureString(l int) string
- func GetRandomString(l int) string
- 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
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AesDecrypt ¶
*
- @name: ase 解密
- @description:
- @param {*} encrypted 加密字符串
- @param {string} cip 密文
- @return {*}
func AesEncrypt ¶
*
- @name: AES加密 cbc
- @description:
- @param {*} origin 需要加密的字符串
- @param {string} cip 密文
- @return {*}
func Base64Decoding ¶
func JoinStringArr ¶
*
- @name: 向字符串增加字符
- @description:
- @param {*} strs 使用dep隔开的字符串
- @param {string} str 需要添加的字符串
- @param {string} dep
- @return {*}
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.