Summary of the invention
Purpose of the present invention is exactly in that a kind of memory card copy prevention method that is used for electronic dictionary is provided, in order to overcome above-mentioned defective.
The present invention proposes a kind of memory card copy prevention method that is used for electronic dictionary, it comprises encrypted and discerns two megastages, wherein the encryption stage is to be undertaken by manufacturer or the merchant of system before storage card dispatches from the factory, and cognitive phase is undertaken by the user after storage card dispatches from the factory.In the encryption stage, at first, will use the storage card of universal document system to insert main frame; Then, main frame transfers universal document system on the storage card to dedicated file system by the sign of revised file system; Then, main frame reads the hardware identifier of storage card and encrypts to produce corresponding enciphered data; At last, main frame writes enciphered data in the specific region of dedicated file system on the storage card.In cognitive phase, at first, storage card to be identified is inserted electronic dictionary; Then, electronic dictionary judges whether file system is identical with the dedicated file system in the stage of encryption on the storage card to be identified, if the then specific region reading encrypted data of electronic dictionary dedicated file system from the storage card to be identified and deciphering, and read the hardware identifier of storage card to be identified; Then, whether electronic dictionary comparison enciphered data deciphering back is identical with the hardware identifier data that read, if storage card then to be identified inequality is to have damaged or the storage card of illegal copies, can normally use as if identical storage card then to be identified.
The present invention carries out anti-copy by electronic dictionary to external storage card and encrypts the stage, this encryption stage comprises and transfers universal document system on the storage card to dedicated file system, and the hardware identifier of storage card is read the specific region that writes back storage card after the encryption again.When using the not process anti-copy stage of encrypting but to contain the storage card of same content, electronic dictionary can be discerned and refuse to use, thereby reaches the effect of copyright protection.
Embodiment
Below in conjunction with accompanying drawing, be described in more detail with other technical characterictic and advantage the present invention is above-mentioned.
Memory card copy prevention method (the following electronic dictionary card that the is called sometimes) anti-copy method that is used for electronic dictionary comprises encrypted and discerns two megastages, wherein the encryption stage is to be undertaken by manufacturer or the merchant of system before the electronic dictionary card dispatches from the factory, and cognitive phase is undertaken by the user after the electronic dictionary card dispatches from the factory.
Fig. 1 is for illustrating the process flow diagram that electronic dictionary card anti-copy method is encrypted the stage according to one embodiment of the invention.Please refer to Fig. 1, at first,, will use the electronic dictionary card of universal document system to insert main frame at step S11.The electronic dictionary card that this inserts at the beginning can adopt unencrypted electronic dictionary card, as the mmc card of not supporting encryption function or support encryption function but do not use the SD card of encryption function.If adopt unencrypted electronic dictionary card, just needn't could visit its content as special-purpose correct user's title and the password of encrypted electronic dictionary calorie requirement input.Here, main frame for example is the electronic dictionary that can use described electronic dictionary card, and just its modification encryption function is not opened to the outside world or be open when cognitive phase.
In addition, universal document system for example is the FAT file system, and FAT is the abbreviation of file allocation table (File AllocationTable), and this is the employed file system of present most of storage card.A FAT file system comprises four fundamental regions in reserve area (reserved region), FAT zone (FAT region), root directory zone (root directoryregion), file and catalogue data zone (file and directory data region), and wherein the root directory zone does not exist in the FAT32 file system.Reserve area is positioned at the position that begins most, and its first sector (sector) is commonly referred to and starts sector (boot sector).Start the sector and comprise a basic input block (Bios Parameter Block, be called for short BPB), and BPB comprises the filesystem information that some are basic, as it type (type), sequence number (serial number), label (1abel) and other point to index of other sector etc.The BPB back can be followed the start-up code (boot code) of operating system usually.
Then, at step S12, main frame loads universal document system on the electronic dictionary card.At step S13, host modifications loads on the sign of the universal document system in the main frame, makes it become electronic dictionary card dedicated file system.Here, the sign of universal document system for example is the signature (signature) in the BPB and following in the included information of the start-up code of BPB back in the FAT file system, and wherein the signature in the BPB is used to refer to three fields of type, sequence number, label and then.At step S14, the dedicated file system that main frame obtains modification writes back the electronic dictionary card to replace the universal document system of script on it.So to S14, main frame transfers universal document system on the electronic dictionary card to dedicated file system by the sign of revised file system at step S12.
Then, at step S15, main frame reads the hardware identifier of electronic dictionary card.Here, hardware identifier for example is product ID (product serial number), and it can not be changed, and the different electronic dictionary jig of opening has different product IDs.At step S16, main frame is encrypted the hardware identifier of the electronic dictionary card that reads by the cryptographic algorithm as SHA-1, to produce corresponding enciphered data.So to S16, main frame reads the hardware identifier of electronic dictionary card and encrypts, to produce corresponding enciphered data at step S15.
At last, at step S17, main frame writes described enciphered data the specific region of dedicated file system on the electronic dictionary card.Here, the specific region for example is that modification FAT file system identifies the reserve area in the resulting dedicated file system.
Fig. 2 is for illustrating the process flow diagram of electronic dictionary card anti-copy method cognitive phase according to one embodiment of the invention.Please refer to Fig. 2, at first,, electronic dictionary card to be identified is inserted electronic dictionary at step S21.
Then, at step S22, electronic dictionary loads file system on the electronic dictionary card to be identified.At step S23, whether the file system that electronic dictionary judge to load universal document system.If, be that file system is a universal document system on the electronic dictionary card to be identified, then arrive step S28, this electronic dictionary card to be identified must be encrypted the stage through anti-copy shown in Figure 1, it may be the general electronic dictionary card that anti-copy is not arranged, and pretends to be the use of common store card.If not, file system is a dedicated file system on the electronic dictionary card promptly to be identified, then needs step S24, is judged by electronic dictionary whether the sign of file system on the electronic dictionary card to be identified is identical with the sign of the dedicated file system in the stage of encryption again.At step S24, if electronic dictionary judges that the sign of the sign of dedicated file system on the electronic dictionary card to be identified and the dedicated file system in the stage of encryption is inequality, expression is different dedicated file system, then arrive step S30, electronic dictionary card to be identified may be to have damaged or the electronic dictionary card of illegal copies.Otherwise,, represent that this electronic dictionary card " possibility " to be identified can be used by present electronic dictionary if electronic dictionary judges that the sign of dedicated file system on the electronic dictionary card to be identified is identical with the sign of the dedicated file system in the stage of encryption.So step S22 is to S24, electronic dictionary judges whether file system is identical with the dedicated file system in encryption shown in Figure 1 stage on the electronic dictionary card to be identified.
Because mirror-image copies can make on the electronic dictionary card file system identical with the dedicated file system in encryption shown in Figure 1 stage, so still need again electronic dictionary to be sticked into its judgement of Xingqi.At step S25, the specific region reading encrypted data of electronic dictionary dedicated file system from the electronic dictionary card to be identified and deciphering.At step S26, electronic dictionary reads the hardware identifier of electronic dictionary card to be identified.
At last, at step S27, whether electronic dictionary comparison enciphered data deciphering back is identical with the hardware identifier data that read.If i.e. enciphered data deciphering back is identical with the hardware identifier data that read, and then arrives step S29, electronic dictionary card to be identified can normally use, and its content can be visited by present electronic dictionary.If not, i.e. enciphered data deciphering back and the hardware identifier data that read are inequality, then arrive step S30, and electronic dictionary card to be identified has damaged or illegal copies.
Special-purpose encrypted electronic dictionary card must input correct user's title and password could be visited its content, can use on any electronic dictionary or platform.And the present invention only does the detection protection to its electronic dictionary card that to be ready using on electronic dictionary, in fact breaks away from electronic dictionary as the electronic dictionary card
In sum, the memory card copy prevention method that is used for electronic dictionary of the present invention, it carries out anti-copy by electronic dictionary to external storage card and encrypts the stage, this encryption stage comprises and transfers universal document system on the storage card to dedicated file system, and the hardware identifier of storage card is read the specific region that writes back storage card after the encryption again.When using the not process anti-copy stage of encrypting but to contain the storage card of same content, electronic dictionary can be discerned and refuse to use, thereby reaches the effect of copyright protection.
The above only is preferred embodiment of the present invention, only is illustrative for the purpose of the present invention, and nonrestrictive.Those skilled in the art is understood, and can carry out many changes to it in the spirit and scope that claim of the present invention limited, revise, even equivalence, but all will fall within the scope of protection of the present invention.