CN108647499A - Method, device, equipment and storage medium for generating anti-copy check code - Google Patents
Method, device, equipment and storage medium for generating anti-copy check code Download PDFInfo
- Publication number
- CN108647499A CN108647499A CN201810467941.4A CN201810467941A CN108647499A CN 108647499 A CN108647499 A CN 108647499A CN 201810467941 A CN201810467941 A CN 201810467941A CN 108647499 A CN108647499 A CN 108647499A
- Authority
- CN
- China
- Prior art keywords
- check code
- program
- code
- generates
- system program
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
- 238000000034 method Methods 0.000 title claims abstract description 46
- 238000012795 verification Methods 0.000 claims description 13
- 238000004590 computer program Methods 0.000 claims description 4
- 230000005540 biological transmission Effects 0.000 claims description 3
- 241000700605 Viruses Species 0.000 claims description 2
- 238000004519 manufacturing process Methods 0.000 abstract description 13
- 238000013475 authorization Methods 0.000 abstract description 12
- 230000006870 function Effects 0.000 description 12
- 238000012545 processing Methods 0.000 description 8
- 230000037430 deletion Effects 0.000 description 6
- 238000010586 diagram Methods 0.000 description 5
- 230000003287 optical effect Effects 0.000 description 5
- 238000012217 deletion Methods 0.000 description 4
- 238000005516 engineering process Methods 0.000 description 4
- 230000005291 magnetic effect Effects 0.000 description 4
- 238000012360 testing method Methods 0.000 description 4
- 238000004891 communication Methods 0.000 description 3
- 230000000694 effects Effects 0.000 description 3
- 230000002093 peripheral effect Effects 0.000 description 2
- 230000010076 replication Effects 0.000 description 2
- 230000001133 acceleration Effects 0.000 description 1
- 230000006399 behavior Effects 0.000 description 1
- 230000002860 competitive effect Effects 0.000 description 1
- 238000012937 correction Methods 0.000 description 1
- 230000007547 defect Effects 0.000 description 1
- 235000013399 edible fruits Nutrition 0.000 description 1
- 230000005611 electricity Effects 0.000 description 1
- 238000013507 mapping Methods 0.000 description 1
- 239000013307 optical fiber Substances 0.000 description 1
- 238000004321 preservation Methods 0.000 description 1
- 230000000644 propagated effect Effects 0.000 description 1
- 239000004065 semiconductor Substances 0.000 description 1
- 230000001360 synchronised effect Effects 0.000 description 1
- 230000003612 virological effect Effects 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F21/00—Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
- G06F21/10—Protecting distributed programs or content, e.g. vending or licensing of copyrighted material ; Digital rights management [DRM]
- G06F21/12—Protecting executable software
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F21/00—Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
- G06F21/60—Protecting data
- G06F21/62—Protecting access to data via a platform, e.g. using keys or access control rules
- G06F21/6218—Protecting access to data via a platform, e.g. using keys or access control rules to a system of files or objects, e.g. local or distributed file system or database
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Software Systems (AREA)
- Physics & Mathematics (AREA)
- Computer Hardware Design (AREA)
- Computer Security & Cryptography (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Technology Law (AREA)
- Multimedia (AREA)
- Databases & Information Systems (AREA)
- Health & Medical Sciences (AREA)
- Bioethics (AREA)
- General Health & Medical Sciences (AREA)
- Storage Device Security (AREA)
Abstract
The invention discloses a method, a device, equipment and a storage medium for generating an anti-copy check code, wherein the method comprises the following steps: after the burning of the system program is finished, starting a check code generation program; saving the check code generated after the operation of the check code generation program is finished, wherein the check code is used for detecting whether the system program is copied; the check code generation program is deleted, the problems that in the prior art, the burning of the check code needs to depend on special external equipment to support an authorization service function, and the production cost and the authorization service process are increased are solved, the check code generation process is improved without increasing the production cost and the authorization service, the check code is generated after the burning of the system is finished, and the safety of software protection is improved.
Description
Technical field
A kind of generated the present embodiments relate to Software Protection Technique more particularly to anti-copy check code method, apparatus,
Equipment and storage medium.
Background technology
For software vendor, if wanting the fast-developing business in increasingly keen competition, a kind of effective hand is needed
Section protection market income and its core technology, it is ensured that the competitive advantage of oneself.At present in embedded systems, it is frequently encountered and is
The case where system software is copied, bad competitor read by buying a product on the market, and by the software program in product
It takes out, is burnt in the hardware of oneself and is sold, such behavior compromises the interests of developer significantly.
Software is copied in order to prevent, and the prior art is typically employed in synchronous burning during embedded system program burning
The mode that condition code with uniqueness and its corresponding authorization code are verified, to prevent software to be copied.Inventor exists
During realizing the present invention, it is found that there are following defects for the prior art:The external equipment for needing to rely on special is supported to authorize
Service function increases production cost and authorization service process.Meanwhile bad competitor can also be by the condition code of imitation
The step for around authorizing, reduce the safety of this method.
Invention content
The present invention provides a kind of method, apparatus, equipment and storage medium that anti-copy check code generates, and is being disobeyed with realizing
Rely special external equipment and increase production cost under authorization service, the flow generated to check code is improved, to realize
Check code is generated after system burning, improves the safety of software protection.
In a first aspect, an embodiment of the present invention provides a kind of method that anti-copy check code generates, this method includes:
After system program burning, starts check code and generate program;
It preserves the check code and generates the check code generated after the end of the program, the check code is for detecting the system
Whether system program is copied;
It deletes the check code and generates program.
Second aspect, an embodiment of the present invention provides the device that a kind of anti-copy check code generates, which includes:
Starting module generates program for after system program burning, starting check code;
Preserving module generates the check code generated after the end of the program, the check code for preserving the check code
For detecting whether the system program is copied;
Removing module generates program for deleting the check code.
The third aspect, the embodiment of the present invention additionally provide a kind of equipment, including memory, processor and are stored in memory
Computer program that is upper and can running on a processor, the processor realize a kind of above-mentioned anti-copy school when executing described program
The method for testing code generation.
Fourth aspect, the embodiment of the present invention additionally provide a kind of computer readable storage medium, are stored thereon with computer
Program, the program realize the method that a kind of above-mentioned anti-copy check code generates when being executed by processor.
Method, apparatus, equipment and the storage medium that a kind of anti-copy check code of above-mentioned offer generates, by system journey
After sequence replication, starts check code and generate program;It preserves the check code and generates the check code generated after the end of the program,
The check code is for detecting whether the system program is copied;The technological means that the check code generates program is deleted, solution
The external equipment that certainly burning of check code needs to rely on special in the prior art supports authorization service function, increases and is produced into
The problem of this is with authorization service process, in the case where not increasing production cost and authorization service, to be carried out to the flow that check code generates
It improves, automatically generates check code after system burning to realize, improve the safety of software protection.
Description of the drawings
Fig. 1 is the flow chart for the method that a kind of anti-copy check code that the embodiment of the present invention one provides generates;
Fig. 2 is the flow chart for the method that a kind of anti-copy check code provided by Embodiment 2 of the present invention generates;
Fig. 3 is the structural schematic diagram for the device that a kind of anti-copy check code that the embodiment of the present invention three provides generates;
Fig. 4 is a kind of structural schematic diagram for equipment that the embodiment of the present invention four provides.
Specific implementation mode
The present invention is described in further detail with reference to the accompanying drawings and examples.It is understood that this place is retouched
The specific embodiment stated is used only for explaining the present invention rather than limitation of the invention.It also should be noted that in order to just
Only the parts related to the present invention are shown in description, attached drawing rather than entire infrastructure.
Embodiment one
Fig. 1 is the flow chart for the method that a kind of anti-copy check code that the embodiment of the present invention one provides generates, the present embodiment
It is applicable to before manufacture carry out system program burning to equipment, and check code is automatically generated to prevent locking system after burning
The case where software is copied.This method can be executed by being integrated with the software/hardware for the device that anti-copy check code generates, should
Device is integrated in the current equipment for needing programming system program.With reference to figure 1, what the anti-copy check code in the present embodiment generated
Method specifically comprises the following steps:
S110, after system program burning, start check code generate program.
In general, equipment, before manufacture, system is blank, any result or root cannot be generated by executing the system
According to the equipment can not be executed, it is therefore desirable to carry out programming system program to equipment to realize specific function.In general, by will be real
The system program of certain existing function is written in the equipment, to complete the process of burning, such as the Bootloader of STM32 chips
The program exactly producer in manufacture is write by specific process goes to the reserved dedicated spaces FLASH, is operated in operation with realizing
The initialization of hardware device is carried out before system, wherein including condition code with uniqueness (Identification, ID) also one
Burning is played to enter.In the present embodiment, check code generates program addition in advance in the system program for waiting for burning, check code life
Be burnt in equipment together in company with the system program at program, without additional replication tool to check code generate program into
Row burning.The check code generates program and is used to obtain the condition code in current device, and corresponding according to the generation of this feature code
Check code, at this time the current device refer to manufacture when carry out burning for the first time equipment, condition code can be in current device in
Central processor (Central Processing Unit, CPU) ID, the address hard disk ID, MAC (Media Access Control)
Or the ID with uniqueness of other chips.The check code production routine does not start operation before programming system burning and generates
Check code, until after system program is burnt to terminal device, according to system program burning after the trigger signal that sends out,
It is automatic to start operation.
S120, the preservation check code generate the check code generated after the end of the program.
Wherein, the check code is for detecting whether the system program is copied.Check code generates meeting in program operation
The condition code of current device is obtained, and corresponding check code is generated according to this feature code, and check code is stored in journey
The position of sequence setting.After system program is again started up, the check code be used for the corresponding condition code in current system into
Whether row matching, be copied with detecting system program.
S130, the check code generation program is deleted.
After running check code generation Program Generating check code, check code generates program by other bad users in order to prevent
It obtains to generate check code again, so then the check code is generated program deletion by setting after check code generates.Deletion mode
Can be that program is deleted check code generation program reset, or by calling other program modules by the school by operation
It tests code generation program to cover and replace, program is generated to achieve the purpose that delete the check code.
The present embodiment provides a kind of methods that anti-copy check code generates, by after system program burning, starting
Check code generates program;It preserves the check code and generates the check code generated after the end of the program, the check code is for examining
Survey whether the system program is copied;The technological means that the check code generates program is deleted, improvement verifies in the prior art
The flow that code generates reduces production cost and authorization service, improves the safety of software protection.
Embodiment two
The present embodiment is on the basis of embodiment one, and the method generated to anti-copy check code is further explained
It is bright.Fig. 2 is the flow chart for the method that anti-copy check code provided by Embodiment 2 of the present invention generates, as shown in Fig. 2, the anti-copy
The method that check code generates includes the following steps:
S210, after system program burning, start check code generate program.
After system program burning, triggering check code generates program automatic running.The step of the step and embodiment one
Rapid S110 is identical, and details are not described herein.
S220, at least one condition code that program sends current device is generated to the check code.
Specifically, since condition code has uniqueness, check code is generated program and is generated with unique using condition code
The check code of property.If generating program to check code sends a condition code, which generates program and is given birth to according to this feature code
At a corresponding check code;If generating program to check code sends multiple condition codes, which generates program
Corresponding check code is generated respectively according to multiple condition codes, and check code can be conserved after generating.Wherein, according to school
The mode that code generates condition code is tested, the present embodiment is not construed as limiting.
S230, the check code that the check code generates program according at least one condition code generation is obtained.
Check code generates program and generates corresponding check code according to condition code, such as generates MAC Address school according to MAC Address
Code is tested, CPU identifying codes are generated according to CPU ID, hard disk identifying code etc. is generated according to hard disk ID, and obtains MAC Address verification
Code, CPU check codes and hard disk check code etc..
S240, the check code is stored at least one setting position.
The position specified by equipment when the setting position can be first burning, preferably concealed position, prevent bad
User is easily obtained check code, can also be any position.Specifically, when there are multiple check codes, it can be different schools
It tests code and is stored in a setting position, can also be multiple setting positions.The setting position can be acquisition address concealing technology
The physical address to stash can also be the underlying programs of multilayer program, can also be the texts such as treated picture, document
In part, it is not easy to be found by other users after being conserved so as to it.
S250, the check code generation program is deleted.
Bad user generates program by the check code and generates check code again in order to prevent, and program fortune is generated in check code
Row terminates to delete check code generation program after generating check code, and the method for the deletion includes but not limited to:The check code is given birth to
At program reset, or pre-set useless program is called, and replaces check code using the useless program and generate program;Or it calls
Pre-set functional programs, and using the functional programs replace the check code generate program, or other mode with
Make user that can not obtain former check code and generates program.Wherein, can be deleted by running by check code generation program reset
Program, the deletion program are used to the check code generating program reset;The useless program refers to not having in the system program
Function, but not the program for allowing system program to collapse;The functional programs refer to that storage, number are played in the system program
It can be useless by obtaining this when needing to delete check code generation program according to the program of the function affects such as processing, removing
Program or functional programs, and the useless program and functional programs covering are replaced into check code and generate program, to reach
The effect of deletion.
On the basis of the above embodiments, the method which generates, further includes verification step, verification step
Suddenly it is executed by the checking routine being stored in system software, starts operation when system software is run again and obtain current system
Condition code, this feature code and check code are carried out to match equipment of the verification to judge whether current system is first burning when,
Therefore the present embodiment is further comprising the steps of:
S260, when detecting system program operation, obtain at least one condition code.
When school measures system program operation, the corresponding condition code of current system is obtained according to the type of check code.Example
Such as, the type of MAC Address class check code is 24 bit signs composition, when it is MAC Address class check code to detect the check code,
Then obtain the condition code of the MAC Address of current system;The type of CPU class check codes is 30 bit signs composition, when detecting this
When check code is CPU class check codes, then the condition code of the CPU of current system is obtained.When detecting multiple check codes, then basis
The corresponding type of multiple check codes obtains current system corresponding condition code therewith.
S270, at least one condition code and the check code are subjected to matching verification.
Matching verification can be not encrypted matching, in not encrypting matching, the condition code of the current device got
It is identical as the condition code of equipment when first burning.Such as the condition code that equipment when by first burning is got is ABCDEFG,
It is 1234567890 according to the check code that this feature code generates, if the condition code of the current device got is also ABCDEFG,
Illustrate that equipment when first burning is identical with the condition code in current device, system program is not copied, and continues to run with this and is
System program;Otherwise illustrating that equipment when first burning is different from the condition code of current device, system program is likely to be copied, this
When the system program out of service.
In addition, matching verification can also be encrypted matching.In encryption matches, the feature of the current device got
Encrypted treated the encrypted feature code of code, if the encrypted feature code of current device and the encryption of equipment when first burning are special
Levy that code is identical, such as the condition code that equipment when by first burning is got is ABCDEFG, and this feature is obtained by Encryption Algorithm
The encrypted feature code of code is qazwsxedcr, and check code corresponding with this feature code 1234567890 establishes mapping relations,
If the encrypted feature code of the condition code by Encryption Algorithm treated current device got is also qazwsxedcr, say
Equipment when bright first burning is identical with this feature code in current device, and system program is not copied, and continues to run with this and is
Otherwise system program illustrates that equipment when first burning is different with this feature code of current device, system program is likely to be copied,
The system program out of service at this time.
The checking routine can be stored in crucial system program, such as kernel, important APP or important library etc.,
It can also be stored at multiple positions of system program.When be stored at critical system program checking routine operation it is unsuccessful,
Then illustrate that equipment when current device and first burning mismatches, then at the critical system program interrupt routine operation, protect
Shield critical system program is not copied.When checking routine is stored in multiple positions of system program, when multiple checking routines are same
When meet matching relationship, system program ability normal operation, when this feature code and check code occur being unsatisfactory for matching pass at least one
System, then the system program out of service effectively prevent system soft to considerably increase the difficulty that bad user cracks check code
Part is copied.
S280, judge whether at least one condition code meets matching relationship with the check code.If described at least one
Condition code meets matching relationship with the check code, then executes S290.If at least one condition code and the check code
It is unsatisfactory for matching relationship, then executes S2100.
S290, the system program is continued to run with.
S2100, the system program out of service.
Since condition code has uniqueness, when system program is copied into another equipment, by being gathered around in distinct device
Some condition codes simultaneously differ.When system program is again started up, if the condition code got meets matching relationship with check code,
Equipment when then illustrating current device and first burning is identical, then continues to run with the system program;If the condition code got with
Check code is unsatisfactory for matching relationship, then illustrates equipment when current device and first burning and differ then system out of service
Program.Wherein, system program out of service includes but not limited to following situations:The system program is forbidden to run so that the system
Program outage;Program bug is generated in system program so that system program is unable to operate normally, which makes
System program can not correctly be run due to lacking necessary program;Faulty operation is executed to the system program, so that the system
Program crashing, such as the system program execute operation disorder, correctly can not obtain information and system program is caused to collapse;It is at this
Virus is added in system program, so that the system program collapses, which can be interrupt routine, mess code program etc.,
So that the system program is unable to operate normally and collapses.
The method that anti-copy check code provided in this embodiment generates, by after system program burning, starting school
It tests code and generates program;At least one condition code of current device is sent to the verification coded program;The check code is obtained to generate
The check code that program is generated according to described document information, and the check code is stored in setting position;Detecting system program
When running again, the condition code of current device is obtained, according to the matching relationship of condition code and check code, continues to run with or stops
Operating system program, in the case where not increasing production cost and authorization service, the flow generated to check code is improved, to realize
Check code is generated after system program burning, improves the safety of software protection.
Embodiment three
Fig. 3 is the structural schematic diagram for the device that a kind of anti-copy check code that the embodiment of the present invention three provides generates.Such as Fig. 3
Shown, the device which generates includes:Starting module 310, preserving module 320 and removing module 330.
Wherein, starting module 310 generate program for after system program burning, starting check code;Preserving module
320, the check code generated after the end of the program is generated for preserving the check code, the check code is for detecting the system
Whether system program is copied;Removing module 330 generates program for deleting the check code.
The present embodiment provides the devices that a kind of anti-copy check code generates, and are terminated in system program burning by starting module
Start check code afterwards and generate program, preserving module preserves the check code and generates the check code generated after the end of the program and deletion
Module deletes the check code and generates program, in the case where not increasing production cost and authorization service, flow that check code is generated into
Row improves, and realization generates check code after system burning, improves the safety of software protection.
Wherein, preserving module 320 can further comprise:Condition code transmission unit, check code acquiring unit and check code are protected
Memory cell;Wherein, condition code transmission unit, for generating at least one feature that program sends current device to the check code
Code;Check code acquiring unit generates the verification that program is generated according at least one condition code for obtaining the check code
Code;Check code storage unit, for the check code to be stored at least one setting position.The setting position is usually
Concealed position in system program can be stored in the picture, file or other programs of system, so that user is not easy to send out
Feel, to increase the safety of software protection.
Optionally, which further includes correction verification module, the condition code for obtaining current device, by this feature code and verification
Code is matched, which can further comprise:Condition code acquiring unit, for detect system program operation when,
Obtain at least one condition code;Control unit is run, if full with the check code at least one condition code
Sufficient matching relationship then continues to run with the system program;Stop control unit, if being used at least one condition code and institute
It states check code and is unsatisfactory for matching relationship, then the system program out of service.
Wherein, the stop control unit is specifically used for following at least one situations:If at least one condition code
It is unsatisfactory for matching relationship with the check code, then the system program is forbidden to run;If at least one condition code and institute
It states check code and is unsatisfactory for matching relationship, then generate program bug in the system program;If at least one condition code
It is unsatisfactory for matching relationship with the check code, then faulty operation is executed to the system program, the system program is made to collapse;Such as
At least one condition code described in fruit is unsatisfactory for matching relationship with the check code, then viral journey is added in the system program
Sequence, so that the system program collapses.
On the basis of the above embodiments, which generates program addition in advance in the system program.
Wherein, the removing module 330 is specifically used for:Pre-set useless program is transferred, and utilizes the useless journey
Sequence replaces the check code and generates program;Or, transferring pre-set functional programs, and replaced using the functional programs
The check code generates program.
The device that above-mentioned anti-copy check code generates can perform the anti-copy check code that any embodiment of the present invention is provided
The method of generation has and executes the corresponding function module of method and advantageous effect that anti-copy check code generates.
Example IV
Fig. 4 is a kind of structural schematic diagram for equipment that the embodiment of the present invention four provides.Fig. 4 is shown suitable for being used for realizing this
The block diagram of the example devices 12 of invention embodiment.The equipment 12 that Fig. 4 is shown is only an example, should not be to of the invention real
The function and use scope for applying example bring any restrictions.
As shown in figure 4, equipment 12 is showed in the form of universal computing device.The component of equipment 12 may include but unlimited
In:One or more processor or processing unit 16, system storage 28, connection different system component (including system is deposited
Reservoir 28 and processing unit 16) bus 18.
Bus 18 indicates one or more in a few class bus structures, including memory bus or Memory Controller,
Peripheral bus, graphics acceleration port, processor or the local bus using the arbitrary bus structures in a variety of bus structures.It lifts
For example, these architectures include but not limited to industry standard architecture (ISA) bus, microchannel architecture (MAC)
Bus, enhanced isa bus, Video Electronics Standards Association (VESA) local bus and peripheral component interconnection (PCI) bus.
Equipment 12 typically comprises a variety of computer system readable media.These media can be it is any can be by equipment 12
The usable medium of access, including volatile and non-volatile media, moveable and immovable medium.
System storage 28 may include the computer system readable media of form of volatile memory, such as arbitrary access
Memory (RAM) 30 and/or cache memory 32.Equipment 12 may further include it is other it is removable/nonremovable,
Volatile/non-volatile computer system storage medium.Only as an example, storage system 34 can be used for reading and writing irremovable
, non-volatile magnetic media (Fig. 4 do not show, commonly referred to as " hard disk drive ").Although not shown in fig 4, use can be provided
In the disc driver to moving non-volatile magnetic disk (such as " floppy disk ") read-write, and to moving anonvolatile optical disk
The CD drive of (such as CD-ROM, DVD-ROM or other optical mediums) read-write.In these cases, each driver can
To be connected with bus 18 by one or more data media interfaces.System storage 28 may include at least one program production
There is one group of (for example, at least one) program module, these program modules to be configured to perform of the invention each for product, the program product
The function of embodiment.
Program/utility 40 with one group of (at least one) program module 42 can be stored in such as system storage
In device 28, such program module 42 includes but not limited to operating system, one or more application program, other program modules
And program data, the realization of network environment may be included in each or certain combination in these examples.Program module 42
Usually execute the function and/or method in embodiment described in the invention.
Equipment 12 can also be communicated with one or more external equipments 14 (such as keyboard, sensing equipment, display 24 etc.),
Can also be enabled a user to one or more equipment interacted with the equipment 12 communication, and/or with enable the equipment 12 with
Any equipment (such as network interface card, modem etc.) communication that one or more of the other computing device is communicated.It is this logical
Letter can be carried out by input/output (I/O) interface 22.Also, equipment 12 can also by network adapter 20 and one or
The multiple networks of person (such as LAN (LAN), wide area network (WAN) and/or public network, such as internet) communication.As shown,
Network adapter 20 is communicated by bus 18 with other modules of equipment 12.It should be understood that although not shown in fig 4, Ke Yijie
It closes equipment 12 and uses other hardware and/or software module, including but not limited to:Microcode, device driver, redundancy processing are single
Member, external disk drive array, RAID system, tape drive and data backup storage system etc..
Processing unit 16 is stored in program in system storage 28 by operation, to perform various functions application and
Data processing, such as realize the method that the anti-copy check code that the embodiment of the present invention is provided generates:
That is, the processing unit is realized when executing described program:After system program burning, start check code life
At program;It preserves the check code and generates the check code generated after the end of the program, the check code is for detecting the system
Whether system program is copied;It deletes the check code and generates program.
Certainly, above equipment can execute the method that the anti-copy check code that any embodiment of the present invention is provided generates,
Have and executes the corresponding function of method and advantageous effect that anti-copy check code generates.
Embodiment five
The embodiment of the present invention five provides a kind of computer readable storage medium, is stored thereon with computer program, the journey
The method that the anti-copy check code provided such as all inventive embodiments of the application generates is realized when sequence is executed by processor:
That is, the program is realized when being executed by processor:After system program burning, starts check code and generate journey
Sequence;It preserves the check code and generates the check code generated after the end of the program, the check code is for detecting the system journey
Whether sequence is copied;It deletes the check code and generates program.
The embodiment of the present invention five provide a kind of computer readable storage medium one or more computers may be used can
The arbitrary combination of the medium of reading.Computer-readable medium can be computer-readable signal media or computer-readable storage medium
Matter.Computer readable storage medium can for example be but not limited to the system of electricity, magnetic, optical, electromagnetic, infrared ray or semiconductor, dress
It sets or device, or the arbitrary above combination.The more specific example (non exhaustive list) of computer readable storage medium wraps
It includes:It is electrical connection, portable computer diskette, hard disk, random access memory (RAM) with one or more conducting wires, read-only
Memory (ROM), erasable programmable read only memory (EPROM or flash memory), optical fiber, portable compact disc read-only memory
(CD-ROM), light storage device, magnetic memory device or above-mentioned any appropriate combination.In this document, computer-readable
Storage medium can be any include or storage program tangible medium, the program can be commanded execution system, device or
Device use or in connection.
Computer-readable signal media may include in a base band or as the data-signal that a carrier wave part is propagated,
Wherein carry computer-readable program code.Diversified forms may be used in the data-signal of this propagation, including but unlimited
In electromagnetic signal, optical signal or above-mentioned any appropriate combination.Computer-readable signal media can also be that computer can
Any computer-readable medium other than storage medium is read, which can send, propagates or transmit and be used for
By instruction execution system, device either device use or program in connection.
The program code for including on computer-readable medium can transmit with any suitable medium, including but not limited to without
Line, electric wire, optical cable, RF etc. or above-mentioned any appropriate combination.
It can be write with one or more programming languages or combinations thereof for executing the computer that operates of the present invention
Program code, described program design language include object oriented program language-such as Java, Smalltalk, C++,
Further include conventional procedural programming language-such as " C " language or similar programming language.Program code can be with
It fully executes, partly execute on the user computer on the user computer, being executed as an independent software package, portion
Divide and partly executes or executed on a remote computer or server completely on the remote computer on the user computer.
Be related in the situation of remote computer, remote computer can pass through the network of any kind --- including LAN (LAN) or
Wide area network (WAN)-be connected to subscriber computer, or, it may be connected to outer computer (such as carried using Internet service
It is connected by internet for quotient).
Note that above are only presently preferred embodiments of the present invention and institute's application technology principle.It will be appreciated by those skilled in the art that
The present invention is not limited to specific embodiments described here, can carry out for a person skilled in the art it is various it is apparent variation,
It readjusts and substitutes without departing from protection scope of the present invention.Therefore, although being carried out to the present invention by above example
It is described in further detail, but the present invention is not limited only to above example, without departing from the inventive concept, also
May include other more equivalent embodiments, and the scope of the present invention is determined by scope of the appended claims.
Claims (10)
1. a kind of method that anti-copy check code generates, which is characterized in that including:
After system program burning, starts check code and generate program;
It preserves the check code and generates the check code generated after the end of the program, the check code is for detecting the system journey
Whether sequence is copied;
It deletes the check code and generates program.
2. the method that anti-copy check code according to claim 1 generates, which is characterized in that described to preserve the check code
Generating the check code generated after the end of the program includes:
At least one condition code that program sends current device is generated to the check code;
It obtains the check code and generates the check code that program is generated according at least one condition code;
The check code is stored at least one setting position.
3. the method that anti-copy check code according to claim 2 generates, which is characterized in that further include:
When detecting system program operation, at least one condition code is obtained;
If at least one condition code meets matching relationship with the check code, the system program is continued to run with;
If at least one condition code is unsatisfactory for matching relationship, the system program out of service with the check code.
4. the method that anti-copy check code according to claim 3 generates, which is characterized in that the system out of service
System program includes following at least one situations:
The system program is forbidden to run;
Program bug is generated in the system program;
Faulty operation is executed to the system program, so that the system program collapses;
Virus is added in the system program, so that the system program collapses.
5. the method that anti-copy check code according to claim 1 generates, which is characterized in that the check code generates program
Addition is in the system program in advance.
6. the method that anti-copy check code according to claim 1 generates, which is characterized in that described to delete the check code
Generating program includes:
Pre-set useless program is transferred, and replaces the check code using the useless program and generates program;Or,
Pre-set functional programs are transferred, and replaces the check code using the functional programs and generates program.
7. the device that a kind of anti-copy check code generates, which is characterized in that including:
Starting module generates program for after system program burning, starting check code;
Preserving module generates the check code generated after the end of the program for preserving the check code, and the check code is used for
Detect whether the system program is copied;
Removing module generates program for deleting the check code.
8. the device that anti-copy check code according to claim 7 generates, which is characterized in that the preserving module includes:
Condition code transmission unit, for generating at least one condition code that program sends current device to the check code;
Check code acquiring unit generates the verification that program is generated according at least one condition code for obtaining the check code
Code;
Check code storage unit, for the check code to be stored at least one setting position.
9. a kind of equipment, including memory, processor and storage are on a memory and the computer journey that can run on a processor
Sequence, which is characterized in that the processor realizes the anti-copy verification as described in any in claim 1-6 when executing described program
Code generating method.
10. a kind of computer readable storage medium, is stored thereon with computer program, which is characterized in that the program is by processor
Realize that the anti-copy as described in any in claim 1-6 verifies code generating method when execution.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810467941.4A CN108647499A (en) | 2018-05-16 | 2018-05-16 | Method, device, equipment and storage medium for generating anti-copy check code |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810467941.4A CN108647499A (en) | 2018-05-16 | 2018-05-16 | Method, device, equipment and storage medium for generating anti-copy check code |
Publications (1)
Publication Number | Publication Date |
---|---|
CN108647499A true CN108647499A (en) | 2018-10-12 |
Family
ID=63756137
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810467941.4A Pending CN108647499A (en) | 2018-05-16 | 2018-05-16 | Method, device, equipment and storage medium for generating anti-copy check code |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108647499A (en) |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111104669A (en) * | 2018-10-29 | 2020-05-05 | 中兴通讯股份有限公司 | Cracking detection method, device, system, server, terminal and storage medium |
CN111901095A (en) * | 2020-07-23 | 2020-11-06 | 上海世麦智能科技有限公司 | Safe starting method and system based on hardware encryption |
CN112632482A (en) * | 2020-12-18 | 2021-04-09 | 珠海极海半导体有限公司 | Target application running method and device and storage medium |
CN113468489A (en) * | 2021-07-27 | 2021-10-01 | 浙江欣奕华智能科技有限公司 | Equipment authorization method, authorization code generation method and related device |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
EP2098975A1 (en) * | 2008-03-04 | 2009-09-09 | THOMSON Licensing | Copy-protected software cartridge |
CN101968834A (en) * | 2009-07-28 | 2011-02-09 | 上海移为通信技术有限公司 | Encryption method and device for anti-copy plate of electronic product |
CN102982264A (en) * | 2012-12-24 | 2013-03-20 | 上海斐讯数据通信技术有限公司 | Method for protecting embedded type device software |
CN107590368A (en) * | 2017-08-25 | 2018-01-16 | 济南中维世纪科技有限公司 | The method of embedded device program anti-copy |
-
2018
- 2018-05-16 CN CN201810467941.4A patent/CN108647499A/en active Pending
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
EP2098975A1 (en) * | 2008-03-04 | 2009-09-09 | THOMSON Licensing | Copy-protected software cartridge |
CN101968834A (en) * | 2009-07-28 | 2011-02-09 | 上海移为通信技术有限公司 | Encryption method and device for anti-copy plate of electronic product |
CN102982264A (en) * | 2012-12-24 | 2013-03-20 | 上海斐讯数据通信技术有限公司 | Method for protecting embedded type device software |
CN107590368A (en) * | 2017-08-25 | 2018-01-16 | 济南中维世纪科技有限公司 | The method of embedded device program anti-copy |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111104669A (en) * | 2018-10-29 | 2020-05-05 | 中兴通讯股份有限公司 | Cracking detection method, device, system, server, terminal and storage medium |
CN111901095A (en) * | 2020-07-23 | 2020-11-06 | 上海世麦智能科技有限公司 | Safe starting method and system based on hardware encryption |
CN112632482A (en) * | 2020-12-18 | 2021-04-09 | 珠海极海半导体有限公司 | Target application running method and device and storage medium |
CN113468489A (en) * | 2021-07-27 | 2021-10-01 | 浙江欣奕华智能科技有限公司 | Equipment authorization method, authorization code generation method and related device |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108647499A (en) | Method, device, equipment and storage medium for generating anti-copy check code | |
TWI470436B (en) | System, method, and computer program product for ordering a plurality of write commands associated with a storage device | |
US8732587B2 (en) | Systems and methods for displaying trustworthiness classifications for files as visually overlaid icons | |
US9990458B2 (en) | Generic design rule checking (DRC) test case extraction | |
US9804948B2 (en) | System, method, and computer program product for simulating at least one of a virtual environment and a debugging environment to prevent unwanted code from executing | |
US20130036431A1 (en) | Constraining Execution of Specified Device Drivers | |
WO2016000546A1 (en) | Method and device for checking influence of deletion of cache file, and mobile terminal | |
CN109933530A (en) | Components testing method and device, equipment and storage medium | |
US9710575B2 (en) | Hybrid platform-dependent simulation interface | |
CN108509215A (en) | System software replacing method and device, terminal equipment and storage medium | |
US10514972B2 (en) | Embedding forensic and triage data in memory dumps | |
CN108874441A (en) | A kind of board configuration method, device, server and storage medium | |
CN114765051A (en) | Memory test method and device, readable storage medium and electronic equipment | |
CN109561212A (en) | A kind of merging method of release information, device, equipment and storage medium | |
US8250263B2 (en) | Apparatus and method for securing data of USB devices | |
CN109685507A (en) | The identification of transactions requests validity and initiating method, device, equipment and medium | |
US11157353B2 (en) | Detecting single event upsets and stuck-at faults in RAM-based data path controllers | |
CN116796673A (en) | Test method, test device, electronic equipment and storage medium | |
CN105760456B (en) | A kind of method and apparatus keeping data consistency | |
CN109522174A (en) | Control adb enabled method, apparatus, terminal and storage medium | |
JP2000132494A (en) | Computer system and audio output control method of the system | |
US9378385B1 (en) | Systems and methods for determining whether transmission of sensitive data is expected | |
US11100226B1 (en) | Systems and methods for identifying a malicious user interface | |
CN107016266B (en) | Content-based authentication | |
CN113139190A (en) | Program file detection method and device, electronic equipment and storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20181012 |