CN103136454B - Encryption device and encryption method - Google Patents

Encryption device and encryption method Download PDF

Info

Publication number
CN103136454B
CN103136454B CN201110380158.2A CN201110380158A CN103136454B CN 103136454 B CN103136454 B CN 103136454B CN 201110380158 A CN201110380158 A CN 201110380158A CN 103136454 B CN103136454 B CN 103136454B
Authority
CN
China
Prior art keywords
sequence number
usb
host computer
serial port
port communication
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
CN201110380158.2A
Other languages
Chinese (zh)
Other versions
CN103136454A (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.)
Beijing Zhongke Pansino Technology Co., Ltd.
Original Assignee
BEIJING FANHUA HENGXING 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 BEIJING FANHUA HENGXING TECHNOLOGY Co Ltd filed Critical BEIJING FANHUA HENGXING TECHNOLOGY Co Ltd
Priority to CN201110380158.2A priority Critical patent/CN103136454B/en
Publication of CN103136454A publication Critical patent/CN103136454A/en
Application granted granted Critical
Publication of CN103136454B publication Critical patent/CN103136454B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Storage Device Security (AREA)

Abstract

The application relates to a kind of encryption device and encryption method, and encryption device comprises the sequence number chip be arranged in encrypted product, USB serial port communication chip, controller and storer, stores initial sequence number in sequence number chip; USB sequence number is stored in storer; USB serial port communication chip is for the USB sequence number that reads in storer and the USB sequence number of reading is sent to host computer identifies; Controller is used for after host computer identification USB sequence number, receiving the signal of USB serial port communication chip to read the initial sequence number in sequence number chip, and by USB serial port communication chip, the initial sequence number of reading is sent to host computer and is encrypted to obtain ciphering sequence number, ciphering sequence number stores in memory.The application adds password cracking difficulty, and decreases system overhead.

Description

Encryption device and encryption method
Technical field
The application relates to a kind of encryption device and encryption method of electronic product.
Background technology
At present, electronic product bootlegging problem is day by day serious, and a lot of company drops into the new product of great amount of cost research and development, has just put on market just by massive duplication, has caused great loss to company, also upset market order.Therefore, some products all can through encryption in R&D process, such as, use programmable logic device (PLD) (as CPLD/FPGA) wiring and logic placement to be placed in product chips or to chip and carry out black rubber seal dress, also have software protection means, such as on existing software, increase redundancy, increase software complexity, add software cryptography function etc., there are some technical limitations in said method, the protected mode of simple employing hardware or software is easier to be cracked, and original system is affected to some extent, such as, hardware protection mode cost is that debugging and processing bring inconvenience, software protection adds system overhead, have impact on the terseness of program, simultaneously for software debugging brings difficulty.
Summary of the invention
Provide hereinafter about brief overview of the present invention, to provide about the basic comprehension in some of the present invention.Should be appreciated that this general introduction is not summarize about exhaustive of the present invention.It is not that intention determines key of the present invention or pith, and nor is it intended to limit the scope of the present invention.Its object is only provide some concept in simplified form, in this, as the preorder in greater detail discussed after a while.
A fundamental purpose of the present invention is that providing a kind of promotes cipher round results and reduce the encryption device and encryption method encrypted or decipher the impact of original system.
For achieving the above object, the invention provides a kind of encryption device, comprise the sequence number chip be arranged in encrypted product, USB serial port communication chip, controller and storer, in sequence number chip, store initial sequence number; USB sequence number is stored in storer; USB serial port communication chip is for the USB sequence number that reads in storer and the USB sequence number of reading is sent to host computer identifies; Controller is used for receiving the signal of USB serial port communication chip to read the initial sequence number in sequence number chip after host computer identification USB sequence number Y, and by USB serial port communication chip, the initial sequence number of reading is sent to host computer and is encrypted to obtain ciphering sequence number, ciphering sequence number stores in memory.
According to an aspect of the present invention, also comprise the driving interface be arranged in host computer, drive interface to be used for the ciphering sequence number read in storer to be again decrypted to obtain decrypted sequences number, and decrypted sequences number is compared to verify that whether encryption is successful with initial sequence number.
According to an aspect of the present invention, interface is driven again to read ciphering sequence number by USB serial port communication chip.
According to an aspect of the present invention, controller is the controller based on field-programmable gate array.
According to an aspect of the present invention, storer is EEPROM (Electrically Erasable Programmable Read Only Memo) chip.
Present invention also offers a kind of method utilizing the encryption device described in above-mentioned any one to be encrypted, comprise the following steps:
The signal being received host computer by USB serial port communication chip is identified for host computer with the USB sequence number read in storer;
If USB sequence number is by the identification of host computer, USB serial port communication chip sends a signal to controller, make controller read initial sequence number from sequence number chip, and by USB serial port communication chip, the initial sequence number of reading is sent to host computer and is encrypted to obtain ciphering sequence number; And
Ciphering sequence number is stored in memory.
According to an aspect of the present invention, ciphering sequence number is stored in memory by USB serial port communication chip by host computer.
According to an aspect of the present invention, also comprise after ciphering sequence number being stored step in memory:
Be decrypted to obtain decrypted sequences number by the driving interface ciphering sequence number again read in storer of host computer; And
Decrypted sequences number is compared to verify that whether encryption is successful with initial sequence number.
Encryption device of the present invention and method are independent in encrypted product arranges sequence number chip for storing globally unique initial sequence number and the hardware such as storer for storage encryption sequence number, hardware encipher mode and software cryptography mode are integrated, coordinate USB sequence number simultaneously, illegal cracker is not easy the place of grasping password storage, add and crack difficulty, adopt stand alone software to add simultaneously, deciphering, the not operation of the software of influential system own, debugging, also avoid adopting the modes such as black rubber seal dress to be that the inconvenience brought processed by hardware, decrease system overhead.
Accompanying drawing explanation
Below with reference to the accompanying drawings illustrate embodiments of the invention, above and other objects, features and advantages of the present invention can be understood more easily.Parts in accompanying drawing are just in order to illustrate principle of the present invention.In the accompanying drawings, same or similar technical characteristic or parts will adopt same or similar Reference numeral to represent.
Fig. 1 is the structural representation of a kind of embodiment of encryption device of the present invention.
Fig. 2 is the structural representation of the another kind of embodiment of encryption device of the present invention.
Fig. 3 is the process flow diagram of a kind of embodiment of encryption method of the present invention.
Fig. 4 is the process flow diagram of the another kind of embodiment of encryption method of the present invention.
Fig. 5 be to encryption after the process flow diagram that is decrypted of product.
Embodiment
With reference to the accompanying drawings embodiments of the invention are described.The element described in an accompanying drawing of the present invention or a kind of embodiment and feature can combine with the element shown in one or more other accompanying drawing or embodiment and feature.It should be noted that for purposes of clarity, accompanying drawing and eliminate expression and the description of unrelated to the invention, parts known to persons of ordinary skill in the art and process in illustrating.
With reference to figure 1, a kind of embodiment of encryption device of the present invention comprises the sequence number chip 10 be arranged in encrypted product, USB serial port communication chip 20, controller 30 and storer 40, store initial sequence number X1 in sequence number chip 10, initial sequence number X1 is the global unique identification number of encryption device place product.USB sequence number Y is stored in storer 40.USB serial port communication chip 20 is for the USB sequence number Y that reads in storer 40 and the USB sequence number Y of reading is sent to host computer identifies, the sequence number X1 of reading is sent to host computer by USB serial port communication chip 20 for the signal receiving USB serial port communication chip 20 after host computer identification USB sequence number Y is encrypted to obtain ciphering sequence number X2 with the sequence number X1 read in sequence number chip 10 by controller 30, and the ciphering sequence number X2 of acquisition is stored in storer 40.
With reference to figure 2, alternatively, encryption device of the present invention also comprises the driving interface 50 be arranged in host computer, drive interface 50 to obtain decrypted sequences number for the ciphering sequence X2 again read in storer 40 to be decrypted ciphering sequence number X2, and decrypted sequences number is compared to verify that whether encryption is successful with initial sequence number X1.
Alternatively, driving interface 50 reads the ciphering sequence number in storer 40 again by USB serial port communication chip 20.
Alternatively, controller 30 is the controller based on FPGA (Field-ProgrammableGateArray, field-programmable gate array).
Alternatively, storer 40 is EEPROM (ElectricallyErasableProgrammableread-onlyMemory, EEPROM (Electrically Erasable Programmable Read Only Memo)) chip.
With reference to figure 3, encryption method of the present invention utilizes above-mentioned encryption device to be encrypted product, comprises the following steps:
The signal that step S1:USB serial port communication chip 20 receives host computer identifies for host computer with the USB sequence number Y read in storer 40;
Step S2: if USB sequence number Y is by the identification of host computer, USB serial port communication chip 20 sends a signal to controller 30, make controller 30 read initial sequence number X1 from sequence number chip 10, and by USB serial port communication chip 20, initial sequence number X1 is sent to host computer and is encrypted to obtain ciphering sequence number X2; And
Step S3: ciphering sequence number X2 is stored in storer 40.In this step, ciphering sequence number X2 is sent to storer 40 by USB serial port communication chip 20 and stores by host computer.
In step sl, if USB sequence number Y is not by the identification of host computer, then terminate encryption.
With reference to figure 4, alternatively, further comprising the steps of after step S3:
Step S4: again read the ciphering sequence number in storer 40 by the driving interface of host computer and be decrypted to obtain decrypted sequences number to ciphering sequence number; And
Step S5: decrypted sequences number is compared to verify that whether encryption is successful with initial sequence number X1.
In step S5, if decrypted sequences number and initial sequence number X1 inconsistent, then checking encryption is unsuccessful, and the mode of reporting to the police now can be taked to notify operating personnel or re-execute step S1-S5 to be encrypted encrypted product.
With reference to figure 5, when being decrypted the product after encryption, can the following step be performed:
Step S11: the driving interface 50 of host computer reads the ciphering sequence number X2 in storer 40 by USB serial port communication chip 20;
Step S12: drive interface 50 to send a signal to controller 30 by USB serial port communication chip 20, make controller 30 read initial sequence number X1 from sequence number chip 10;
Step S13: drive the decrypted program in interface 50 to be decrypted ciphering sequence number X2 and obtain decrypted sequences number; And
Step S14: decrypted sequences number and initial sequence number X1 are compared, if decrypted sequences is number consistent with initial sequence number X1, normally runs, if inconsistent, and the connection of disconnection and decrypted product.
Encryption device of the present invention and method are independent in encrypted product arranges sequence number chip for storing globally unique initial sequence number and the hardware such as storer for storage encryption sequence number, hardware encipher mode and software cryptography mode are integrated, coordinate USB sequence number simultaneously, illegal cracker is not easy the place of grasping password storage, add and crack difficulty, adopt stand alone software to add simultaneously, deciphering, the not operation of the software of influential system own, debugging, also avoid adopting the modes such as black rubber seal dress to be that the inconvenience brought processed by hardware, decrease system overhead.
In apparatus and method of the present invention, obviously, each parts or step reconfigure after can decomposing, combine and/or decomposing.These decompose and/or reconfigure and should be considered as equivalents of the present invention.Above in the description of the specific embodiment of the invention, the feature described for a kind of embodiment and/or illustrate can use in one or more other embodiment in same or similar mode, combined with the feature in other embodiment, or substitute the feature in other embodiment.
Should emphasize, term " comprises/comprises " existence referring to feature, key element, step or assembly when using herein, but does not get rid of the existence or additional of one or more further feature, key element, step or assembly.
Although described the present invention and advantage thereof in detail, be to be understood that and can have carried out various change when not exceeding the spirit and scope of the present invention limited by appended claim, substituting and conversion.And the scope of the application is not limited only to the specific embodiment of process, equipment, means, method and step described by instructions.One of ordinary skilled in the art will readily appreciate that from disclosure of the present invention, can use perform the function substantially identical with corresponding embodiment described herein or obtain and its substantially identical result, existing and that will be developed in the future process, equipment, means, method or step according to the present invention.Therefore, appended claim is intended to comprise such process, equipment, means, method or step in their scope.

Claims (7)

1. an encryption device, comprises the sequence number chip be arranged in encrypted product, USB serial port communication chip, controller and storer, stores initial sequence number in described sequence number chip; USB sequence number is stored in described storer; Described USB serial port communication chip is for the USB sequence number that reads in described storer and the USB sequence number of reading is sent to host computer identifies; Described controller for receiving the signal of described USB serial port communication chip to read the initial sequence number in described sequence number chip after USB sequence number described in host computer identification, and by described USB serial port communication chip, the initial sequence number of reading is sent to described host computer and is encrypted to obtain ciphering sequence number, described ciphering sequence number stores in which memory, and described controller is the controller based on field-programmable gate array.
2. encryption device as claimed in claim 1, it is characterized in that, also comprise the driving interface be arranged in described host computer, described driving interface is used for again the ciphering sequence number read in described storer and is decrypted to obtain decrypted sequences number, and described decrypted sequences number is compared to verify that whether encryption is successful with described initial sequence number.
3. encryption device as claimed in claim 2, it is characterized in that, described driving interface reads described ciphering sequence number again by described USB serial port communication chip.
4. encryption device as claimed in claim 1, it is characterized in that, described storer is EEPROM (Electrically Erasable Programmable Read Only Memo) chip.
5. the encryption method utilizing the encryption device described in any one of claim 1-4 to be encrypted, comprises the following steps:
The signal being received described host computer by described USB serial port communication chip is identified for described host computer with the USB sequence number read in described storer;
If described USB sequence number is by the identification of described host computer, described USB serial port communication chip sends a signal to described controller, described controller is made to read described initial sequence number from described sequence number chip, and by described USB serial port communication chip, the initial sequence number of reading is sent to described host computer and is encrypted to obtain ciphering sequence number, described controller is the controller based on field-programmable gate array; And
Described ciphering sequence number is stored in which memory.
6. encryption method as claimed in claim 5, is characterized in that, described ciphering sequence number is stored in which memory by described USB serial port communication chip by described host computer.
7. encryption method as claimed in claim 5, is characterized in that, also comprises after the described step stored by ciphering sequence number in memory:
Be decrypted to obtain decrypted sequences number by the driving interface ciphering sequence number again read in described storer of described host computer; And
Described decrypted sequences number is compared to verify that whether encryption is successful with described initial sequence number.
CN201110380158.2A 2011-11-25 2011-11-25 Encryption device and encryption method Active CN103136454B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201110380158.2A CN103136454B (en) 2011-11-25 2011-11-25 Encryption device and encryption method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201110380158.2A CN103136454B (en) 2011-11-25 2011-11-25 Encryption device and encryption method

Publications (2)

Publication Number Publication Date
CN103136454A CN103136454A (en) 2013-06-05
CN103136454B true CN103136454B (en) 2016-01-20

Family

ID=48496272

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201110380158.2A Active CN103136454B (en) 2011-11-25 2011-11-25 Encryption device and encryption method

Country Status (1)

Country Link
CN (1) CN103136454B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106341223A (en) * 2016-08-15 2017-01-18 索尔思光电(成都)有限公司 Hardware encryption method and hardware anti-counterfeiting identification method and device
CN107784213B (en) * 2016-08-26 2020-03-27 深圳指芯智能科技有限公司 Storage device based on fingerprint identification technology and hardware correlation encryption mode
CN108171523B (en) * 2017-12-28 2021-03-23 杭州和利时自动化有限公司 Hardware tracking method
CN109858233A (en) * 2018-12-21 2019-06-07 惠州Tcl移动通信有限公司 The mutual recognition methods of chip, device, storage medium and mobile terminal

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101577906A (en) * 2009-06-12 2009-11-11 大唐微电子技术有限公司 Smart card and terminal capable of realizing machine card security authentication
CN100561494C (en) * 2007-01-29 2009-11-18 杭州华三通信技术有限公司 Data storage device and realize false proof system and method in the pluggable electronic assembly
CN101669125A (en) * 2007-04-25 2010-03-10 德利多富国际有限责任公司 Method and system for authenticating a user

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6871192B2 (en) * 2001-12-20 2005-03-22 Pace Anti-Piracy System and method for preventing unauthorized use of protected software utilizing a portable security device

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100561494C (en) * 2007-01-29 2009-11-18 杭州华三通信技术有限公司 Data storage device and realize false proof system and method in the pluggable electronic assembly
CN101669125A (en) * 2007-04-25 2010-03-10 德利多富国际有限责任公司 Method and system for authenticating a user
CN101577906A (en) * 2009-06-12 2009-11-11 大唐微电子技术有限公司 Smart card and terminal capable of realizing machine card security authentication

Also Published As

Publication number Publication date
CN103136454A (en) 2013-06-05

Similar Documents

Publication Publication Date Title
CN108055236A (en) A kind of data processing method, mobile unit and electronic equipment
CN103136454B (en) Encryption device and encryption method
CN101650693B (en) Security control method for mobile hard disk and security mobile hard disk
CN102073808B (en) Method for encrypting and storing information through SATA interface and encryption card
CN105117663A (en) Encrypted object display method and device for application
CN103840942A (en) Data protection system and method
CN103218318A (en) Encrypted mobile hard disk drive with high safety and use method thereof
CN106611310A (en) Data processing method and system, and wearable electronic equipment
CN104751105A (en) Fingerprint data verification method, fingerprint data verification device, related equipment and system
CN102064942A (en) Credible integrated security processing platform
CN104915583A (en) Interface decryption processing method and mobile terminal
CN104933361A (en) Device and method for protecting login password
CN107092836A (en) A kind of data guard method and device based on system encryption
CN102938045A (en) Encryption method and authorization method after encryption for electronic product
CN102279813B (en) Protecting method of system inside encryption card
CN201917912U (en) Monitoring and management system of USB (Universal Serial Bus) storage device
CN105512520A (en) Anti-cloning vehicle-mounted system and work method thereof
CN105653054A (en) Code processing method and apparatus
CN103336918B (en) Electronic hard disk system authorization method and device
CN105468988A (en) Data protection method and device during connection of terminal and PC (Personal Computer)
CN106296192A (en) The safe transmission method of password, system and close shield
CN105095780A (en) Access method and apparatus for on-chip test port
CN106210240B (en) A kind of encryption and decryption method and system based on intelligent terminal gyroscope
CN108171085A (en) A kind of guard method, terminal device and computer-readable medium for solving confidential information
CN103997483A (en) Information safety control method and apparatus, and electronic device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
C41 Transfer of patent application or patent right or utility model
TR01 Transfer of patent right

Effective date of registration: 20161025

Address after: 100083 Beijing City, Haidian District Zhongguancun Road No. 18 smartfortune International Building block A 8 layer 902, 903

Patentee after: Beijing Zhongke Pansino Technology Co., Ltd.

Address before: 100192, A-4 building, No. 66 Xiao Dong Road, Beijing, Haidian District

Patentee before: Beijing Fanhua Hengxing Technology Co., Ltd.