Versions in this module Expand all Collapse all v2 v2.3.0 Dec 30, 2022 v2.2.0 Dec 5, 2022 Changes in this version + const AesEncodeKeyLength + func GetAvoidLoginSignature(timestamp, secret string) string + func GetSignature(timestamp, secret string, ticket string) string + func RandomString(length int) string + type DingTalkCrypto struct + AESKey []byte + Block cipher.Block + SuiteKey string + Token string + func (c *DingTalkCrypto) CreateSignature(token, encrypt, timestamp, nonce string) string + func (c *DingTalkCrypto) Decrypt(encrypt, sign, timestamp, nonce string) (string, error) + func (c *DingTalkCrypto) Encrypt(msg string) (*DingTalkEncrypt, error) + func (c *DingTalkCrypto) GetEncryptMsgDetail(msg, timestamp, nonce string) (string, string, error) + func (c *DingTalkCrypto) RandomString(length int) string + func (c *DingTalkCrypto) VerificationSignature(encrypt, sign, timestamp, nonce string) bool + type DingTalkEncrypt struct + Encrypt string + Nonce string + Sign string + Timestamp string + func NewDingTalkEncrypt(encrypt, sign, timestamp, nonce string) *DingTalkEncrypt + func (d *DingTalkEncrypt) String() string