Home > front end >  As shown in figure enterprise WeChat document in the third step, how to write asp code to decrypt th
As shown in figure enterprise WeChat document in the third step, how to write asp code to decrypt th

Time:10-11



As shown in figure enterprise WeChat document in the third step, how to write asp code to decrypt the message? First two steps in the interface debugging tools have tests pass, can test by the third step in the asp code,

CodePudding user response:



Why with this line, rand_msg=Wx_AesDecrypt (aes_msg AESKey, from_appid), debugging tools, there is no return value? Also used this function Wx_AesDecrypt front, back correctly, behind the lines not

Do not add this line, rand_msg=Wx_AesDecrypt (aes_msg AESKey, from_appid), return to the diagram below:


Add this line, rand_msg=Wx_AesDecrypt (aes_msg AESKey, from_appid), return to the diagram below:

CodePudding user response:

https://download.csdn.net/download/qq_25398203/10801592

CodePudding user response:

refer to the second floor qq_63572063 response:
https://download.csdn.net/download/qq_25398203/10801592


I just download this, front msg1 calls can be, behind rand_msg call not, don't know why?

CodePudding user response:

You are now get EncodingAESKey or AESKey?

CodePudding user response:

reference 4 floor qq_63572063 response:
EncodingAESKey or AESKey now you receive?


Should now be returned results rand_msg cleartext string should be below:


But did not return results in interface debugging tools

CodePudding user response:

You are now to decrypt, you hair is encryption process, feel you haven't read the document,


This is the decryption process, you should first get WeChat post over XML data, & lt; Encrypt> In content, is your characters to unlock

CodePudding user response:

refer to 6th floor qq_63572063 response:
you are now want to decrypt, you hair is encryption process, feel you haven't read the document,


This is the decryption process, you should first get WeChat post over XML data, & lt; Encrypt> In content, is you want to decrypt the characters


WeChat post over the whole XML data is not encrypted EchoStr?

CodePudding user response:




refer to 6th floor qq_63572063 response:
you are now want to decrypt, you hair is encryption process, feel you haven't read the document,


This is the decryption process, you should first get WeChat post over XML data, & lt; Encrypt> In content, is you want to decrypt the characters



Which come of echostr?

CodePudding user response:

refer to the eighth floor qq_63572063 response:
Quote: refer to the sixth floor qq_63572063 response:

You are now to decrypt, you hair is encryption process, feel you haven't read the document,


This is the decryption process, you should first get WeChat post over XML data, & lt; Encrypt> In content, is you want to decrypt the characters



Which come of echostr?




Test to get their echostr callback mode, it doesn't matter with this? The server is not received echostr, nonce and timestamp, msg_signature? The diagram below:



Click on the application to the server in the enterprise WeChat just take the lead in the XML document? Not that a few parameters as test callback mode?



CodePudding user response:

You this is just a connection, passive message as I the screenshot above, you press this to obtain the data validation

CodePudding user response:

references to the tenth floor qq_63572063 response:
you this is just a connection, passive message as I the screenshot above, you press this to obtain the data validation decryption


Hello, below is in enterprise WeChat I create a menu, function is the photo album or photo, photo should have returned after application window in a word, but did not return now, would you please help me to look at, thank you,


I just attached organization code below, please help me to look at:

 
<% % @ @ codepage="65001" & gt;

<% Response. The Charset="utf-8"
'initialize
Call initCodecs
SQL="select * from importent"
Set the rs=conn. Execute (SQL)
Token=rs (" Token ")
EncodingAESKey=rs (" EncodingAESKey ")
From_appid=rs (" from_appid ")
Echostr=request. The QueryString (" Echostr ")
Nonce=request. The QueryString (" Nonce ")
Timestamp=request. The QueryString (" Timestamp ")
Msg_signature=request. The QueryString (" msg_signature ")

'verify WeChat interface
If EchoStr<& gt;" "Then
'under the Token, TimesTamp, Nonce four parameters of dictionary order
Myarray on=SortPara (Array (Token, TimesTamp, Nonce, Echostr))
For I=0 To Ubound (Myarray on)
STR=str& Myarray on (I)
Next
If Lcase (msg_signature) & lt;> Then Lcase (hex_sha1 (STR))
The response. The End ()
End the if
End the if


'* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *

The set xml_dom=Server. CreateObject (" MSXML2. DOMDocument ") 'here according to your actual Server rewrite
nullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnull
  •  Tags:  
  • ASP
  • Related