CN102610039A - Encrypting method for leasehold bean milk machine - Google Patents
Encrypting method for leasehold bean milk machine Download PDFInfo
- Publication number
- CN102610039A CN102610039A CN2012100615238A CN201210061523A CN102610039A CN 102610039 A CN102610039 A CN 102610039A CN 2012100615238 A CN2012100615238 A CN 2012100615238A CN 201210061523 A CN201210061523 A CN 201210061523A CN 102610039 A CN102610039 A CN 102610039A
- Authority
- CN
- China
- Prior art keywords
- bean milk
- making machine
- soy bean
- milk making
- cpu
- 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.)
- Granted
Links
Images
Landscapes
- Storage Device Security (AREA)
- Management, Administration, Business Operations System, And Electronic Commerce (AREA)
Abstract
The invention discloses an encrypting method for a leasehold bean milk machine, which comprises the following steps: a, providing an upper computer, an U disk, and a leasehold target bean milk machine, wherein the upper computer comprises an U disk writing-in function, a password protection function and a password authorization function; a controller of the target bean milk machine comprises a CPU, a USB interface, a human-machine operation interface, a memory and the like; the U disk is made as transmission medium between the upper computer and the CPU of a target bean milk controller; b, writing user information in the U disk in the form of an encrypting file by the upper computer firstly; inserting the U disk in the USB interface of the bean milk machine by a lessee, wherein the CPU of the target bean milk machine controller decrypts the encrypting file in the U disk so as to obtain new user information including leasing conditions after the CPU reads the encrypting file in the U disk; the CPU controls the target beam milk machine according to the new user information; and the target bean milk machine is terminated if the target bean milk machine cannot satisfy the leasing conditions. The encrypting method for the leasehold bean milk machine provided by the invention is convenient and practical, and the rights of manufacturers/distributors can be effectively guaranteed.
Description
Technical field
The present invention relates to a kind of encryption method that is used to lease soy bean milk making machine.
Background technology
Because the price of commercial soy bean milk making machine is relatively expensive, and applicable object mainly is small-sized market, restaurant at present.These markets, restaurant consider operating cost; Often take the commercial soy bean milk making machine of renting of the form of leasing; For ensureing commercial soy bean milk making machine manufacturer/dealer's legitimate rights and interests, convenient to renting the management of commercial soy bean milk making machine, need the service condition of agreements such as term of life, number of times to limit to soy bean milk making machine.Corresponding encryption and authorization method is not also arranged in the prior art; So that can utilize this encryption and authorization normal direction soy bean milk making machine controller to write the lease condition such as time limit or access times of lease; Realization is to the encryption authorization of commercial soy bean milk making machine; Make the CPU of commercial soy bean milk making machine controller from encrypt file, read the information that comprises lease condition; CPU judges that according to the lease condition of being obtained only commercial soy bean milk making machine just can be moved when satisfying lease condition, so just can more effectively ensure manufacturer/dealer's rights and interests.
This shows, be necessary to provide a kind of encryption method that is specially adapted to lease soy bean milk making machine.
Summary of the invention
Task of the present invention is to provide a kind of encryption method that is used to lease soy bean milk making machine.
Its technical solution is:
A kind of encryption method that is used to lease soy bean milk making machine comprises the steps:
The target soy bean milk making machine that a provides host computer, USB flash disk and is used to lease; Host computer can accomplish user profile editor, search, add, deletion and update user information, have the USB flash disk of writing, cryptoguard and password authorization function simultaneously; The controller of target soy bean milk making machine comprises the CPU and second USB interface; USB flash disk is as the transmission medium between the CPU of host computer and target soy bean milk making machine controller;
B at first inserts USB flash disk first USB interface of host computer, by host computer user profile is write USB flash disk with the form of encrypt file; Then USB flash disk is consigned to soy bean milk making machine and charter the family; Charter the family by soy bean milk making machine USB flash disk is inserted second USB interface; CPU reads the encrypt file in the USB flash disk by means of second USB interface; After CPU obtains encrypt file, decipher the new user profile that obtains comprising lease condition, lease condition comprises rental period and/or the access times that set to the target soy bean milk making machine; CPU is according to new user information control target soy bean milk making machine, when the target soy bean milk making machine in case when the situation of above-mentioned lease condition occurring satisfying with regard to termination work.
Among the above-mentioned steps b, CPU is the encrypt file in the instant USB flash disk of deletion automatically after obtaining encrypt file.
Among the above-mentioned steps b, CPU upgrades original old user profile with the new user profile of obtaining.
Among the above-mentioned steps b; Host computer adopts the cipher mode that XOR is encrypted and random number combines; Each numeral among the 0-9 is all corresponding with a character; Utilize the erratic behavior of random number, effective information is nested in the random number with a definite sequence, and this information sequence is translated into corresponding character according to top mapping function.
Among the above-mentioned steps b; When USB flash disk is inserted second USB interface, click the respective keys on the controller man-machine interface, CPU promptly begins to read the encrypt file in the USB flash disk; After CPU obtains encrypt file; User profile is wherein deposited in the storer, and the corresponding pilot lamp on the back controller that finishes to be stored can light, and pulls up the USB flash disk operation this moment and promptly accuses completion; Whether the present operation of real-time judge satisfied lease condition when CPU moved in the target soy bean milk making machine, if satisfy lease condition, the target soy bean milk making machine can operate as normal, otherwise then stops work.
Among the above-mentioned steps a, what second USB interface was taked is the CH376 chip.
The present invention has following useful technique effect:
The present invention is transmission medium with the USB flash disk, writes lease conditions such as rental period and/or access times to the controller of target soy bean milk making machine, has realized the encryption authorization to the commercial soy bean milk making machine that is used to lease; The lease condition that the CPU basis of target soy bean milk making machine controller is obtained is the duty of controlled target soy bean milk making machine in real time; If the target soy bean milk making machine also is in the stage that can satisfy lease condition; Can operate as normal, in case the situation of lease condition occurs satisfying, just can not work.The present invention is convenient and practical, can ensure manufacturer/dealer's rights and interests effectively.
Description of drawings
Below in conjunction with accompanying drawing and embodiment the present invention is described further:
Figure is the structural principle schematic block diagram of related hardware components among the present invention.
Embodiment
In conjunction with accompanying drawing, a kind of encryption method that is used to lease soy bean milk making machine comprises the steps:
The target soy bean milk making machine that a provides host computer, USB flash disk and is used to lease; Host computer can accomplish user profile editor, search, add, deletion and update user information, have the USB flash disk of writing, cryptoguard and password authorization function simultaneously; The controller of target soy bean milk making machine comprises the CPU and second USB interface, and what second USB interface was selected for use is the CH376 chip; USB flash disk is as the transmission medium between host computer and the microprocessor;
B at first inserts USB flash disk first USB interface of host computer, by host computer user profile is write USB flash disk with the form of encrypt file; Then USB flash disk is consigned to soy bean milk making machine and charter the family; Charter the family by soy bean milk making machine USB flash disk is inserted second USB interface; CPU reads the encrypt file in the USB flash disk by means of second USB interface; After CPU obtains encrypt file, decipher the new user profile that obtains comprising lease condition, lease condition comprises rental period and/or the access times that set to this target soy bean milk making machine; CPU is according to new user information control target soy bean milk making machine, when the target soy bean milk making machine in case when the situation of above-mentioned lease condition occurring satisfying with regard to termination work.
Among the above-mentioned steps b, CPU is the encrypt file in the instant USB flash disk of deletion automatically after obtaining encrypt file.
Among the above-mentioned steps b, CPU upgrades original old user profile with the new user profile that obtains.
Among the above-mentioned steps b; Host computer adopts the cipher mode that XOR is encrypted and random number combines; Each numeral among the 0-9 is all corresponding with a character; Utilize the erratic behavior of random number, effective information is nested in the random number with a definite sequence, and this information sequence is translated into corresponding character according to top mapping function.
Among the above-mentioned steps b; After USB flash disk inserted second USB interface, click the respective keys on the man-machine interface of target soy bean milk making machine, CPU promptly begins to read the encrypt file in the USB flash disk; After CPU obtains encrypt file; User profile is wherein deposited in the storer, and the corresponding pilot lamp in back that finishes to be stored can light, and pulls up the USB flash disk operation this moment and promptly accuses completion; Whether the present operation of real-time judge satisfied lease condition when CPU moved in the target soy bean milk making machine, if satisfy lease condition, the target soy bean milk making machine can operate as normal, otherwise then stops work.
Above-mentioned related content is further specified as follows:
The application program of host computer can be relied on the VC6.0 development environment, by means of a dialog box program of Windows MFC exploitation, is used for accomplishing the maintenance work of target soy bean milk making machine lease user profile.This software comprise user profile editor, search, add, function such as deletion and update user information, contain simultaneously and write USB flash disk, cryptoguard and password authorization function.
The Software Operation password can be divided into administrator's password (level password) and dealer's password (secondary password), through correct input manager person's password authorised dealer's password again, allows different dealers that different separately secondary passwords is arranged.Administrator's password or dealer's password authentification through after all can safeguard user profile.
Software binding a data library file, this document is used for storing user related information.Through this upper computer software, the user can directly edit, add, delete, search the information in the database and operation such as renewal, has made things convenient for the management to user profile.Simultaneously, can user profile be write USB flash disk with the form of encrypt file by means of this software, and give the target soy bean milk making machine with the file transfers of encrypting, with the term of a lease of fresh target soy bean milk making machine storage inside more or allow access times through USB flash disk.
To encryption technology, consider the complexity of CPU decryption work and the security of encryption, system adopts the encryption method that XOR is encrypted and random number combines, and has effectively guaranteed safety of data, can not let decryption work become the burden of CPU again simultaneously.Encipherment scheme is following: digital 0-9 is set up a mapping function; Make each numeral among the 0-9 all corresponding with a character; Utilize the erratic behavior of random number; Effective information is nested in the random number with a definite sequence, and this information sequence is translated into corresponding character according to top mapping function.Through this AES, when valid data are protected, simplify decryption work largely, CPU usage reduces.If the CPU arithmetic speed allows,, can more effective data be protected through setting up a plurality of mapping functions.Facts have proved that this algorithm for encryption is simple, it is difficult to crack, and has obtained cipher round results preferably.
The operation of target soy bean milk making machine controller is following:
After the USB flash disk insertion target soy bean milk making machine that writes encrypt file; Only need click the button on the man-machine interface of soy bean milk making machine controller, just can make CPU crack enciphered message, and wherein useful information such as lease condition (lease zero-time and closing time or permission access times information) are deposited in the storer; Whether the present operation of real-time judge satisfies lease condition; As whether in the lease time, if then soy bean milk making machine can operate as normal; Otherwise soy bean milk making machine termination work waits for that the user renews a contract or the return soy bean milk making machine.Soy bean milk making machine has pilot lamp and lights after the information of having stored, can pull up USB flash disk this moment, accomplishes the operation of soy bean milk making machine controller.
CPU cracks the process of enciphered message and accomplishes through chip CH376.This chip can carry out read-write operation to the file in the USB flash disk under the control of CPU.In software, set the discernible file name of CH376, like " ZHUANLI.DAT " (being the filename that above-mentioned host computer writes the encrypt file of USB flash disk).Cpu command CH376 searches for this document in the USB flash disk always, in case insert USB flash disk, after CH376 searches this encrypt file, can read the content of this document automatically.This content promptly is made up of above-mentioned random number, and valid data embed wherein.The first half valid data are a string identification codes, and the latter half valid data are information such as lease time or access times.At first, CH376 obtains all valid data according to rule, abandons other random numbers.Then, CPU obtains the identification code (first half valid data) that CH376 sends back to, and corresponding one by one with the good identification code of software set.If all correct, confirm that then this encrypt file is effective, write by the host computer of this product really.Incorrect as if having, then abandon this file, and repeat said process.After identification code was all correct, CPU can be stored to non-volatile memory chip 24C02 with lease time or the access times (latter half valid data) that CH376 sends back to, and whether the current operation of real-time judge satisfies lease condition in view of the above.
The relevant technologies content of not addressing in the aforesaid way is taked or is used for reference prior art and can realize.
Need to prove that those skilled in the art can also make such or such easy variation pattern under the instruction of this instructions, such as equivalent way, or obvious mode of texturing.Above-mentioned variation pattern all should be within protection scope of the present invention.
Claims (6)
1. an encryption method that is used to lease soy bean milk making machine is characterized in that comprising the steps:
The target soy bean milk making machine that a provides host computer, USB flash disk and is used to lease; Host computer can accomplish user profile editor, search, add, deletion and update user information, have the USB flash disk of writing, cryptoguard and password authorization function simultaneously; The controller of target soy bean milk making machine comprises the CPU and second USB interface; USB flash disk is as the transmission medium between the CPU of host computer and target soy bean milk making machine controller;
B at first inserts USB flash disk first USB interface of host computer, by host computer user profile is write USB flash disk with the form of encrypt file; Then USB flash disk is consigned to soy bean milk making machine and charter the family; Charter the family by soy bean milk making machine USB flash disk is inserted second USB interface; CPU reads the encrypt file in the USB flash disk by means of second USB interface; After CPU obtains encrypt file, decipher the new user profile that obtains comprising lease condition, lease condition comprises rental period and/or the access times that set to the target soy bean milk making machine; CPU is according to new user information control target soy bean milk making machine, when the target soy bean milk making machine in case when the situation of above-mentioned lease condition occurring satisfying with regard to termination work.
2. a kind of encryption method that is used to lease soy bean milk making machine according to claim 1 is characterized in that: among the said step b, CPU is the encrypt file in the instant USB flash disk of deletion automatically after obtaining encrypt file.
3. a kind of encryption method that is used to lease soy bean milk making machine according to claim 2 is characterized in that: among the said step b, CPU upgrades original old user profile with the new user profile of obtaining.
4. a kind of encryption method that is used to lease soy bean milk making machine according to claim 1; It is characterized in that: among the said step b; Host computer adopts the cipher mode that XOR is encrypted and random number combines, and each numeral among the 0-9 is all corresponding with a character, utilizes the erratic behavior of random number; Effective information is nested in the random number with a definite sequence, and this information sequence is translated into corresponding character according to top mapping function.
5. a kind of encryption method that is used to lease soy bean milk making machine according to claim 4 is characterized in that: among the said step b, when USB flash disk is inserted second USB interface; Click the respective keys on the controller man-machine interface; CPU promptly begins to read the encrypt file in the USB flash disk, after CPU obtains encrypt file, wherein user profile is deposited in the storer; Corresponding pilot lamp on the back controller that finishes to be stored can light, and pulls up the USB flash disk operation this moment and promptly accuses completion; Whether the present operation of real-time judge satisfied lease condition when CPU moved in the target soy bean milk making machine, if satisfy lease condition, the target soy bean milk making machine can operate as normal, otherwise then stops work.
6. a kind of encryption method that is used to lease soy bean milk making machine according to claim 1 is characterized in that: among the said step a, what second USB interface was taked is the CH376 chip.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201210061523.8A CN102610039B (en) | 2012-03-12 | 2012-03-12 | Encrypting method for leasehold bean milk machine |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201210061523.8A CN102610039B (en) | 2012-03-12 | 2012-03-12 | Encrypting method for leasehold bean milk machine |
Publications (2)
Publication Number | Publication Date |
---|---|
CN102610039A true CN102610039A (en) | 2012-07-25 |
CN102610039B CN102610039B (en) | 2014-04-02 |
Family
ID=46527377
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201210061523.8A Active CN102610039B (en) | 2012-03-12 | 2012-03-12 | Encrypting method for leasehold bean milk machine |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN102610039B (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105871558A (en) * | 2016-05-30 | 2016-08-17 | 科德数控股份有限公司 | Numerical control system authority management method based on USB flash disk physical serial number |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101236629A (en) * | 2007-02-01 | 2008-08-06 | 阿里巴巴公司 | On-line payment system and payment procedure |
CN102184357A (en) * | 2011-04-28 | 2011-09-14 | 郑州信大捷安信息技术有限公司 | Portable trustworthy private information processing system |
-
2012
- 2012-03-12 CN CN201210061523.8A patent/CN102610039B/en active Active
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101236629A (en) * | 2007-02-01 | 2008-08-06 | 阿里巴巴公司 | On-line payment system and payment procedure |
CN102184357A (en) * | 2011-04-28 | 2011-09-14 | 郑州信大捷安信息技术有限公司 | Portable trustworthy private information processing system |
Non-Patent Citations (3)
Title |
---|
《电工技术》 20080831 张蕾,杨洁,许力 基于ARM的CH375读写U盘的接口设计与实现 , * |
刘滨,赵艳华,周鹏: "U盘在数据采集系统中的应用", 《电测与仪表》 * |
张蕾,杨洁,许力: "基于ARM的CH375读写U盘的接口设计与实现", 《电工技术》 * |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105871558A (en) * | 2016-05-30 | 2016-08-17 | 科德数控股份有限公司 | Numerical control system authority management method based on USB flash disk physical serial number |
CN105871558B (en) * | 2016-05-30 | 2019-06-07 | 科德数控股份有限公司 | A kind of digital control system right management method based on USB flash disk physical serial numbers |
Also Published As
Publication number | Publication date |
---|---|
CN102610039B (en) | 2014-04-02 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US9529735B2 (en) | Secure data encryption in shared storage using namespaces | |
CN101507224B (en) | Secure data cartridge | |
CN100421102C (en) | Digital rights management structure, portable storage device, and contents management method using the portable storage device | |
US20080022415A1 (en) | Authority limit management method | |
US7992001B2 (en) | Preventing execution of software without a dynamically generated key | |
CN105339919A (en) | Device and memory system | |
JP6096186B2 (en) | Method and apparatus for using nonvolatile memory device | |
CN105871558B (en) | A kind of digital control system right management method based on USB flash disk physical serial numbers | |
CN101281468A (en) | Method and apparatus for generating firmware update file and updating firmware by using the firmware update file | |
CN103581196A (en) | Distributed file transparent encryption method and transparent decryption method | |
CN101246530A (en) | System and method of storage device data encryption and data access via a hardware key | |
CN105612715A (en) | Security processing unit with configurable access control | |
CN102955746A (en) | Read-only mode mobile storage device and data access method thereof | |
CN101981580A (en) | From polymorphic executable to polymorphic operating system | |
CN103914662A (en) | Access control method and device of file encrypting system on the basis of partitions | |
CN1322431C (en) | Encryption retention and data retrieve based on symmetric cipher key | |
CN104506504A (en) | Security mechanism and security device for confidential information of card-free terminal | |
CN109064596A (en) | Cipher management method, device and electronic equipment | |
CN104778954A (en) | Optical disc partition encryption method and system | |
US8385554B2 (en) | Preventing execution of pirated software | |
CN101132275B (en) | Safety system for implementing use right of digital content | |
CN202584294U (en) | Encryption system for renting soybean milk machines | |
WO2015154469A1 (en) | Database operation method and device | |
CN105279453A (en) | Separate storage management-supporting file partition hiding system and method thereof | |
CN110300289B (en) | Video safety management system and method |
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 |