Documentation ¶
Overview ¶
des_help
rsa_help
Index ¶
- Constants
- Variables
- func ArrayMd5(array []string) string
- func ArraySha1(array []string) string
- func DecodeJsonhttpResponse(r io.Reader, v interface{}) error
- func DesDecrypt(crypted, key []byte) ([]byte, error)
- func DesEncrypt(origData, key []byte) ([]byte, error)
- func DesWithKeyandIv(data, key, iv []byte) ([]byte, error)
- func Des_Decypt(data, key, iv []byte) ([]byte, error)
- func Des_DecyptWithBase64(data, key, iv []byte) ([]byte, error)
- func Des_Encrypt(data, key, iv []byte) ([]byte, error)
- func Des_EncryptWithBase64(data, key []byte) (string, error)
- func GetIp(condition string) string
- func Id5Decode(source string) (string, error)
- func Id5Encode(source string) (string, error)
- func InfoToSign(a *GetSignInfo) string
- func Md5(text string) string
- func NewSchoolSign(college, degree, enyear, name, idcode, key string) string
- func NewSign(name, idcode, key string) string
- func NewToken(username, pwd string, t time.Time) string
- func PKCS5Padding(ciphertext []byte, blockSize int) []byte
- func PKCS5UnPadding(origData []byte) []byte
- func RsaDecrypt(ciphertext, privateKey []byte) ([]byte, error)
- func RsaDecryptWithPrivateKey(ciphertext, privateKey []byte) (result []byte, err error)
- func RsaEncrypt(origData, publicKey []byte) ([]byte, error)
- func RsaEncryptWithPublickKey(originalData, publickey []byte) (result []byte, err error)
- func RsaSignWithPrivateKey(origData, private []byte) ([]byte, error)
- func RsaSignWithPrivateKeyUseBase64(origData, private []byte) ([]byte, error)
- func SaltPwd(pwd string) string
- func SendAlarm(title, text string) error
- func SetSalt(s string)
- func Sha1(data string) string
- func Sha1_new(data string) string
- func Sub_suffix(s string, N int) string
- type AlarmMessage
- type GetSignInfo
Constants ¶
View Source
const RemoteUlr = "https://oapi.dingtalk.com/robot/send?access_token=7d517a7780c830b7007464759910cc5643bdcfb682e30232f6f9260ba9b0bc0f"
Variables ¶
View Source
var DefaultHttpClient *http.Client
View Source
var DefaultMediaHttpClient *http.Client
Functions ¶
func DecodeJsonhttpResponse ¶
func DesDecrypt ¶
func DesEncrypt ¶
func DesWithKeyandIv ¶
func Des_Decypt ¶
func Des_DecyptWithBase64 ¶
func Des_Encrypt ¶
func Des_EncryptWithBase64 ¶
func InfoToSign ¶
func InfoToSign(a *GetSignInfo) string
func NewSchoolSign ¶
func PKCS5Padding ¶
func PKCS5UnPadding ¶
func RsaDecrypt ¶
func RsaEncrypt ¶
func RsaSignWithPrivateKey ¶
func Sub_suffix ¶
Types ¶
type AlarmMessage ¶
Click to show internal directories.
Click to hide internal directories.