CN102610039B - Encrypting method for leasehold bean milk machine - Google Patents

Encrypting method for leasehold bean milk machine Download PDF

Info

Publication number
CN102610039B
CN102610039B CN201210061523.8A CN201210061523A CN102610039B CN 102610039 B CN102610039 B CN 102610039B CN 201210061523 A CN201210061523 A CN 201210061523A CN 102610039 B CN102610039 B CN 102610039B
Authority
CN
China
Prior art keywords
bean milk
cpu
making machine
soy bean
milk making
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
CN201210061523.8A
Other languages
Chinese (zh)
Other versions
CN102610039A (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.)
Shandong University of Science and Technology
Original Assignee
Shandong University of Science and Technology
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 Shandong University of Science and Technology filed Critical Shandong University of Science and Technology
Priority to CN201210061523.8A priority Critical patent/CN102610039B/en
Publication of CN102610039A publication Critical patent/CN102610039A/en
Application granted granted Critical
Publication of CN102610039B publication Critical patent/CN102610039B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)
  • Storage Device Security (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

A kind of for leasing the encryption method of soy bean milk making machine
Technical field
The present invention relates to a kind of for leasing the encryption method of soy bean milk making machine.
Background technology
Because the price of commercial soymilk grinder is relatively expensive, and applicable object is mainly small-sized market, restaurant at present.These markets, restaurant consider operating cost, often take the commercial soymilk grinder of renting of the form of leasing, for ensureing commercial soymilk grinder manufacturer/dealer's legitimate rights and interests, convenient to renting the management of commercial soymilk grinder, need be limited the service condition of the agreements such as the term of life of soy bean milk making machine, number of times.In prior art, also there is not corresponding encryption and authorization method, to can utilize this encryption and authorization normal direction soymilkgrinder controller to write the lease conditions such as time limit of lease or access times, the encryption authorization of realization to commercial soymilk grinder, make the CPU of commercial soybean milk machine controller from encrypt file, read the information that comprises lease condition, CPU judges according to the lease condition of obtaining, only when meeting lease condition, commercial soymilk grinder just can move, and so just can more effectively ensure manufacturer/dealer's rights and interests.
As can be seen here, be necessary to provide a kind of encryption method that is specially adapted to lease soy bean milk making machine.
Summary of the invention
It is a kind of for leasing the encryption method of soy bean milk making machine that task of the present invention is to provide.
Its technical solution is:
For leasing an encryption method for soy bean milk making machine, comprise the steps:
A provides host computer, USB flash disk and the target soy bean milk making machine for leasing; Host computer can completing user information editor, search, add, delete and upgrade user profile, there is the USB flash disk of writing, cryptoguard and password authorization function simultaneously; The controller of target soy bean milk making machine comprises CPU and secondary USB interface; USB flash disk is as the transmission medium between host computer and the CPU of target soymilkgrinder controller;
First b inserts USB flash disk the first USB interface of host computer, by host computer, user profile is write to USB flash disk with the form of encrypt file; Then USB flash disk is consigned to soy bean milk making machine and charter family, by soy bean milk making machine, charter family USB flash disk is inserted to secondary USB interface, CPU reads the encrypt file in USB flash disk by means of secondary USB interface, CPU obtains after encrypt file, be decrypted the new user profile that obtains comprising lease condition, lease condition comprises rental period and/or the access times that set for target soy bean milk making machine, CPU is according to new user information control target soy bean milk making machine, when target soy bean milk making machine is once occur that the situation that can not meet above-mentioned lease condition is with regard to termination work.
In above-mentioned steps b, CPU is the encrypt file in the instant USB flash disk of deletion automatically after obtaining encrypt file.
In above-mentioned steps b, CPU upgrades original old user profile by the new user profile of obtaining.
In above-mentioned steps b, host computer adopts the cipher mode that XOR is encrypted and random number combines, each numeral in 0-9 is corresponding with a character, utilize the erratic behavior of random number, effective information is nested in random number with a definite sequence, and this information sequence is translated into corresponding character according to mapping function above.
In above-mentioned steps b, when USB flash disk is inserted to secondary USB interface, click the respective keys in controller man-machine interface, CPU starts to read the encrypt file in USB flash disk, CPU obtains after encrypt file, user profile is wherein deposited in storer, to be stored after corresponding pilot lamp on controller can light, now pull up USB flash disk operation and accused; When CPU moves in target soy bean milk making machine, whether the current operation of real-time judge meets lease condition, if meet lease condition, target soy bean milk making machine can normally be worked, otherwise stops work.
In above-mentioned steps a, what secondary USB interface was taked is CH376 chip.
The present invention has following useful technique effect:
The present invention be take USB flash disk as transmission medium, to the controller of target soy bean milk making machine, writes the lease conditions such as rental period and/or access times, has realized the encryption authorization to the commercial soymilk grinder for leasing; The CPU of target soymilkgrinder controller can control the duty of target soy bean milk making machine in real time according to the lease condition of obtaining, if target soy bean milk making machine is also in meeting the stage of lease condition, can normally work, once there is meeting the situation of lease condition, just can not work.The present invention is convenient and practical, can effectively ensure manufacturer/dealer's rights and interests.
Accompanying drawing explanation
Below in conjunction with accompanying drawing and embodiment, the invention will be further described:
Figure is the structural principle schematic block diagram of related hardware components in the present invention.
Embodiment
By reference to the accompanying drawings, a kind of for leasing the encryption method of soy bean milk making machine, comprise the steps:
A provides host computer, USB flash disk and the target soy bean milk making machine for leasing; Host computer can completing user information editor, search, add, delete and upgrade user profile, there is the USB flash disk of writing, cryptoguard and password authorization function simultaneously; The controller of target soy bean milk making machine comprises CPU and secondary USB interface, and what secondary USB interface was selected is CH376 chip; USB flash disk is as the transmission medium between host computer and microprocessor;
First b inserts USB flash disk the first USB interface of host computer, by host computer, user profile is write to USB flash disk with the form of encrypt file; Then USB flash disk is consigned to soy bean milk making machine and charter family, by soy bean milk making machine, charter family USB flash disk is inserted to secondary USB interface, CPU reads the encrypt file in USB flash disk by means of secondary USB interface, CPU obtains after encrypt file, be decrypted the new user profile that obtains comprising lease condition, lease condition comprises rental period and/or the access times that set for this target soy bean milk making machine, CPU is according to new user information control target soy bean milk making machine, when target soy bean milk making machine is once occur that the situation that can not meet above-mentioned lease condition is with regard to termination work.
In above-mentioned steps b, CPU is the encrypt file in the instant USB flash disk of deletion automatically after obtaining encrypt file.
In above-mentioned steps b, CPU upgrades original old user profile by the new user profile obtaining.
In above-mentioned steps b, host computer adopts the cipher mode that XOR is encrypted and random number combines, each numeral in 0-9 is corresponding with a character, utilize the erratic behavior of random number, effective information is nested in random number with a definite sequence, and this information sequence is translated into corresponding character according to mapping function above.
In above-mentioned steps b, USB flash disk is inserted after secondary USB interface, click the respective keys in the man-machine interface of target soy bean milk making machine, CPU starts to read the encrypt file in USB flash disk, CPU obtains after encrypt file, user profile is wherein deposited in storer, to be stored after corresponding pilot lamp can light, now pull up USB flash disk operation and accused; When CPU moves in target soy bean milk making machine, whether the current operation of real-time judge meets lease condition, if meet lease condition, target soy bean milk making machine can normally be worked, otherwise stops work.
To above-mentioned related content, further illustrate as follows:
The application program of host computer can be relied on VC6.0 development environment, by means of a dialog box program of Windows MFC exploitation, has been used for the maintenance work of target soy bean milk making machine lease user profile.This software package containing the editor of user profile, search, add, delete and upgrade the functions such as user profile, contain simultaneously and write USB flash disk, cryptoguard and password authorization function.
The operator password of software can be divided into administrator's password (level password) and dealer's password (secondary password), by correct input administrator's password again authorised dealer's password, allows different dealers to have separately different secondary passwords.Administrator's password or dealer's password authentification all can be safeguarded user profile by rear.
Software binding a database file, this document is used for storing user related information.By this upper computer software, user can directly edit, add, delete, search the information in database and the operation such as renewal, has facilitated the management to user profile.Meanwhile, by means of this software, user profile can be write to USB flash disk with the form of encrypt file, and by USB flash disk by the file transfers of encrypting to target soy bean milk making machine, with the term of a lease of fresh target soy bean milk making machine storage inside more or allow access times.
For 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 the security of data, can not allow again decryption work become the burden of CPU simultaneously.Encipherment scheme is as follows: digital 0-9 is set up to a mapping function, make each numeral in 0-9 corresponding with a character, utilize the erratic behavior of random number, effective information is nested in random number with a definite sequence, and this information sequence is translated into corresponding character according to mapping function above.By this cryptographic algorithm, when valid data are protected, simplify largely decryption work, CPU usage reduces.If CPU arithmetic speed allows, by setting up a plurality of mapping functions, can more effective data be protected.Facts have proved, this algorithm for encryption is simple, and it is more difficult to crack, and has obtained good cipher round results.
The operation of target soymilkgrinder controller is as follows:
The USB flash disk that writes encrypt file is inserted after target soy bean milk making machine, only need click the button in the man-machine interface of soymilkgrinder controller, just can make CPU crack enciphered message, and useful information is wherein deposited in storer as lease condition (lease initial time and closing time or allow access times information), whether the current operation of real-time judge meets lease condition, whether as, within the lease time, if so, soy bean milk making machine can normally be worked; Otherwise soy bean milk making machine termination work, waits for that user renews a contract or returns soy bean milk making machine.Soy bean milk making machine has pilot lamp and lights after the information of having stored, and now can pull up USB flash disk, completes the operation of soymilkgrinder controller.
The process that CPU cracks enciphered message completes by chip CH376.This chip can carry out read-write operation to the file in USB flash disk under the control of CPU.In software, set the discernible file name of CH376, as " 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 USB flash disk always, once insert USB flash disk, CH376 searches after this encrypt file, can automatically read the content of this document.This content is comprised of above-mentioned random number, and valid data embed wherein.First half valid data are a string identification codes, and latter half valid data are the information such as lease time or access times.First, CH376, according to all valid data of Rule, abandons other random numbers.Then, CPU obtains the identification code (first half valid data) that CH376 sends back to, and the identification code good with software set is corresponding one by one.If all correct, confirm that this encrypt file is effective, really by the host computer of this product, write.If have incorrectly, abandon this file, and repeat said process.After identification code is all correct, the lease time that CPU can send CH376 back to or access times (latter half valid data) are stored to non-volatile memory chip 24C02, and whether real-time judge current operation meets lease condition accordingly.
The relevant technologies content of not addressing in aforesaid way is taked or is used for reference prior art and can realize.
It should be noted that, under the instruction of this instructions, those skilled in the art can also make such or such easy variation pattern, such as equivalent way, or obvious mode of texturing.Above-mentioned variation pattern all should be within protection scope of the present invention.

Claims (4)

1. for leasing an encryption method for soy bean milk making machine, it is characterized in that comprising the steps:
A provides host computer, USB flash disk and the target soy bean milk making machine for leasing; Host computer can completing user information editor, search, add, delete and upgrade user profile, there is the USB flash disk of writing, cryptoguard and password authorization function simultaneously; The controller of target soy bean milk making machine comprises CPU and secondary USB interface; USB flash disk is as the transmission medium between host computer and the CPU of target soymilkgrinder controller;
First b inserts USB flash disk the first USB interface of host computer, by host computer, user profile is write to USB flash disk with the form of encrypt file; Then USB flash disk is consigned to soy bean milk making machine and charter family, by soy bean milk making machine, charter family USB flash disk is inserted to secondary USB interface, CPU reads the encrypt file in USB flash disk by means of secondary USB interface, CPU obtains after encrypt file, be decrypted the new user profile that obtains comprising lease condition, lease condition comprises rental period and/or the access times that set for target soy bean milk making machine, CPU is according to new user information control target soy bean milk making machine, when target soy bean milk making machine is once occur that the situation that can not meet above-mentioned lease condition is with regard to termination work;
In described step b, host computer adopts the cipher mode that XOR is encrypted and random number combines, each numeral in 0-9 is corresponding with a character, utilize the erratic behavior of random number, effective information is nested in and in random number, forms information sequence with a definite sequence, and this information sequence is translated into corresponding character according to mapping function above;
In described step b, when USB flash disk is inserted to secondary USB interface, click the respective keys in controller man-machine interface, CPU starts to read the encrypt file in USB flash disk, CPU obtains after encrypt file, user profile is wherein deposited in storer, to be stored after corresponding pilot lamp on controller can light, now pull up USB flash disk operation and accused; When CPU moves in target soy bean milk making machine, whether the current operation of real-time judge meets lease condition, if meet lease condition, target soy bean milk making machine can normally be worked, otherwise stops work.
2. according to claim 1 a kind of for leasing the encryption method of soy bean milk making machine, it is characterized in that: in described step b, CPU is the encrypt file in the instant USB flash disk of deletion automatically after obtaining encrypt file.
3. according to claim 2 a kind of for leasing the encryption method of soy bean milk making machine, it is characterized in that: in described step b, CPU upgrades original old user profile by the new user profile of obtaining.
4. according to claim 1 a kind of for leasing the encryption method of soy bean milk making machine, it is characterized in that: in described step a, what secondary USB interface was taked is CH376 chip.
CN201210061523.8A 2012-03-12 2012-03-12 Encrypting method for leasehold bean milk machine Active CN102610039B (en)

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 CN102610039A (en) 2012-07-25
CN102610039B true 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)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101236629A (en) * 2007-02-01 2008-08-06 阿里巴巴公司 On-line payment system and payment procedure
CN102184357B (en) * 2011-04-28 2014-03-19 郑州信大捷安信息技术股份有限公司 Portable trustworthy private information processing system

Non-Patent Citations (4)

* Cited by examiner, † Cited by third party
Title
U盘在数据采集系统中的应用;刘滨,赵艳华,周鹏;《电测与仪表》;20051130;第53-56页 *
刘滨,赵艳华,周鹏.U盘在数据采集系统中的应用.《电测与仪表》.2005,
基于ARM的CH375读写U盘的接口设计与实现;张蕾,杨洁,许力;《电工技术》;20080831;第40-41、46页 *
张蕾,杨洁,许力.基于ARM的CH375读写U盘的接口设计与实现.《电工技术》.2008,

Also Published As

Publication number Publication date
CN102610039A (en) 2012-07-25

Similar Documents

Publication Publication Date Title
CN100421102C (en) Digital rights management structure, portable storage device, and contents management method using the portable storage device
CN101281468B (en) Method and apparatus for generating firmware update file and updating firmware by using the firmware update file
US9245140B2 (en) Secure data encryption in shared storage using namespaces
CN101507224B (en) Secure data cartridge
US8600064B2 (en) Apparatus, method, and computer program product for processing information
CN105339919A (en) Device and memory system
US20080022415A1 (en) Authority limit management method
CN101981580B (en) From polymorphic executable to polymorphic operating system
CN101765845A (en) System and method for digital content distribution
CN103581196A (en) Distributed file transparent encryption method and transparent decryption method
CN106133739A (en) Data are to the safeguard protection of the loading in the nonvolatile memory of safety element
CN104506504A (en) Security mechanism and security device for confidential information of card-free terminal
JP5164372B2 (en) Game machine control chip and its ROM writer
CN202584294U (en) Encryption system for renting soybean milk machines
CN102610039B (en) Encrypting method for leasehold bean milk machine
WO2015154469A1 (en) Database operation method and device
JP4454280B2 (en) License authentication method and license authentication system
CN107967432A (en) A kind of safe storage device, system and method
CN103065105B (en) For equipment and the method for encipher hard disc
JP5304366B2 (en) Storage medium unit and storage medium automatic erasing system
JP3698693B2 (en) Access control apparatus and computer program thereof
CN106446726A (en) Encrypted USB (Universal Serial Bus) disk based on independent access control unit
KR100787684B1 (en) Programmable logic controller peripheral device
KR20140122968A (en) Removable storage media control apparatus for preventing data leakage and method thereof
KR101620685B1 (en) Method and apparatus for managing time-out data stored

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