Summary of the invention
The invention provides a kind of method and system of carrying out plug-in unit, make the issue of plug-in unit and downloading process not need digital certificate.
The inventive method comprises step:
First summary of plug-in unit and this plug-in unit is distributed on the server, and said first summary utilizes hash algorithm to obtain, and said server is the server with the restriction of writing;
User terminal is downloaded said plug-in unit and said first summary from said server, utilizes said hash algorithm to obtain second summary of said plug-in unit;
When said second summary is identical with said first summary, carry out said plug-in unit;
Said first summary is encrypted;
Said user terminal when carrying out said plug-in unit once more, utilizes hash algorithm to obtain the 3rd summary of said plug-in unit, deciphers said first summary, afterwards first makes a summary when identical when said the 3rd summary and said deciphering, carries out said plug-in unit.
Be provided with the document table of encryption in advance at said user terminal, comprise the summary of the plug-in unit that sign and this sign of plug-in unit is corresponding in this document abstract.
The step that said first summary is encrypted comprises:
Decipher said document table;
Said plug-in unit sign and corresponding said first summary of this sign are write said document table;
Encrypt said document table and preserve this document abstract.
The step of carrying out said plug-in unit once more comprises:
Said user terminal obtains the 3rd summary of said plug-in unit through hash algorithm, deciphers said document table, and obtains and corresponding first summary of said sign through said sign, makes a summary when identical when this first summary and the said the 3rd, carries out said plug-in unit.
When in the said document table with corresponding first summary of said sign and said the 3rd summary when inequality, delete in said plug-in unit and the said document table with corresponding first summary of said sign.
System of the present invention comprises:
Server is used to issue first of plug-in unit and this plug-in unit and makes a summary, and said first summary utilizes hash algorithm to obtain, and said server is the server with the restriction of writing;
User terminal is used for downloading said plug-in unit and said first summary from said server, utilizes said hash algorithm to obtain second summary of said plug-in unit; When this second summary is identical with said first summary, carries out said plug-in unit, and said first summary is encrypted; When carrying out said plug-in unit once more, utilize hash algorithm to obtain the 3rd summary of said plug-in unit, decipher said first summary; When said the 3rd summary is identical with said deciphering back first summary, carry out said plug-in unit.
Said user terminal comprises:
Download unit is used for downloading said plug-in unit and said first summary from said server;
Verification unit; Be used to utilize hash algorithm to obtain second summary of said plug-in unit; And relatively whether this second summary is identical with said first summary; When said second summary is identical with said first summary, send triggering signal to said performance element, and when carrying out said plug-in unit once more; Utilize hash algorithm to obtain the 3rd summary of said plug-in unit; Decipher said first summary, when said the 3rd summary is identical with said deciphering back first summary, send triggering signal to said performance element;
Encrypt the first summary unit, be used for when said second summary is identical with said first summary, said first summary being encrypted;
Performance element when being used to receive said triggering signal, is carried out said plug-in unit.
Said verification unit comprises:
Relatively second summary and the first summary unit is used to utilize hash algorithm to obtain second summary of said plug-in unit, when said second summary is identical with said first summary, sends triggering signal to sending the triggering signal unit;
Relatively the 3rd make a summary and the first summary unit; When being used for carrying out once more said plug-in unit, utilize hash algorithm to obtain the 3rd summary of said plug-in unit, decipher said first summary; When said the 3rd summary is identical with said deciphering back first summary, send triggering signal to sending the triggering signal unit;
Send the triggering signal unit, be used to receive said triggering signal after, send triggering signal to said performance element.
Said comparison the 3rd summary comprises with the first summary unit:
The 3rd summary unit when being used for carrying out once more said plug-in unit, utilizes hash algorithm to obtain the 3rd summary of said plug-in unit;
Decipher the first summary unit, be used to decipher said first summary;
Send signal element, be used for when said the 3rd summary is identical with said deciphering back first summary, sending triggering signal to sending the triggering signal unit.
Said user terminal also comprises:
Memory cell is used for the document table of storage encryption in advance, comprises the summary of the plug-in unit that sign and this sign of plug-in unit is corresponding in this document abstract.
Said user terminal also comprises:
Encrypt file abstract unit is used for when said second summary is identical with said first summary, deciphering said document table, and the sign of said plug-in unit and first summary of this sign correspondence are write said document table, encrypts said document table.
The said deciphering first summary unit is used to decipher said document table, obtains and corresponding first summary of said sign through said sign.
Said user terminal also comprises:
Delete cells, be used for when said document table with corresponding first summary of said sign, with said the 3rd summary when inequality, delete in said plug-in unit and the said document table with corresponding first summary of said sign.
The present invention is distributed on the server through first summary with plug-in unit and this plug-in unit; Said first summary utilizes AES to obtain, and user terminal is downloaded said plug-in unit and said first summary from said server, utilizes said AES to obtain second summary of said plug-in unit; When said second summary is identical with said first summary; Carry out the technical scheme of said plug-in unit, the plug-in unit that user terminal is downloaded the time does not need the digital signature of digital certificate in issue; Simplify the issue and the downloading process of plug-in unit, practiced thrift cost.
Embodiment
Core concept of the present invention is: the method for execution plug-in unit of the present invention comprises the issue of plug-in unit, download and implementation; Summary through AES acquisition plug-in unit is distributed on said plug-in unit and said summary on the server, and wherein, said server has the authority of writing, and has guaranteed the issue fail safe of said plug-in unit; The summary of the said plug-in unit of user terminal downloads and this plug-in unit; Utilize hash algorithm to obtain the summary of said plug-in unit, when the summary of this summary and said download is identical, carry out said plug-in unit; The plug-in unit that user terminal is downloaded; The time do not need the digital signature of digital certificate in issue, simplified the issue and the downloading process of plug-in unit, practiced thrift cost;
Wherein, be provided with the document table in advance at said user terminal, this document abstract is through a password encryption, comprises the summary of the plug-in unit that sign and this sign of plug-in unit is corresponding in this document abstract;
The step that the summary of this plug-in unit is encrypted comprises:
Through the said document table of said password to decipher;
The summary of the plug-in unit of said plug-in unit sign and this sign correspondence is write said document table;
Through the said document table of said password encryption and preserve this document abstract;
In addition; After the summary of said plug-in unit encrypted, when carrying out said plug-in unit once more, said user terminal obtained the summary of said plug-in unit through hash algorithm; Through the said document table of said password to decipher; And obtain and the corresponding summary of said sign through said sign, when the summary of this summary and said said plug-in unit through the hash algorithm acquisition is identical, carry out said plug-in unit.
Referring to Fig. 1, the method for carrying out plug-in unit in the embodiment of the invention comprises:
S101, first summary of plug-in unit and this plug-in unit is distributed on the server, said first summary utilizes AES to obtain;
Said algorithm is a hash algorithm;
S102, user terminal are downloaded said plug-in unit and said first summary from said server, utilize said AES to obtain second summary of said plug-in unit;
Wherein, said second summary is the summary through the said plug-in unit of hash algorithm acquisition;
Preferably, said user terminal is through the sign of said plug-in unit, and search this locality and whether exist with this and identify corresponding plug-in unit, when not existing this to identify pairing plug-in unit, said plug-in unit of said user terminal downloads and said first summary;
Employed hash algorithm was identical when the issue plug-in unit was made a summary on the said hash algorithm that said user terminal adopts and the said server;
S103, make a summary when identical, carry out said plug-in unit when said second summary and said first;
Preferably, when said second summary is identical with said first summary, said first summary is encrypted, said encryption is that user terminal is encrypted said first summary through a password default;
Preferably, be provided with the document table of encryption in advance, comprise the summary of the plug-in unit that sign and this sign of plug-in unit is corresponding in this document abstract at said user terminal;
The step of so, said first summary being encrypted comprises:
Decipher said document table;
Said plug-in unit sign and corresponding said first summary of this sign are write said document table;
Encrypt said document table and preserve this document abstract;
In addition, after the summary of said plug-in unit encrypted, the step of carrying out said plug-in unit once more comprised:
Said user terminal obtains the 3rd summary of said plug-in unit through hash algorithm, deciphers said document table, and obtains and corresponding first summary of said sign through said sign, makes a summary when identical when this first summary and the said the 3rd, carries out said plug-in unit;
When in the said document table with corresponding first summary of said sign and said the 3rd summary when inequality, delete in said plug-in unit and the said document table with corresponding first summary of said sign.
As shown in Figure 2, the method for user terminal execution plug-in unit comprises in the embodiment of the invention:
S201, acquisition numbering N;
After user terminal starts browser, logined release numbering and be the website of plug-in unit of N after, can obtain numbering N automatically;
Whether S202, judges terminal program exist the plug-in unit that is numbered N in the storehouse, if, then carry out step S211, otherwise, carry out step S203;
S203, user terminal are downloaded the plug-in unit that is numbered N from server;
Said server is the server with the restriction of writing;
Whether the plug-in unit that is numbered N is downloaded in S204, judgement successful, if, then carry out step S205, otherwise, carry out step S215;
S205, user terminal are downloaded the summary of the plug-in unit that is numbered N from server;
Said server is the server with the restriction of writing;
S206, the whether success of summary of judge downloading the said plug-in unit that is numbered N, if, carrying out step S207, otherwise, carry out step S215;
S207, obtain the summary C2 of said plug-in unit through hash algorithm;
S208, judge whether C1 is identical with C2, if, then carry out step S209, otherwise, carry out step S215;
S209, said plug-in unit is kept in the local program storehouse, and said summary is kept in the local file abstract;
Wherein, described document table is encrypted through said password default, comprises the summary of the plug-in unit that sign and this sign of plug-in unit is corresponding in this document abstract,
So, the step that said summary is kept in the local file abstract comprises: through the said document table of said password to decipher; The summary of the plug-in unit of said plug-in unit sign and this sign correspondence is write said document table; Through the said document table of said password encryption and preserve this document abstract;
S210, carry out said plug-in unit;
S211, acquisition and the corresponding summary of numbering N C from local files stored abstract;
Said user terminal obtains and the corresponding summary of said numbering N C from said document table through the said document table of said password to decipher;
S212, obtain the summary C3 of said plug-in unit through hash algorithm;
Obtain the summary C3 of the corresponding plug-in unit of said numbering N through hash algorithm;
S213, judge whether C is identical with C3, if, then carry out step S210, otherwise, carry out step S214;
S214, from the local program storehouse deletion with the corresponding plug-in unit of said numbering N, and in the document table with the corresponding summary of said numbering N;
S215, end.
Referring to Fig. 3, the system that carries out plug-in unit in the embodiment of the invention comprises: server 30 and user terminal 31;
Said user terminal 31 comprises: download unit 311, verification unit 312, performance element 313, encrypt the first summary unit 314, memory cell 315, encrypt file abstract unit 316 and delete cells 317;
Said verification unit 312 comprises: relatively second summary is made a summary with the first summary unit 3122 with the said first summary unit the 3121, the relatively the 3rd and is sent triggering signal unit 3123;
Said comparison the 3rd summary comprises with the first summary unit 3122: the 3rd summary unit 31221, the deciphering first summary unit 31222 and send signal element 31223;
Said server 30 is used to issue first of plug-in unit and this plug-in unit and makes a summary, and said first summary utilizes AES to obtain;
Said user terminal 31 is used for downloading said plug-in unit and said first summary from said server, utilizes said AES to obtain second summary of said plug-in unit, when this second summary is identical with said first summary, carries out said plug-in unit;
Wherein, said AES is a hash algorithm;
Said download unit 311 is used for downloading said plug-in unit and said first summary from said server 31;
Said verification unit 312; Be used to utilize hash algorithm to obtain second summary of said plug-in unit; And relatively whether this second summary is identical with said first summary, when said second summary is identical with said first summary, sends triggering signal to said performance element 313;
Wherein, said comparison second summary and the said first summary unit 3121 is used to utilize hash algorithm to obtain second summary of said plug-in unit, when said second summary is identical with said first summary, sends triggering signal to sending triggering signal unit 3123;
Send triggering signal unit 3123, be used to receive said triggering signal after, send triggering signals to said performance element 313;
Said performance element 313 when being used to receive said triggering signal, is carried out said plug-in unit;
Preferably, the said encryption first summary unit 314 when said second summary is identical with said first summary, is encrypted said first summary; Said comparison the 3rd summary and the first summary unit 3122; When carrying out said plug-in unit once more; Utilize hash algorithm to obtain the 3rd summary of said plug-in unit; Decipher said first summary; When said the 3rd summary is identical with said deciphering back first summary, send triggering signal to sending triggering signal unit 3123;
Wherein, said the 3rd summary unit 31221 when being used for carrying out once more said plug-in unit, utilizes hash algorithm to obtain the 3rd summary of said plug-in unit;
The said deciphering first summary unit 31222 is used to decipher said first summary, and deciphers said document table, obtains and corresponding first summary of said sign through said sign;
Said transmission signal element 31223 is used for when said the 3rd summary is identical with said deciphering back first summary, sending triggering signal to sending triggering signal unit 3123;
Said memory cell 315, storage file abstract in advance comprises the summary of the plug-in unit that sign and this sign of plug-in unit is corresponding in this document abstract;
Said document table when said second summary is identical with said first summary, is deciphered in encrypt file abstract unit 316, and the sign of said plug-in unit and first summary of this sign correspondence are write said document table, encrypts said document table;
Said delete cells 317, in said document table with corresponding first summary of said sign, with said the 3rd summary when inequality, delete in said plug-in unit and the said document table with corresponding first summary of said sign.
Obviously, those skilled in the art can carry out various changes and modification to the present invention and not break away from the spirit and scope of the present invention.Like this, belong within the scope of claim of the present invention and equivalent technologies thereof if of the present invention these are revised with modification, then the present invention also is intended to comprise these changes and modification interior.