CN108304740B - Method for burning digital product key - Google Patents

Method for burning digital product key Download PDF

Info

Publication number
CN108304740B
CN108304740B CN201710408827.XA CN201710408827A CN108304740B CN 108304740 B CN108304740 B CN 108304740B CN 201710408827 A CN201710408827 A CN 201710408827A CN 108304740 B CN108304740 B CN 108304740B
Authority
CN
China
Prior art keywords
key
library
burning
burned
digital product
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.)
Active
Application number
CN201710408827.XA
Other languages
Chinese (zh)
Other versions
CN108304740A (en
Inventor
黄振宗
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen 3nod Information Technology Co ltd
Original Assignee
Shenzhen 3nod Information Technology Co ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Shenzhen 3nod Information Technology Co ltd filed Critical Shenzhen 3nod Information Technology Co ltd
Priority to CN201710408827.XA priority Critical patent/CN108304740B/en
Publication of CN108304740A publication Critical patent/CN108304740A/en
Application granted granted Critical
Publication of CN108304740B publication Critical patent/CN108304740B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06KGRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
    • G06K1/00Methods or arrangements for marking the record carrier in digital fashion
    • G06K1/12Methods or arrangements for marking the record carrier in digital fashion otherwise than by punching
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/10Protecting distributed programs or content, e.g. vending or licensing of copyrighted material ; Digital rights management [DRM]
    • G06F21/12Protecting executable software
    • G06F21/121Restricting unauthorised execution of programs

Abstract

The invention provides a method for burning a digital product key, which comprises the following steps: selecting a key from a key library to be burned, and assigning the key to be written; burning the key to be written to a digital product; moving the key to be written to a burnt key library from the key library to be burnt; and reading a key from the digital product, matching the read key with the key in the burned key library, and matching the read key with the key in the key library to be burned if the read key is not matched with the key in the key library to be burned. The invention can record the specific condition of the burning failure and is convenient for eliminating the abnormity in the follow-up process.

Description

Method for burning digital product key
Technical Field
The invention relates to the field of burning, in particular to a method for burning a digital product key.
Background
A DPK (Digital Product Key) file is used to activate WINDOWS and OFFICE software, and a Key in the DPK file needs to be burned into a Digital Product, where the burning Key is required to be executed before shipment of a production line by each machine station pre-installed with a legal WINDOWS operating system, and is also required to be executed when after-market spare parts (spare parts) are provided to an end user.
The conventional burning method records the states of key burning success and key burning failure, wherein the key burning failure can only be simply recorded as failure, and the specific reasons of the burning failure cannot be recorded, so that the subsequent abnormal removal work is inconvenient.
Disclosure of Invention
The invention aims to solve the problem that the specific reasons of burning failure cannot be recorded in the prior art, and provides a method for burning a digital product key.
In order to solve the technical problems, the invention adopts the following technical scheme:
a method for burning a digital product key comprises the following steps:
selecting a key from a key library to be burned, and assigning the key to be written;
burning the key to be written to a digital product;
moving the key to be written to a burnt key library from the key library to be burnt;
and reading a key from the digital product, matching the read key with the key in the burned key library, and matching the read key with the key in the key library to be burned if the read key is not matched with the key in the key library to be burned.
In some preferred embodiments, before the selecting a key from the keystore to be burned, the method includes: an original keystore is established, which stores all keys.
In a further preferred embodiment, the reading the key from the digital product specifically includes: if the burnt key can be read from the digital product, continuing to execute the operation; and if the burnt key cannot be read from the digital product, reading the key to be written.
In a further preferred embodiment, the reading the key to be written specifically includes: if the key to be written can be read, continuing to execute the operation; and if the key to be written cannot be read, generating a temporary library, wherein the temporary library comprises the key to be burned and the key of the burned key library.
In a further preferred embodiment, after the generating the temporary library, the method further includes: comparing the key of the temporary repository to the key of the original keystore; if the key of the original key bank is more than that of the temporary bank, exporting the more key and burning the more key to the digital product again; and if the key of the original key library is the same as the key of the temporary library, selecting the key from the key library to be burnt and burning the key to the digital product.
In a further preferred embodiment, after the key to be written is read, the continuing to perform the operation specifically includes: and matching the read key with the key in the burnt key library, matching the read key with the key in the key library to be burnt if the read key is not matched with the key in the key library to be burnt, recording according to a matching result, and burning the key to be burnt to the mainboard again.
In a further preferred embodiment, after rewriting the key to be written to the motherboard, the method further includes: and if the burning fails, sending a prompt for detecting the digital product.
In a further preferred embodiment, when no matching key is found: and continuing to match in the original key library, copying the found key into the burnt key library if the matched key is found in the original key library, and selecting a key from the to-be-burnt key library to burn the key into the digital product if the matched key is not found in the original key library.
In some preferred embodiments, the number of the to-be-burned keystore and the number of the burned keystore are both N, and the value of N is greater than or equal to two.
In another aspect, the present invention also provides a computer-readable storage medium:
a computer-readable storage medium storing a computer program for use in conjunction with a computing device, the computer program being executable by a processor to perform any of the above methods.
Compared with the prior art, the invention has the beneficial effects that:
in the invention, after the burning of the key is successful, the key is moved from the key library to be burned to the burned key library, and whether the burning is successful can be known by matching with the key in the burned key library, if the burning is failed, the key is matched with the key in the key library to be burned, because the key is moved from the key library to be burned to the burned key library, the matching result with the key library to be burned can indicate whether the key is moved, if the matching is successful, the key is abnormal to move, if the matching is failed, the read key is not the key to be burned, and the key to be burned is not burned, so that the specific reason of the burning failure can be known, and the subsequent exception removal is convenient.
In a preferred embodiment, the invention also has the following beneficial effects:
furthermore, the invention adopts the judgment conditions of reading the key to be written, matching with the original key library, generating the temporary library and matching with the original key library, and the like to carry out multiple judgments on various burning abnormal conditions, processes various abnormal conditions according to the judgment result, can ensure the accurate burning of the key, improves the capability of the system for processing the abnormal conditions, and further improves the reliability of the system burning key.
Furthermore, the number of the to-be-burned key banks and the number of the burned key banks are both N, so that the method is suitable for simultaneously burning the keys for a plurality of digital products, and the burning efficiency is improved.
Drawings
FIG. 1 is a schematic flow chart of a first embodiment of the present invention;
FIG. 2 is a schematic flow chart of a second embodiment of the present invention;
fig. 3 is a flowchart illustrating step S4 according to the second embodiment of the present invention.
Detailed Description
In the following, embodiments of the present invention will be described in detail, and the digital product is preferably a motherboard. It should be emphasized that the following description is merely exemplary in nature and is not intended to limit the scope of the invention or its application.
First embodiment
Refer to fig. 1.
In step S1, a key is selected from the key library to be burned, and the key is assigned to the key to be written; a large number of keys to be burned to the motherboard are stored in the key bank to be burned, after one key is selected from the key bank to be burned from top to bottom, the key is assigned to the key to be written, the key to be written can temporarily record the current key value, and then the process goes to step S2.
In step S2, the key to be written is burned to the motherboard. After the burning is completed, the process proceeds to step S3.
In step S3, the key to be written is moved from the keystore to be burned to the burned keystore; the key bank to be burned only stores keys which are not burned to the mainboard, and when one key is burned to the mainboard, the key bank to be burned is moved to the burned key bank from the key bank to be burned so as to avoid repeated burning. After completion of step S3, the process proceeds to step S4.
In step S4, reading a key from the motherboard, matching the read key with a key in the burning key library, and if the key is not matched with the key in the burning key library, matching the key with a key in the burning key library; after the burning action is finished, whether the key is burnt into the mainboard needs to be confirmed, the key is read from the mainboard firstly, then the read key is matched with the key in the burnt key library, if the key is matched, the burning success is recorded, if the key is not matched, the burning failure is recorded, and the read key is matched with the key in the key library to be burnt: if the matching is successful, recording that the recording is half way failed, specifically, recording that a new key is recorded into the mainboard during recording, but the key is interrupted when moving from the key library to be recorded to the recorded key library, and the key is also kept in the key library to be recorded, so that the matching can be successful in the key library to be recorded; if the matching fails, recording as a burning error, which is specifically shown in the following steps that the mainboard still retains an old key, a new key cannot be burned in during burning, the key is not moved from the key library to be burned to the burned key library, and the key read by the system is the old key on the mainboard, so that the matching fails.
According to the above, after the burning of the key is successful, the key is moved from the to-be-burned key library to the burned key library, and is matched with the key in the burned key library to know whether the burning is successful, if the burning is failed, the key is matched with the key in the to-be-burned key library, because the key is moved from the to-be-burned key library to the burned key library, the matching result with the to-be-burned key library can indicate whether the key is moved, if the matching is successful, the key is abnormal to move, and if the matching is failed, the read key is not the key to be burned, and the key to be burned is not burned, so that the specific reason of the burning failure can be known, and the subsequent exception removal is convenient. In addition, which keys are burnt currently can be known from the burnt key library, and which keys are required to be burnt currently can be known from the to-be-burnt key library, so that the real-time change of the keys is shown, and the keys are convenient to track.
Second embodiment
Refer to fig. 2. The present embodiment differs from the first embodiment in that:
step S0 is further included before step S1: establishing an original key library, wherein the original key library stores all keys;
the step S4 of reading the key from the digital product specifically includes: if the burnt key can be read from the digital product, continuing to execute the operation; and if the burnt key cannot be read from the digital product, reading the key to be written.
Step S0: establishing an original key library, wherein the original key library stores all keys; initially, the original key library stores all the keys to be burned, the system works normally, and the keys added up by the key library to be burned and the burned key library are always the same as the keys of the original key library.
After the steps S1, S2, and S3 are executed, the process proceeds to step S4, and referring to fig. 3, step S4 specifically includes:
if the burned key can be read from the motherboard, the operation is continuously executed, that is, the step S41 is entered, the read key is matched with the key in the burned key library, the step S411 is entered if the matching is successful, the burning is recorded successfully, the step S412 is entered if the matching is failed, the matching is entered from the key library to be burned, the step S4121 is entered if the matching is successful in the key library to be burned, the key is moved from the key library to be burned to the burned key library, the step S413 is entered if the matching is failed in the key library to be burned, the matching is entered in the original key library, the step S4131 is entered if the matching is successful in the original key library, the key is copied from the original key library to be burned, the key is not the key to be burned if the matching is failed in the original key library, the step S4132 is entered, a temporary library is generated, the temporary library includes the keys of the current key library to be burned and the key library to be burned, and comparing the key of the temporary library with the key of the original key library, if no difference exists, entering step S41321, selecting a key from the key library to be burned and burning the key into the main board, and then executing steps S3 and S4, if the key of the temporary library is one less than the key of the original key library, entering step S41322, burning the key into the main board, and then executing steps S3 and S4.
If the burned key cannot be read from the motherboard, step S42 is performed to read the key to be written: if the key to be written can be read, the operation is continuously executed, that is, step S421 is entered, the read key is matched with the key in the burning key library, if the key is not matched, the read key is matched with the key in the burning key library, a record is made according to a matching result, the key to be written is burned to the motherboard again, and the matching result includes: A. matching the key to be written in the key library to be written but not in the key library to be written, indicating that the writing fails, re-writing the key to be written to the mainboard, and if the writing fails repeatedly, sending a prompt for detecting the mainboard; B. if the key to be written is not matched in both the key library to be written and the key library already written, indicating that the writing fails, re-writing the key to be written to the mainboard, and if the writing fails repeatedly, sending a prompt for detecting the mainboard; C. if the key to be written is not matched in the key bank to be written but is matched in the key bank to be written, the system is indicated to mistakenly think that the key is written, the key to be written is re-written to the mainboard, and if the key fails repeatedly, a prompt for detecting the mainboard is sent; if the key to be written cannot be read, the method enters step S422, a temporary library is generated, the temporary library comprises the key to be burned and the key of the burned key library, and the method enters step S4221 after the temporary library is generated, and the key of the temporary library is compared with the key of the original key library; if the key of the original key bank is one more key than the key of the temporary bank, step S42211 is performed, and the more key is exported and burned to the motherboard again; if the key of the original keystore is the same as the key of the temporary keystore, step S42212 is performed to select a key from the keystore to be burned and burn into the motherboard.
According to the method, the device and the system, the judgment conditions of reading the key to be written, matching with the original key library, generating the temporary library, matching with the original key library and the like are adopted to carry out multiple judgment on various burning abnormal conditions, various abnormal conditions are processed according to the judgment result, accurate burning of the key can be guaranteed, the capability of the system for processing the abnormal conditions is improved, and the reliability of the system burning key is improved.
Third embodiment
The difference between this embodiment and the first embodiment is that the number of the to-be-burned keystores and the number of the burned keystores are both N, where N is greater than or equal to two. The embodiment also has the beneficial effects of the second embodiment, and the embodiment is suitable for simultaneously burning the keys for a plurality of mainboards, so that the burning efficiency is improved.
Fourth embodiment
The difference between this embodiment and the second embodiment is that the number of the to-be-burned keystores and the number of the burned keystores are N, N original keystores are correspondingly provided, the key of the nth original keystore is equal to the sum of the keys of the nth to-be-burned keystore and the nth burned keystore, and N is greater than or equal to two.
As can be seen from the above, the present embodiment also has the beneficial effects of the second embodiment. In addition, this embodiment is applicable to giving the burning secret key of polylith mainboard simultaneously, has improved the efficiency of burning.
The foregoing is a more detailed description of the invention in connection with specific/preferred embodiments and is not intended to limit the practice of the invention to those descriptions. It will be apparent to those skilled in the art that various substitutions and modifications can be made to the described embodiments without departing from the spirit of the invention, and these substitutions and modifications should be considered to fall within the scope of the invention.

Claims (8)

1. A method for burning a digital product key, comprising:
selecting a key from a key library to be burned, and assigning the key to be written;
burning the key to be written to a digital product;
moving the key to be written to a burnt key library from the key library to be burnt;
reading a key from a digital product, matching the read key with a key in the burning key library, and matching the read key with the key in the key library to be burned if the read key is not matched with the key in the burning key library;
before selecting a key from the keystore to be burned, the method comprises the following steps: establishing an original key library, wherein the original key library stores all keys;
the reading of the key from the digital product specifically includes: if the burnt key can be read from the digital product, continuing to execute the operation; and if the burnt key cannot be read from the digital product, reading the key to be written.
2. The method of burning a digital product key as claimed in claim 1, wherein said reading the key to be written specifically comprises: if the key to be written can be read, continuing to execute the operation; and if the key to be written cannot be read, generating a temporary library, wherein the temporary library comprises the key to be burned and the key of the burned key library.
3. The method of burning a digital product key as recited in claim 2, further comprising, after the generating a temporary library: comparing the key of the temporary repository to the key of the original keystore; if the key of the original key bank is more than that of the temporary bank, exporting the more key and burning the more key to the digital product again; and if the key of the original key library is the same as the key of the temporary library, selecting the key from the key library to be burnt and burning the key to the digital product.
4. The method for burning a digital product key according to claim 1, wherein after the key to be written is read, the operation to be continuously executed specifically includes: and matching the read key with the key in the burnt key library, matching the read key with the key in the key library to be burnt if the read key is not matched with the key in the key library to be burnt, recording according to a matching result, and burning the key to be burnt to the mainboard again.
5. The method of burning a digital product key as claimed in claim 4, wherein after burning the key to be written to the motherboard again, further comprising: and if the burning fails, sending a prompt for detecting the digital product.
6. The method of burning a digital product key of claim 1, wherein if no matching key is found: and continuing to match in the original key library, copying the found key into the burnt key library if the matched key is found in the original key library, and selecting a key from the to-be-burnt key library to burn the key into the digital product if the matched key is not found in the original key library.
7. The method of burning digital product keys as claimed in any one of claims 1 to 6, wherein the number of the keystore to be burned and the number of the burned keystore are both N, and the value of N is greater than or equal to two.
8. A computer readable storage medium storing a computer program for use in conjunction with a computing device, the computer program being executable by a processor to implement the method of any one of claims 1-7.
CN201710408827.XA 2017-06-02 2017-06-02 Method for burning digital product key Active CN108304740B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710408827.XA CN108304740B (en) 2017-06-02 2017-06-02 Method for burning digital product key

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710408827.XA CN108304740B (en) 2017-06-02 2017-06-02 Method for burning digital product key

Publications (2)

Publication Number Publication Date
CN108304740A CN108304740A (en) 2018-07-20
CN108304740B true CN108304740B (en) 2021-01-08

Family

ID=62872315

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710408827.XA Active CN108304740B (en) 2017-06-02 2017-06-02 Method for burning digital product key

Country Status (1)

Country Link
CN (1) CN108304740B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110086613B (en) * 2019-04-28 2022-04-12 广州视源电子科技股份有限公司 Method and device for burning secret key, digital television board card and storage medium

Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101375334A (en) * 2006-01-31 2009-02-25 汤姆森许可贸易公司 Method for recording and distributing digital data and related device
CN101951605A (en) * 2010-09-14 2011-01-19 浙江大学 Digital signature method of movable Widget
CN102075323A (en) * 2010-12-10 2011-05-25 惠州市德赛视听科技有限公司 Production management method of digital right management (DRM) key in blu-ray DVD player
CN102111753A (en) * 2010-12-07 2011-06-29 深圳市闪电通讯技术有限公司 Mobile phone software encryption method
CN102625176A (en) * 2012-03-29 2012-08-01 深圳市同洲电子股份有限公司 Method for burning secret key, digital terminal and system for burning secret key
CN102750982A (en) * 2012-06-25 2012-10-24 上海大雨电子技术有限公司 Burning method and system of encrypted memory chip
CN103176820A (en) * 2013-02-27 2013-06-26 深圳创维数字技术股份有限公司 Burning method for software
CN104166808A (en) * 2013-05-17 2014-11-26 鸿富锦精密工业(深圳)有限公司 Secret key burning system and method
CN104598285A (en) * 2015-02-11 2015-05-06 北京京东方多媒体科技有限公司 Burning method and burning system
CN105187444A (en) * 2015-09-25 2015-12-23 Tcl海外电子(惠州)有限公司 Key information burning method and device
CN105630592A (en) * 2015-08-12 2016-06-01 宇龙计算机通信科技(深圳)有限公司 Identity verification based space switching method and apparatus as well as terminal

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
GB0901589D0 (en) * 2009-01-30 2009-03-11 Omar Ralph M Improvements relating to multifunction authentication systems
CN104363091B (en) * 2014-12-01 2017-09-12 国家计算机网络与信息安全管理中心 A kind of encipher-decipher method of automatically retrieval key and selection algorithm

Patent Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101375334A (en) * 2006-01-31 2009-02-25 汤姆森许可贸易公司 Method for recording and distributing digital data and related device
CN101951605A (en) * 2010-09-14 2011-01-19 浙江大学 Digital signature method of movable Widget
CN102111753A (en) * 2010-12-07 2011-06-29 深圳市闪电通讯技术有限公司 Mobile phone software encryption method
CN102075323A (en) * 2010-12-10 2011-05-25 惠州市德赛视听科技有限公司 Production management method of digital right management (DRM) key in blu-ray DVD player
CN102625176A (en) * 2012-03-29 2012-08-01 深圳市同洲电子股份有限公司 Method for burning secret key, digital terminal and system for burning secret key
CN102750982A (en) * 2012-06-25 2012-10-24 上海大雨电子技术有限公司 Burning method and system of encrypted memory chip
CN103176820A (en) * 2013-02-27 2013-06-26 深圳创维数字技术股份有限公司 Burning method for software
CN104166808A (en) * 2013-05-17 2014-11-26 鸿富锦精密工业(深圳)有限公司 Secret key burning system and method
CN104598285A (en) * 2015-02-11 2015-05-06 北京京东方多媒体科技有限公司 Burning method and burning system
EP3258372A1 (en) * 2015-02-11 2017-12-20 Boe Technology Group Co. Ltd. Burning method and burning system
CN105630592A (en) * 2015-08-12 2016-06-01 宇龙计算机通信科技(深圳)有限公司 Identity verification based space switching method and apparatus as well as terminal
CN105187444A (en) * 2015-09-25 2015-12-23 Tcl海外电子(惠州)有限公司 Key information burning method and device

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
ULP蓝牙技术的安全设计;金纯等;《information security》;20101031;第143-146页 *

Also Published As

Publication number Publication date
CN108304740A (en) 2018-07-20

Similar Documents

Publication Publication Date Title
CN109542682B (en) Data backup method, device, equipment and storage medium
US8448138B2 (en) Recording user-driven events within a computing system
CN107368313A (en) Code detection method, device and electronic equipment
KR100643288B1 (en) Data processing device and method for flash memory
US20120117347A1 (en) Initializing of a memory area
CN108304740B (en) Method for burning digital product key
CN105556462A (en) Writing to files and file meta-data
JP2008250789A (en) Information processing system and program
CN105224250A (en) High-performance domain name mapping disposal route and device
US7500145B2 (en) Anomaly-driven software switch to capture event responses and automate recovery
CN111367710B (en) eMMC problem reduction method and device
CN109325005A (en) A kind of data processing method and electronic equipment
KR20110039416A (en) Data storage method, apparatus and system for interrupted write recovery
CN112416811B (en) Garbage collection method, flash memory and device based on data association degree
JP5808264B2 (en) Code generation apparatus, code generation method, and program
CN112597021A (en) Bank counter transaction automatic testing method and device based on linkage printer
CN106021565A (en) Method for continuing writing MXF files in Op1a format and Op1b format
CN112199238A (en) Memory firmware updating method and device, storage medium and electronic equipment
US8176274B2 (en) Electronic data reproduction
JP2020009279A (en) Information processing program, information processing device and information processing method
US20210216667A1 (en) Systems and methods for protecting against unauthorized memory dump modification
WO2017050029A1 (en) Method, device, and equipment for data block processing
CN116431189B (en) Board card upgrading method, device, equipment and storage medium based on PCIE link
CN108763371B (en) Exfat file system power-off protection and file detection recovery method
JP2005332042A (en) Apparatus for restoring deleted data, and apparatus for restoring deleted data as well as for copying data

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
GR01 Patent grant
GR01 Patent grant