Skip to content
#

qq

Here are 463 public repositories matching this topic...

wechaty
treeguard
treeguard commented Sep 27, 2020

Is your feature request related to a problem? Please describe.
The current RoomMemberQueryFilter doesn't support query by wxid (id of Contact), can we support this?

Describe the solution you'd like
Add id as a string type in RoomMemberQueryFilter
Describe alternatives you've considered

  1. Find all contacts for the room and find out the matched id
  2. Load the contact by id fir
wzhsh90
wzhsh90 commented Apr 11, 2022

func (c *ClientV3) V3EncryptText(text string) (cipherText string, err error) {
if c.wxPublicKey == nil || c.WxSerialNo == "" {
return util.NULL, errors.New("WxPublicKey or WxSerialNo is null")
}
cipherByte, err := rsa.EncryptOAEP(sha1.New(), rand.Reader, c.wxPublicKey, []byte(text), nil)
if err != nil {
return "", fmt.Errorf("rsa.EncryptOAEP:%w", err)
}
return base64.StdEncoding.

good first issue

Improve this page

Add a description, image, and links to the qq topic page so that developers can more easily learn about it.

Curate this topic

Add this topic to your repo

To associate your repository with the qq topic, visit your repo's landing page and select "manage topics."

Learn more