CN109447663A - A kind of food safety control method and system - Google Patents
A kind of food safety control method and system Download PDFInfo
- Publication number
- CN109447663A CN109447663A CN201811261848.4A CN201811261848A CN109447663A CN 109447663 A CN109447663 A CN 109447663A CN 201811261848 A CN201811261848 A CN 201811261848A CN 109447663 A CN109447663 A CN 109447663A
- Authority
- CN
- China
- Prior art keywords
- food
- information
- survey report
- tracing
- dimensional code
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06Q—INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
- G06Q30/00—Commerce
- G06Q30/018—Certifying business or products
- G06Q30/0185—Product, service or business identity fraud
Landscapes
- Business, Economics & Management (AREA)
- Entrepreneurship & Innovation (AREA)
- Accounting & Taxation (AREA)
- Development Economics (AREA)
- Economics (AREA)
- Finance (AREA)
- Marketing (AREA)
- Strategic Management (AREA)
- Physics & Mathematics (AREA)
- General Business, Economics & Management (AREA)
- General Physics & Mathematics (AREA)
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Medical Treatment And Welfare Office Work (AREA)
Abstract
The present invention relates to a kind of food safety control method and system, method therein includes: the encryption tracing information for obtaining food;Encryption production information is decrypted using the public key of the food enterprises, obtains and saves tracing information;Receive the survey report information of food;The second two dimensional code is generated according to tracing information and survey report information and is sent to food into the user terminal for producing enterprise.The food to be tested of subsidiary two dimensional code is sent to inspection center by the food enterprises and is tested by the present invention, and by the way that tracing information is decrypted using public key, ensure that the tracing information of food to be tested is not tampered with, after obtaining survey report information, tracing information and corresponding Food Inspection report information are made into association process, and generate two dimensional code mark, then the two dimensional code identification printing that will acquire is in the food packaging that oneself produces, consumer is allowed to be read out using barcode scanning function, it is edible so as to trust.
Description
Technical field
The present invention relates to software fields, and in particular to a kind of food safety control method and system.
Background technique
Currently, as food safety is increasingly by the attention of consumer, in order to reinforce food safety control, some food
It is upper to understand product quality letter by inputting the identifying code in related pages for consumer by supplementary diet safety verification code
It ceases, product quality information acquired in this mode is easy to be tampered, and the product quality information that do not can guarantee really belongs to
The food weakens the function and purpose of food safety control.
Summary of the invention
In view of the above technical problems, the present invention provides a kind of food safety control method and system.
The technical scheme to solve the above technical problems is that a kind of food safety control method, comprising:
The first two dimensional code on food casing to be tested is scanned by dimensional code scanner, the encryption for obtaining food chases after
It traces back information, after the encryption tracing information encrypts the tracing information of food using the private key of oneself by the food enterprises
It obtains;
The encryption production information is decrypted using the public key of the food enterprises, obtain and saves described chase after
It traces back information;
Receive the survey report information of the food;
The second two dimensional code is generated according to the tracing information and survey report information and is sent to the food into production enterprise
User terminal.
The beneficial effects of the present invention are: the food enterprises can send the food to be tested of subsidiary two dimensional code to inspection center
It tests, and by the way that tracing information is decrypted using public key, it is ensured that the tracing information of food to be tested is not tampered with,
After obtaining survey report information, tracing information and corresponding Food Inspection report information are made into association process, and generate two dimensional code
Mark, the two dimensional code identification printing that the food enterprises user can will acquire allow and generally disappear in the food packaging that oneself produces
Expense person is scanned reading using the barcode scanning function of mobile terminal, the related check information of the food is obtained, so as to trust
It is edible.
Based on the above technical solution, the present invention can also be improved as follows.
Further, the tracing information includes the production information and circulation information of food, and the production information includes described
The enterprise names of the food enterprises, food name, type, ingredient, product batch number, date of manufacture, food material are locality
Information, the circulation information include the logistics information and sales information of packaged food;
Further, this method further include:
It, will when the user terminal for receiving consumer is requested by scanning the Food Inspection that second two dimensional code generates
The tracing information and survey report information are sent to the user terminal of the consumer.
Further, after the survey report information for receiving the food, this method further include:
The first integrity check value of the survey report is generated using hash algorithm.
It further, should before the tracing information and survey report information are sent to the user terminal of the consumer
Method further include:
The second integrity check value of the survey report information is generated using hash algorithm;
First integrity check value and second integrity check value are compared, if comparing unanimously, held
It goes the described the step of tracing information and survey report information are sent to the user terminal of the consumer.
For achieving the above object, the present invention also provides a kind of food safety control systems, comprising:
Tracing information obtains module, for scanning the one or two on food casing to be tested by dimensional code scanner
Code is tieed up, obtains the encryption tracing information of food, the encryption tracing information is by the food enterprises using the private key of oneself to food
The tracing information of product obtains after being encrypted;
Tracing information deciphering module carries out the encryption production information for the public key using the food enterprises
Decryption, obtains and saves the tracing information;
Survey report receiving module, for receiving the survey report information of the food;
Two dimensional code generates and sending module, for generating the second two dimensional code according to the tracing information and survey report information
And the food is sent into the user terminal for producing enterprise.
Further, the tracing information includes the production information and circulation information of food, and the production information includes described
The enterprise names of the food enterprises, food name, type, ingredient, product batch number, date of manufacture, food material are locality
Information, the circulation information include the logistics information and sales information of packaged food;
Further, the system further include:
Ask respond module is examined, for giving birth to when the user terminal for receiving consumer by scanning second two dimensional code
At Food Inspection request when, the tracing information and survey report information are sent to the user terminal of the consumer.
Further, the system further include:
First check value generation module, the survey report for receiving the food in the survey report receiving module are believed
After breath, the first integrity check value of the survey report is generated using hash algorithm.
Further, the system further include:
Second check value generation module, in the inspection ask respond module by the tracing information and survey report
Information is sent to before the user terminal of the consumer, and the second integrality of the survey report information is generated using hash algorithm
Check value;
Check value comparison module, for comparing first integrity check value and second integrity check value
It is right;
The verification ask respond module, for when the check value comparison module is consistent, the retrospect to be believed
Breath and survey report information are sent to the user terminal of the consumer.
Detailed description of the invention
Fig. 1 is a kind of flow chart of food safety control method provided in an embodiment of the present invention;
Fig. 2 is the flow chart of another food safety control method provided in an embodiment of the present invention;
Fig. 3 is a kind of structural block diagram of food safety control system provided in an embodiment of the present invention;
Fig. 4 is the structural block diagram of another food safety control system provided in an embodiment of the present invention.
Specific embodiment
The principle and features of the present invention will be described below with reference to the accompanying drawings, and the given examples are served only to explain the present invention, and
It is non-to be used to limit the scope of the invention.
Fig. 1 is a kind of flow chart of food safety control method provided in an embodiment of the present invention, as shown in Figure 1, this method
Include:
110, the first two dimensional code on food casing to be tested is scanned by dimensional code scanner, obtains adding for food
Close tracing information, the encryption tracing information add the tracing information of food using the private key of oneself by the food enterprises
It is obtained after close;
120, the encryption production information is decrypted using the public key of the food enterprises, obtains and saves institute
State tracing information;
130, the survey report information of the food is received;
140, the second two dimensional code is generated according to the tracing information and survey report information and is sent to the food into production
The user terminal of enterprise.
A kind of food safety control method provided in an embodiment of the present invention, the food enterprises can by subsidiary two dimensional code to
It examines food to send to inspection center to test, and by the way that tracing information is decrypted using public key, it is ensured that food to be tested
The tracing information of product is not tampered with, and after obtaining survey report information, tracing information and corresponding Food Inspection report information are made
Association process, and two dimensional code mark is generated, the two dimensional code identification printing that the food enterprises user can will acquire is produced at oneself
Food packaging on, allow ordinary consumer to be scanned reading using the barcode scanning function of mobile terminal, obtain the correlation of the food
Checking information, it is edible so as to trust.
Optionally, in this embodiment, the tracing information includes the production information and circulation information of food, the production
Information includes enterprise name, food name, the type, ingredient, product batch number, date of manufacture, food of the food enterprises
Material collection information, the circulation information include the logistics information and sales information of packaged food;
Optionally, in this embodiment, as shown in Figure 1, this method further include:
150, when the user terminal for receiving consumer is requested by scanning the Food Inspection that second two dimensional code generates
When, the tracing information and survey report information are sent to the user terminal of the consumer.
Optionally, in this embodiment, as shown in Fig. 2, after the survey report information for receiving the food, this method
Further include:
240, the first integrity check value of the survey report is generated using hash algorithm.
Optionally, in this embodiment, as shown in Fig. 2, the tracing information and survey report information are sent to institute
Before the user terminal for stating consumer, this method further include:
260, the second integrity check value of the survey report information is generated using hash algorithm;
270, first integrity check value and second integrity check value are compared, if comparing unanimously,
Then execute the described the step of tracing information and survey report information are sent to the user terminal of the consumer.
Specifically, can check whether survey report information to be sent is tampered by comparing, show if consistent by
The survey report information to be sent is not tampered with, so as to guarantee that information truth acquired in consumer is reliable.
The present invention also provides a kind of food safety control systems, as shown in figure 3, the system includes:
Tracing information obtains module, for scanning the one or two on food casing to be tested by dimensional code scanner
Code is tieed up, obtains the encryption tracing information of food, the encryption tracing information is by the food enterprises using the private key of oneself to food
The tracing information of product obtains after being encrypted;
Tracing information deciphering module carries out the encryption production information for the public key using the food enterprises
Decryption, obtains and saves the tracing information;
Survey report receiving module, for receiving the survey report information of the food;
Two dimensional code generates and sending module, for generating the second two dimensional code according to the tracing information and survey report information
And the food is sent into the user terminal for producing enterprise.
Optionally, in this embodiment, the tracing information includes the production information and circulation information of food, the production
Information includes enterprise name, food name, the type, ingredient, product batch number, date of manufacture, food of the food enterprises
Material collection information, the circulation information include the logistics information and sales information of packaged food;
Optionally, in this embodiment, as shown in figure 4, the system further include:
Ask respond module is examined, for giving birth to when the user terminal for receiving consumer by scanning second two dimensional code
At Food Inspection request when, the tracing information and survey report information are sent to the user terminal of the consumer.
Optionally, in this embodiment, as shown in figure 4, the system further include:
First check value generation module, the survey report for receiving the food in the survey report receiving module are believed
After breath, the first integrity check value of the survey report is generated using hash algorithm.
Optionally, in this embodiment, as shown in figure 4, the system further include:
Second check value generation module, in the inspection ask respond module by the tracing information and survey report
Information is sent to before the user terminal of the consumer, and the second integrality of the survey report information is generated using hash algorithm
Check value;
Check value comparison module, for comparing first integrity check value and second integrity check value
It is right;
The verification ask respond module, for when the check value comparison module is consistent, the retrospect to be believed
Breath and survey report information are sent to the user terminal of the consumer.
The foregoing is merely presently preferred embodiments of the present invention, is not intended to limit the invention, it is all in spirit of the invention and
Within principle, any modification, equivalent replacement, improvement and so on be should all be included in the protection scope of the present invention.
Claims (10)
1. a kind of food safety control method characterized by comprising
The first two dimensional code on food casing to be tested is scanned by dimensional code scanner, obtains the encryption retrospect letter of food
Breath, the encryption tracing information are obtained after being encrypted using the private key of oneself to the tracing information of food by the food enterprises
It arrives;
The encryption production information is decrypted using the public key of the food enterprises, obtain and saves the retrospect letter
Breath;
Receive the survey report information of the food;
The second two dimensional code is generated according to the tracing information and survey report information and is sent to the food into the use for producing enterprise
Family end.
2. food safety control method according to claim 1, which is characterized in that the tracing information includes the life of food
Produce information and circulation information, the production information include the enterprise names of the food enterprises, food name, type, at
Divide, product batch number, the date of manufacture, locality information, the circulation information include the logistics information of packaged food to food material
And sales information.
3. food safety control method according to claim 1, which is characterized in that further include:
It, will be described when the user terminal for receiving consumer is requested by scanning the Food Inspection that second two dimensional code generates
Tracing information and survey report information are sent to the user terminal of the consumer.
4. food safety control method according to claim 3, which is characterized in that in the survey report for receiving the food
After information, further includes:
The first integrity check value of the survey report is generated using hash algorithm.
5. food safety control method according to claim 4, which is characterized in that reported by the tracing information and inspection
Information is accused to be sent to before the user terminal of the consumer, further includes:
The second integrity check value of the survey report information is generated using hash algorithm;
First integrity check value and second integrity check value are compared, if comparing unanimously, execute institute
State the step of tracing information and survey report information are sent to the user terminal of the consumer.
6. a kind of food safety control system characterized by comprising
Tracing information obtains module, for scanning the first two dimension on food casing to be tested by dimensional code scanner
Code obtains the encryption tracing information of food, and the encryption tracing information is by the food enterprises using the private key of oneself to food
Tracing information encrypted after obtain;
Tracing information deciphering module solves the encryption production information for the public key using the food enterprises
It is close, it obtains and saves the tracing information;
Survey report receiving module, for receiving the survey report information of the food;
Two dimensional code generates and sending module, concurrent for generating the second two dimensional code according to the tracing information and survey report information
It send to the food into the user terminal for producing enterprise.
7. food safety control system according to claim 6, which is characterized in that the tracing information includes the life of food
Produce information and circulation information, the production information include the enterprise names of the food enterprises, food name, type, at
Divide, product batch number, the date of manufacture, locality information, the circulation information include the logistics information of packaged food to food material
And sales information.
8. food safety control system according to claim 6, which is characterized in that further include:
Ask respond module is examined, for what is generated when the user terminal for receiving consumer by scanning second two dimensional code
When Food Inspection is requested, the tracing information and survey report information are sent to the user terminal of the consumer.
9. food safety control system according to claim 8, which is characterized in that further include:
First check value generation module, for received in the survey report receiving module food survey report information it
Afterwards, the first integrity check value of the survey report is generated using hash algorithm.
10. food safety control system according to claim 9, which is characterized in that further include:
Second check value generation module, in the inspection ask respond module by the tracing information and survey report information
It is sent to before the user terminal of the consumer, the second completeness check of the survey report information is generated using hash algorithm
Value;
Check value comparison module, for first integrity check value and second integrity check value to be compared;
The verification ask respond module, for when the check value comparison module is consistent, by the tracing information and
Survey report information is sent to the user terminal of the consumer.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811261848.4A CN109447663A (en) | 2018-10-26 | 2018-10-26 | A kind of food safety control method and system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811261848.4A CN109447663A (en) | 2018-10-26 | 2018-10-26 | A kind of food safety control method and system |
Publications (1)
Publication Number | Publication Date |
---|---|
CN109447663A true CN109447663A (en) | 2019-03-08 |
Family
ID=65548790
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201811261848.4A Pending CN109447663A (en) | 2018-10-26 | 2018-10-26 | A kind of food safety control method and system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109447663A (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111221285A (en) * | 2020-01-14 | 2020-06-02 | 南京粒聚智能科技有限公司 | Valve detection data acquisition and tracing method based on industrial Internet of things |
CN113533499A (en) * | 2021-05-25 | 2021-10-22 | 广东省中鼎检测技术有限公司 | Food safety whole-course tracing method and sample detection system |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2007280207A (en) * | 2006-04-10 | 2007-10-25 | Mitsubishi Electric Engineering Co Ltd | Natural product history management system |
CN102542341A (en) * | 2010-12-21 | 2012-07-04 | 航天信息股份有限公司 | Safety traceability system and method for small-packaged foods |
CN104484847A (en) * | 2014-10-22 | 2015-04-01 | 刘品新 | A food production and circulation whole process traceability system based on trusted electronic archives, abstract encryption and two-dimension codes |
CN104766124A (en) * | 2014-01-03 | 2015-07-08 | 航天信息股份有限公司 | Method and system for safety tracing of packaged foods |
CN105719144A (en) * | 2014-12-02 | 2016-06-29 | 航天信息股份有限公司 | Food safety tracing method and food safety tracing system based on two-dimensional code |
-
2018
- 2018-10-26 CN CN201811261848.4A patent/CN109447663A/en active Pending
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2007280207A (en) * | 2006-04-10 | 2007-10-25 | Mitsubishi Electric Engineering Co Ltd | Natural product history management system |
CN102542341A (en) * | 2010-12-21 | 2012-07-04 | 航天信息股份有限公司 | Safety traceability system and method for small-packaged foods |
CN104766124A (en) * | 2014-01-03 | 2015-07-08 | 航天信息股份有限公司 | Method and system for safety tracing of packaged foods |
CN104484847A (en) * | 2014-10-22 | 2015-04-01 | 刘品新 | A food production and circulation whole process traceability system based on trusted electronic archives, abstract encryption and two-dimension codes |
CN105719144A (en) * | 2014-12-02 | 2016-06-29 | 航天信息股份有限公司 | Food safety tracing method and food safety tracing system based on two-dimensional code |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111221285A (en) * | 2020-01-14 | 2020-06-02 | 南京粒聚智能科技有限公司 | Valve detection data acquisition and tracing method based on industrial Internet of things |
CN113533499A (en) * | 2021-05-25 | 2021-10-22 | 广东省中鼎检测技术有限公司 | Food safety whole-course tracing method and sample detection system |
CN113533499B (en) * | 2021-05-25 | 2024-04-19 | 广东省中鼎检测技术有限公司 | Sample detecting system |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US10320567B2 (en) | Security scheme for authenticating object origins | |
US20140254796A1 (en) | Method and apparatus for generating and/or processing 2d barcode | |
CN107194266B (en) | Method for verifying whether paper certificate is tampered | |
US8285991B2 (en) | Electronically signing a document | |
CN106709963B (en) | The method and apparatus of the authentication image true and false | |
US9531544B2 (en) | Two-dimensional bar code for ID card | |
CN102799989A (en) | Product source tracing scheme based on PKI (Public Key Infrastructure) and two-dimensional codes | |
CN102663591A (en) | Product anti-counterfeiting method and system based on electronic tag | |
CN102750510A (en) | Credible two-dimensional code scheme based on public key infrastructure (PKI) and HASH algorithm | |
WO2018227685A1 (en) | Method and system for secure access of terminal device to internet of things | |
CN105373933A (en) | Food circulation traceability method based on electronic inspection report | |
CN113347143B (en) | Identity verification method, device, equipment and storage medium | |
CN110598433A (en) | Anti-counterfeiting information processing method and device based on block chain | |
CN113452526B (en) | Electronic file certification method, verification method and corresponding devices | |
CN109447663A (en) | A kind of food safety control method and system | |
US7548665B2 (en) | Method, systems, and media for identifying whether a machine readable mark may contain sensitive data | |
CN106022187A (en) | High-efficient O2O implementation method | |
CN107665314B (en) | The trusted processes method and device signed on the electronic document | |
CN116582266A (en) | Electronic signature method, electronic signature system, and readable storage medium | |
JP4923388B2 (en) | Content certification system | |
CN111445250A (en) | Block chain key testing method and device | |
US11088824B2 (en) | Method and apparatus for use in information processing | |
CN109886006A (en) | A kind of information source checking method and device based on two dimensional code | |
CN116561777A (en) | Data processing method and device | |
CN109509007A (en) | Product false proof electronic tag and electronic tag authentication method and system |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20190308 |
|
RJ01 | Rejection of invention patent application after publication |