package
Version:
v0.0.0-...-749b2f0
Opens a new window with list of versions in this module.
Published: Sep 24, 2020
License: Apache-2.0
Opens a new window with license information.
Imports: 10
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
对称加密与解密之解密【从Beego中提取出来的】
@param value 需要解密的字符串
@param secret 密钥
@return decrypt 返回解密后的字符串
对称加密与解密之加密【从Beego中提取出来的】
@param value 需要加密的字符串
@param secret 加密密钥
@return encrypt 返回的加密后的字符串
func Md5Crypt(str string, salt ...interface{}) (CryptStr string)
MD5加密
@param str 需要加密的字符串
@param salt 盐值
@return CryptStr 加密后返回的字符串
func Sha1Crypt(str string, salt ...interface{}) (CryptStr string)
SHA1加密
@param str 需要加密的字符串
@param salt 盐值
@return CryptStr 加密后返回的字符串
Source Files
¶
Click to show internal directories.
Click to hide internal directories.