def encrypt(self, binary, use_sign=True):
token = rsa.encrypt(binary, self.his_pubkey)  <EOL>if use_sign:<EOL><INDENT>self.sign = rsa.sign(binary, self.my_privkey, "<STR_LIT>")  <EOL><DEDENT>return token<EOL>
Encrypt binary data.

**中文文档**

- 发送消息时只需要对方的pubkey
- 如需使用签名, 则双方都需要持有对方的pubkey