But, in use must online for some, carry out the application software of exchanges data with server, still there is method can solve the situation of illegal use.The present invention promptly is at this kind application software, and a kind of method that prevents that network reading software from duplicating is provided, and the owner who effectively checks copyrighted software lends the situation that other people install with software.
The present invention promptly is at this kind application software, and proposition one prevents the method for pirate, and it is summarized as follows: at server end one recording user end software sequence number, user side flag information and user's login name, the database of log-in password are arranged.When registering, the user side software sequence number that server end is caught according to user side software, if the heavy unregistered mistake of this user side software sequence number then requires user's registered user name and password, and produces a number at random, note is done first numerical value; With time of server end as the first sub-flag information, with the first sub-flag information and the first numerical value XOR (XOR), obtain the first sub-flag information; The first sub-flag information and the second sub-flag information are merged the flag information that has just obtained giving new user, and flag information is passed to user side.
If this user side software sequence number was registered, illustrate that the user installed user side software originally, then calculate the operation result of the first sub-flag information and the second sub-flag information according to the original flag information of user, it is first numerical value; According to the same processing mode of new user, make this user can obtain a new flag information then, and the alternative former flag information of the flag information that will newly produce is recorded in the data in server storehouse.
When user side software will be opened electronic medium, at first check, the operation result of the first sub-flag information and the second sub-flag information in the flag information of oneself, whether the operation result of first of the flag information flag information and the second sub-flag information is identical in electronic medium, as difference, illustrate that then this electronic medium is not this user's download, refusal is opened; As identical, further judge that the first sub-flag information in oneself the flag information is whether more than or equal to the first sub-flag information of flag information in the electronic medium, as greater than then illustrate the user be with before the user side software download of installing, opened, as less than then illustrate the user be with after the user side software download of installing, not sub opening.
Preferred embodiment of the present invention will be aided with following accompanying drawing and do more detailed elaboration in the comment of back:
The present invention is directed to that use must be surfed the Net and carry out the application software of exchanges data with server, providing a kind of prevents via duplicating copyrighted software, or use this installation procedure via other people copyrighted software of borrow, effectively to prevent from illegally to use the situation of copyrighted software.
With reference to Fig. 1, it is a preferred embodiment structure calcspar of the present invention, and user side A and user side B all carry out exchanges data through internet 20 and server 10, for example the transmission electronic reading matter.Disclosed method is not only on the internet available, the network of any kenel, and such as structures such as Local Area Network or Wide Area Networks, sunlight can utilize method of the present invention to protect wherein application software as data exchange medium.
With reference to figure 2, it is in the preferred embodiment of the present invention, the workflow diagram of user side online registration.When registering on carrying out line, at first carry out step 101, promptly user side as parameter, sends flag information application to server end with software sequence number.What obeys device to user side by, the flag information that produces has following characteristic: it can split into the first sub-flag information and second sub-flag information two parts, for same user, and the identical user of application software sequence number, each flag information difference that produces, but the first sub-flag information that splits into can obtain identical result by certain computing with the second sub-flag information, and for different users, the first sub-flag information that its flag information is converted into and the second sub-flag information can obtain different results by identical operation.
Then, carry out step 102 server end and check whether this software sequence number is present in the database of server end, as not existing, then carry out step 103, allow the user set user name and password, then carry out step 104, produce one 32 first numerical value at random, with operation result as the first sub-flag information and the second sub-label information.What one of value was carried is, the element number that above-mentioned several first numerical value that produce at random can be hard disk or software, or the element number of hard disk or software directly is merged into the result of word string, can also be above-mentioned two product IDs are carried out the result who is got profit in logical process (for example displacement or addition, subtraction operation) back.
Then, in step 105, server end reads the current time, and with the expression of double word unit, as the first sub-flag information.Then, carry out step 106, with the first sub-flag information and the first numerical value XOR (can certainly adopt other logical operation mode, for example carry out after the summation or, perhaps ask carry out after non-or etc.), obtain the first sub-flag information; And carry out step 107, the first sub-flag information and the first sub-flag information are merged the flag information of the user side that produces one 64.Then, carry out step 108, server end requires the user to input user name, password, user side software sequence number, and deposit the database of server end in as a new record with the flag information that produces, and the user label information that produces passed to user side, preserve voluntarily by user side software.At last, carry out step 109, user side software behind its flag information and hard disk or software product sequence number XOR, leaves in the working storage of user side, with terminates registration procedures after receiving the flag information of server end distribution.Step 109 is not a steps necessary, can play by ear.
It should be noted that above-mentioned employed hard disk and software product sequence number can be replaced by other " unique " numbering.For example, replace and in personal digital assistant device, then can get its product ID to handle at the product ID that can utilize central processing unit on the PC; The software product sequence number then can use operating system, such as the product ID of the Windows 95/98 of Microsoft.
Exist in the server end database as the user side software sequence number, then carry out step 113, user name and the password set when server end requires the user to input registration.Carry out step 114 subsequently, whether checking login name and password be correct, as correct really, then carry out step 115, server end obtains original flag information and deletes original record, and user label information according to former record, with the first sub-flag information and the second sub-flag information XOR, obtain result of calculation first numerical value, then according to step 105,106,107 method produces new user label information, afterwards, carry out step 108, by the new user label information that server end will produce, replacement original subscriber's flag information also deposits in the database, and the user label information that produces passed to user side, preserve voluntarily by user side software.
In addition, 32 first numerical value that is produced at random in the step 104, server end reads in current first sub-flag information that time produced and the step 106 the first sub-flag information and the first numerical value XOR resulting second sub-flag information in the step 105, above-mentioned three numbers might not be 32, can be 16 or 8 or the like, therefore user's flag information also differs and is decided to be 64, it depends on first numerical value for how many positions, the figure place of the first sub-flag information and the second sub-flag information and deciding, promptly the figure place of flag information is the twice of first numerical value or the first sub-flag information or the second sub-flag information.It should be noted that the practician of this technical field can modify the preferred embodiment of the invention described above based on spirit of the present invention, but this variation must be included among the scope of the present invention.
When the user need download electronic medium, user side utilizes software sequence number and label information to send download request as the part of parameter to server end, server software can check in database whether the user is legal, after among legal 64 of then the flag information adding electronic medium file beginning of user side being reserved, pass to user side, otherwise the refusing user's download request.If the user has installed user side software for the second time, and register; Then for the first time installed software can't have been carried out electronic medium and downloaded, because be the flag information that the user produces when registering for the second time with what write down in the clothes device client database at this moment.The electronic medium that the present invention censured is the data file with specific format, for example word or file, sound document, image documents or video documents.
In addition, receive the flag information that transmits by user side as after sending the parameter of download request at above-mentioned server, also can use the characteristic information of electronic medium, the for example title of electronic medium or information such as author, creation date, merge the operation of flag information to encrypt simultaneously, in order to obtain the electron reading flag information, again encrypted result is deposited in subsequently in the data layout of electronic medium, to be resent to user side behind the version information as this electronic medium.It should be noted that the known technology person can modify the preferred embodiment of the invention described above based on spirit of the present invention, but this variation must be included among the scope of the present invention.
Next, please refer to Fig. 3, it is the process flow diagram of the employed software of user side when opening e-book.When the user need open the e-book of download, at first carry out step 201, the employed software of user side reads the flag information of user side from working storage, then carry out step 202, after the first sub-flag information in the flag information and the second sub-flag information carried out XOR, obtain result's first computing numerical value.Then, carry out step 203, software reads 64 from the beginning of electronic medium file, gets the flag information of electronic medium.Carry out step 204 subsequently, will with the first sub-flag information of flag information in the electronic medium and the XOR of the second sub-flag information, obtain second operand value as a result.Then, carry out step 205, relatively the size of the first computing numerical value and second operand value as difference, illustrates that then this electronic medium is not this user's download, and refusal is opened.As identical, then carry out step 206, judge that the first sub-flag information in the flag information that user side reads is whether more than or equal to the first sub-flag information of flag information in the e-book: as greater than then illustrate the user be with before the user side software download of installing, carry out step Z07, opened electronic medium; As less than then illustrate the user be with after the user side software download of installing, will not open.
Next use the embodiment of the inventive method for example, to do further explanation.When the user installs user side software for the first time, when registration, the current time value that server end is read is: 0X00005555, and first numerical value of Chan Shenging is 00000000 at random, then the flag information of server end distribution is:
When the user installs user side software for the second time, during registration, the current time value that server end is read is: 0X00007777, then the newly assigned flag information of server end is
With the e-book that the first time, installed software was downloaded, flag information in the e-book is 00,00,55,55,00,00,55,55, with the e-book that the second time, installed software was downloaded, the flag information in the e-book is 00,00,77,77,00,00,77,77, if respectively with for the first time with the second time installed software go to open for the first time the e-book of being downloaded during install software with the second time, or all satisfied following condition of being downloaded when going to open install software for the first time of e-book with installed software for the second time:
1. first of user side software mark information sub-flag information XOR second sub-flag information=0X00000000 is identical with the operation result of flag information in the e-book.
2. first of the user side software mark information sub-flag information part is more than or equal to the first sub-flag information part of flag information in the e-book.
So, can normally open.
Yet, if when going to open the e-book that install software for the second time downloads, owing to the first sub-flag information of user side software mark information the first sub-flag information less than flag information in the e-book with installed software for the first time.So can not open.
In sum, method provided by the present invention has following characteristics: application software is when carrying out exchanges data with server, need catch sequence number and a unique flag information of application software, when this flag information carries out exchanges data with server for the first time in application software, by server-assignment.The corresponding unique flag information of sequence number, this mapping table is kept at server end.When in sequence number that the discovering server application software is caught and unique flag information and the server end mapping table when inconsistent, then refuse the data exchange request of application software; Otherwise, as the same.
Therefore, the present invention is directed to the characteristic of network electronic medium ocr software, by adding the application software flag information to the processing of flag information with in the electronic medium data, and the anti-method of duplicating that provides has following plurality of advantages and effect:
1. the electronic medium of a certain user's download can only be opened in the user side software of oneself, copies in other people the user side software to open.
2. a certain user user side software of can resetting on different machines is reached the standard grade after the registration, and the electronic medium of former download still can normally be used.
3. a certain user repeatedly installs user side software, has only the user side software of last installation, could normal online download electronic medium; And installed software both can't have been downloaded electronic medium in the past, also can't open the electronic medium that last installed software is downloaded.
4. the present invention can effectively prevent the bootlegging of electronic medium, does not influence the normal upgrading of subscriber set again.
The above is appointed for preferred embodiment of the present invention, is not in order to limit claim of the present invention; All other do not break away from the equivalence of being finished under the disclosed spirit and changes or modification, all should comprise within the scope of the appended claims.