involves other people"s code problems, so the source code is deleted
involves other people"s code problems, so the source code is deleted
A cursory glance shows that there are only three key things
find the php libraries of these three and we are done
sort out the flow of this program:
data
to JSON
object, and use the variable json
to receive the result; json ["d_head"]
using BASE64, using the variable ecryptData
. ) receive the result ecryptData
using the RSA algorithm, use the variable datas
to receive; datas
using gzip
, use the variable b3
to receive; b3
from byteArray
to T
type object, using the variable obj
to receive; obj
. what you need to do is to implement each of the above steps separately in php, rather than trying to implement the sum of all the above steps in php at the same time. When implementing, you can print out the variables that store the results of each step of the java version of the algorithm, json
, ecryptData
, datas
, b3
and obj
. If you implement the php version of the algorithm for the same input, the output of each step is the same as the java version. When you say you can't decompress, there may be two reasons:
json
, ecryptData
and datas
) are incorrect; as long as you ensure that, for the same input, the datas
of your php version of the algorithm is exactly the same as the datas
of the java version of the algorithm, and the decompression algorithm of your php version uses the same behavior as the decompression function used by the java version of the algorithm, there will be absolutely no error in this step of decompression, and the result is correct after decompression.
head
and body
, respectively head
and body
base64_decode ()
, and then only decrypted head to get RsaHead
and < code . He was like this, and later I found out after a close look at the source code of java. description: a regular match is given to the content of an input box, and the matching content is the product activation code. looks like this: "0C31-0B81-BB32-3094-0C31-0B81-BB32-3094 " Code: $( -sharplicenseCode ).keyup(function () { le...
I configured the MIME type of the file with the amr suffix in the apache configuration as application ms-download, Why it is a garbled page when opening a file in amr format using window.open in chrome, while a file in amr format can be successfully dow...
what does the code circled in the following picture mean? ...
adopt a reward of 10 yuan, 1045 Access denied for user root @ localhost (using password:NO) recently, when I was at the front end of my self-study, I came into contact with a little bit of database. This happened when I made a new connection on ...
there is an h5 page embedded in the encapsulated APP. After the function of issuing an order, how can I get the user s id to add the address and place the order ...
each person starts the game with a different Rank (a total of 14 Rank) and selects two people to answer the question pk,. How to design this algorithm? suppose that after I click to start the game, I send my request to enter a game to the server, and ...
A similar question, I want to know how to deal with the number of correct answers. I originally wanted to declare a variable and then decide to add it when the answer is right, but not if it is wrong. But what is printed is always 0 and 1 ....
...
make an answer system, trigger the click event on the answer page (choose the correct answer), and add 1. No mistakes. Now the whole answer is finished. Jump to another page, that is, the answer completion page, how can I get the value of the correct ans...
use Wechat public platform JSSDK to develop Wechat sharing function! Every time I use the company s public platform account, I report a signature error! There is nothing wrong with the account of the public platform developed by myself! I would like to...
the background gives me an interface to tell me the parameters to be passed, and how to click Save to save the address information entered by the user to the address list ...
when I click the button to select a region, there will be three addresses of provinces, cities and regions. I got the value through .html, but the parameters required by the background are separated by city and county. What do I do with the data segmen...
if a socket between the client and the server is closed (the tcp connection is closed), the client will not be able to re-establish an identical socket in a short period of time (two minutes according to the book). So my understanding is: join me to conn...
this is the HTML corresponding to this part ...
in the laravel project, when using the blade template, you often use @ section ( style ) on the page. <style type="text css"> < style> @ endsection or @ section ( script ) <script type="text javascript"> &...
the project uses jq+bscroll.js, because there are some pages that need to show chart data, so echart.js, uses a column chart (the data can slide left and right when the data is too long), resulting in problems with the original page sliding 1 if the f...
to write several mobile pages, you need to use the components provided by ant design mobile to develop. How to use this thing, the document doesn t understand much at first and which of the two ways mentioned above should be used, ah, to find a so...
https: www.creams.io , for example, how can you tell what language his background is written in? ...
...
for example, (- 1) get 225 ...