CN105591751A - Off-line verifying device and method - Google Patents

Off-line verifying device and method Download PDF

Info

Publication number
CN105591751A
CN105591751A CN201510980404.6A CN201510980404A CN105591751A CN 105591751 A CN105591751 A CN 105591751A CN 201510980404 A CN201510980404 A CN 201510980404A CN 105591751 A CN105591751 A CN 105591751A
Authority
CN
China
Prior art keywords
coding
decoding
module
user
verification device
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
Application number
CN201510980404.6A
Other languages
Chinese (zh)
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.)
Fun Point Online Technology (beijing) Co Ltd
Original Assignee
Fun Point Online Technology (beijing) 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 Fun Point Online Technology (beijing) Co Ltd filed Critical Fun Point Online Technology (beijing) Co Ltd
Priority to CN201510980404.6A priority Critical patent/CN105591751A/en
Publication of CN105591751A publication Critical patent/CN105591751A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L9/00Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
    • H04L9/32Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols including means for verifying the identity or authority of a user of the system or for message authentication, e.g. authorization, entity authentication, data integrity or data verification, non-repudiation, key authentication or verification of credentials
    • H04L9/3247Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols including means for verifying the identity or authority of a user of the system or for message authentication, e.g. authorization, entity authentication, data integrity or data verification, non-repudiation, key authentication or verification of credentials involving digital signatures

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The invention provides an off-line verifying device, comprising an input module, a decoding module and an output module, wherein the input module is used for receiving user codes generated according to a preset coding/decoding protocol; the decoding module is used for receiving the codes from the input module, verifying the codes according to the coding/decoding protocol, and sending a verification result to the output module; and the output module is used for outputting the verification result from the decoding module. The invention also provides an off-line verifying method used for the off-line verifying device, and an off-line verifying system comprising the off-line verifying device. The technical scheme greatly reduces the dependence of food and beverage service O2O (Online To Offline) network platform off-line verification on network equipment/environment stability, and effectively improves food and beverage service user experience.

Description

A kind of off-line verification apparatus and method
Technical field
The present invention relates to the Internet, applications field, specifically, the present invention relates to a kind of off-line verification dressPut and method.
Background technology
At present, at internet catering industry, especially food and drink O2O (OnlineToOffline, onlineOn off-line/line under line) industry, although there is in order to solve traditional fast food restaurant the ability of preparing for a meal fast,But still need in the face of due to choosing meal and pay the serious queuing situation of bringing contradictory phenomena andProblem, main employing by interconnected network mode selects meal and payment to be put on line user, and user is arrivedThe part that meal is got in shop is put into the operation way under line. One of them more typical pattern is, Yong HuOn line, order, pay and obtain certain voucher corresponding with its order from corresponding server and (for example orderOdd numbers or get meal password), to behind shop by this voucher typing printing device, via printing device to serviceDevice obtains the receipt of ordering dishes after verifying this user's identity, by this receipt as identifying user identityFinal voucher get meal. In this process, checking need to have been come by the server on lineBecome, therefore need to have good network communications environment can set up steady with server to ensure printing deviceFixed communication connection, otherwise printing device both cannot have been confirmed user identity, also cannot know on subscribers feederThe details of the order creating, and then cannot determine print What, this just makes to seem under lineVerification portion in fact still rely on very much network environment. In practical application scene, the net in shopNetwork environment varies, if use WIFI, its network stabilization may be subject to linking number, the band toleranceThe impact of the factors such as system; If use mobile network (3G/4G), it is limited to again the network base of operatorInfrastructure and the network coverage.
In sum, existing for the food and beverage sevice O2O network platform get meal verification method tooRely on the concrete network equipment/environment in shop, be difficult to experience for user provides the highly stable meal of getting.
Summary of the invention
The object of this invention is to provide a kind of solution that can overcome above-mentioned technical problem.
The invention provides a kind of off-line verification device, comprising: input module, decoder module, andOutput module, wherein, described input module, for receive from user according to predetermined coding/The coding of decoding protocol generation; Described decoder module, for receiving the coding from described input module,And according to described coding/decoding agreement, it is verified, and the result is sent to described output mouldPiece; Described output module, for exporting the described the result from described decoder module.
Preferably, described decoder module, also for according to described coding/decoding agreement to described encode intoRow decoding, and decoded result is sent to described output module; Described output module, also for outputFrom the described decoded result of described decoder module.
Preferably, described off-line verification device also comprises: DBM, and for storage and serverThe coding/decoding agreement of agreement in advance; Described decoder module 204, for according to from DBMCoding/decoding agreement to verifying and/or decode from the coding of described input module.
Preferably, described DBM is also synchronizeed for carrying out data with described server, upgrades instituteState coding/decoding agreement.
The present invention also provides a kind of verification method for aforesaid off-line verification device, comprising: stepRapid 1, described demo plant receive that user provides according to the volume of predetermined coding/decoding protocol generationCode; Step 2, described demo plant is encoded described in described coding/decoding protocol verification.
Preferably, described step 1 also comprises: described coding/decoding agreement comprises, described encoded packets containsSignature section and data segment, wherein, described data segment comprises based on described sequence information is encodedThe data that arrive; Described signature section comprises based on described data segment coding and/or described data segment coding and decodingAfter the signed data of information acquisition.
Preferably, described step 2 further comprises: the number of described off-line verification device to described codingThe information root obtaining after to described data segment coding and decoding according to section and/or according to described coding/decoding agreementAgain obtain signed data according to described coding/decoding agreement, according to the described new number of signature of again obtainingAccording to described coding in the comparative result of signature section determine the result to described coding.
Preferably, described method also comprises: step 5, described off-line verification device is defeated to described userGo out the result of described step 2, and/or, assist according to described coding/decoding to described user's outputView is by the sequence information obtaining after described coding and decoding.
Preferably, described method also comprises: described off-line verification device and described server carry out dataSynchronously.
The present invention also provides a kind of off-line verification system, comprises server and aforementioned off-line verification dressPut, wherein, described server, for receiving the sequence information from user, based on predetermined codingThe coding that/decoding protocol generation comprises this sequence information, and described coding is offered to described user; InstituteState demo plant, for receiving the described coding of described user's input, and assist according to described coding/decodingThe described coding of view checking.
Compared with prior art, the technical scheme that the present invention proposes can greatly reduce food and beverage seviceUnder the line of the O2O network platform, the degree of dependence of the stability of checking to the network equipment/environment, effectively carriesThe user of high food and beverage sevice experiences.
Brief description of the drawings
In order to be illustrated more clearly in technical scheme of the present invention, required in describing embodiment belowUse accompanying drawing be briefly described, apparently, the accompanying drawing in the following describes do not form forThe restriction of technical scheme of the present invention.
Fig. 1 is the structural representation of off-line verification system according to an embodiment of the invention;
Fig. 2 is the structural representation of demo plant according to an embodiment of the invention;
Fig. 3 is the flow chart of off-line verification method according to an embodiment of the invention.
Detailed description of the invention
Below in conjunction with the drawings and specific embodiments, the present invention is done further and described.
Fig. 1 shows the structural representation of off-line verification system according to an embodiment of the invention. As figureShown in 1, according to one embodiment of present invention, off-line verification system 100 comprise server 104 withAnd demo plant 106. Server 104 is for receiving the sequence information from user 102, based onThe demo plant 106 in advance coding/decoding agreement F of agreement generates the coding that comprises this sequence information, andThis coding is offered to user 102. Demo plant 106 is for receiving user by with aforementioned codingMode that carrier format adapts (such as, keyboard input, provide bar code/Quick Response Code for demo plant106 scanning, etc.) input aforementioned coding, and according to aforementioned coding/decoding agreement F to aforementioned codingVerify, export the result to user 102, and in the situation that being proved to be successful, to aforementioned volumeCode is decoded, and then parses sequence information, the transaction to user's 102 output packets containing sequence informationVoucher.
According to one embodiment of present invention, server 104 provides net via internet for user 102Network order platform (for example, micro-letter public number, website, taking special application program of mobile phone as clientNetwork service platform etc.), receive user 102 and use and can be connected to this network meal-ordering platformTerminal device (for example, computer, panel computer, mobile phone etc.) is by this network meal-ordering platform selectingDining room, and select the sequence information of eating, pay rear submission according to the menu corresponding to this dining room. ClothesBusiness device 104 is based on comprising this order with the demo plant 106 coding/decoding agreement F generation of agreement in advanceThe coding of information. This coding/decoding agreement F comprises coding/decoding method F1 and menu information. Specifically, can be as shown in table 1 below.
Code field and shared character length are as shown in table 1.
Character bit Front 4 character bits Since the 5th character bit
Function declaration Signature section Data segment
Table 1
Wherein, when signature section can be used for verifying, verification is verified the correctness of data and the timeliness of orderProperty, its production method can be: will be by Order Date, server key character string, vegetable character string (After data segment decoding, obtain, for directly printing vegetable information all or part of of getting meal voucherCharacter string) and/or the character string of data segment composition (be MessageDigest through md5 algorithmAlgorithm5, Message Digest Algorithm 5) 16 character strings obtaining after calculating divide four groups,In every group through between two with operation after XOR, thereby obtain the signature section of the coding being formed by 4 characters;Data segment, for preserving the concrete vegetable information that order comprises, comprises kind and the quantity of vegetable, and it is longSpend and determined by the concrete quantity of vegetable, wherein can be as following table corresponding to the specific coding mode of every kind of vegetableShown in 2.
Table 2
Wherein, utilize alphabetical a~z, A~Z totally 52 letters, and its prefix add 1,10 or11 or do not add the combination of prefix, (52 × 4) plants vegetable can to represent altogether 208; RepeatField is the quantity of the vegetable of current kind, and certain vegetable does not only have in repeated segments character representation orderHave 1 this kind of vegetable, the repeated segments of certain vegetable is to have 2 this kind of vegetables in 2 expression orders,By that analogy; In the time that certain vegetable exceedes 9 in order, this kind of vegetable can divide multistage to represent, as15 a kind vegetables, can be expressed as a9a6.
Vegetable prefix in data segment is combined with vegetable section in represented vegetable kind and menu informationThe vegetable character string of menu name corresponding one by one. For example,, for " western red corresponding to menu namePersimmon scrambled eggs " vegetable character string, its data segment can be represented as 1b, " braised in soy sauce for menu nameBeef " vegetable character string, its data segment can be represented as 10c, if a order is " western redPersimmon scrambled eggs " a, " red rich beef " two parts, its corresponding data segment can be represented as 1b10c2.
Study discovery through the inventor, in the order of ordering of network ordering platform, have 98.6% orderComprise 3 dishes (no matter whether identical kind is) more. Thus, 2 words of the shortest needs of aforementioned data sectionSymbol, 3 characters of the longest needs. Therefore, aforementioned coding method is applied to network ordering platform and has goodGood data compression effect.
According to one embodiment of present invention, the signature section in aforementioned code field also can adopt existingOther signature (SHA) algorithms (also can utilize different fields to sign) in technology; BeforeThe data segment of stating in code field also can adopt other data-encoding scheme (examples of the prior artAs, Huffman Algorithm) information corresponding with order project information F2 in user's order is encoded.
Server 104 by this coding with the form of certain carrier (such as, expressly, bar code, two dimensionCode etc.) offer user 102.
Demo plant 106 is for receiving user by the mode adapting with the carrier format of aforementioned coding(such as, keyboard inputs, provides bar code/Quick Response Code to scan for demo plant 106, etc.) inputAforementioned coding, and according to aforementioned coding/decoding agreement F, aforementioned coding is verified. Particularly,Demo plant 106 extracts data segment wherein according to aforementioned coding/decoding agreement F, believes according to menuData segment decoding is obtained corresponding vegetable character string by breath, and then according to the generation side of aforementioned signature sectionMethod, the signature section character regenerating in signature section character and aforementioned coding compares, if consistent,Illustrate that this coding is correctly effective, and then the vegetable character string output packet obtaining according to decoding is containing specifically orderingSingle information get meal voucher; If inconsistent, illustrate that this coding is invalid, the prompting that output encoder is wrong.
According to one embodiment of present invention, aforementioned coding/decoding method F1 can comprise the suitable of otherFor the coding/decoding method of authorization information correctness, can be symmetric coding/decoding mode,Also can the symmetric coding/decoding mode of right and wrong, the coding/decoding mode of for example public/private keys.
Fig. 2 shows the structural representation of demo plant 106 according to an embodiment of the invention. As figureShown in 2, according to one embodiment of present invention, demo plant 106 comprises input module 202, separatesCode module 204, and output module 206. Wherein, input module 202 is for receiving from userInput message, its can with carrier format corresponding to coding (such as, expressly, bar code, two dimensionCode etc.) input equipment (such as, keyboard, apparatus for reading of bar code, Quick Response Code scanning means etc.)Connect; Decoder module 204 is for receiving the coding from input module 202, and according to serverThe coding/decoding agreement F of agreement verifies it and/or decodes in advance, and by checking/decoded resultSend to output module 206; Output module 206 for export checking from decoder module 204/Decoded result, its can be suitable for output equipment to user's output information (such as, display, printingEquipment etc.) connect.
According to one embodiment of present invention, demo plant 106 can also comprise DBM 208,For storing and the server 104 coding/decoding agreement F of agreement in advance; Decoder module 204 is for rootAccording to the coding/decoding agreement F from DBM 208, the coding from input module 202 is carried outChecking and/or decoding. Wherein, DBM 208 can be included with decoder module 204 in, alsoIt can be the module that is independent of decoder module 204.
According to one embodiment of present invention, not accessing Internet of demo plant 106, only basisThe coding/decoding agreement F that in advance preset and server 104 are appointed to user 102 to its submissionCoding is verified and decodes. And then farthest reduce the dependence of verification system to network environment,To user with more stable experience.
According to one embodiment of present invention, server 104 can also regularly/irregular renewal coding/ decoding agreement F. The DBM 208 of demo plant 106 can be with server 104 via interconnectedIt is synchronous that net carries out regularly/irregular data, ensures the coding/decoding association that demo plant 106 hasView F and server 104 are consistent, to adapt to security and to comprise menu information at interior orderProject information F2 upgrades demand.
Fig. 3 shows the flow chart of off-line verification method according to an embodiment of the invention. As Fig. 3 instituteShow, off-line verification method according to an embodiment of the invention, comprising:
Step 302, server receives the order that user submits to;
Step 304, server pushes the coded message that comprises sequence information to user;
Step 306, demo plant receives the coded message of user's input;
Step 308, whether demo plant checking coding is effective: if invalid, enter step 310; IfEffectively, enter step 312;
Step 310, the information that demo plant output encoder is wrong;
Step 312, the sequence information obtaining after demo plant output decoding.
It will be appreciated by those skilled in the art that off-line verification system, dress according to an embodiment of the inventionPut and method, other network service platforms that also can ask for to shop for relating to user, for example,User is provided the electronic product network selling platform of the service of asking for to shop, etc.
Off-line verification system, device, method described in application above-described embodiment can greatly reduce mealThe degree of dependence of the stability of checking to the network equipment/environment under the line of the drink-service business O2O network platform,The user who effectively improves food and beverage sevice experiences.
The foregoing is only the schematic detailed description of the invention of the present invention, not of the present invention in order to limitScope. Any those skilled in the art, under the premise without departing from the spirit and scope of the present invention instituteEquivalent variations, amendment and the combination done, all should belong to the scope of protection of present invention. The present invention wantsThe protection domain of asking is by appending claims and be equal to and define.

Claims (10)

1. an off-line verification device, comprising: input module, decoder module, and output module,Wherein,
Described input module, for receive from user according to predetermined coding/decoding protocol generationCoding;
Described decoder module, for receiving the coding from described input module, and according to described coding/ decoding agreement is verified it, and the result is sent to described output module;
Described output module, for exporting the described the result from described decoder module.
2. off-line verification device according to claim 1, is characterized in that,
Described decoder module, also for according to described coding/decoding agreement, described coding being decoded,And decoded result is sent to described output module;
Described output module, also for exporting the described decoded result from described decoder module.
3. off-line verification device according to claim 1 and 2, is characterized in that, described off-lineDemo plant also comprises:
DBM, for storing and the server coding/decoding agreement of agreement in advance;
Described decoder module 204, for according to from the coding/decoding agreement of DBM to fromThe coding of described input module is verified and/or is decoded.
4. off-line verification device according to claim 3, is characterized in that, described database mouldPiece is also synchronizeed for carrying out data with described server, upgrades described coding/decoding agreement.
5. one kind for according to the checking of the off-line verification device described in claim 1 to 4 any oneMethod, comprising:
Step 1, described off-line verification device receive that user provides according to predetermined coding/decoding agreementThe coding generating;
Step 2, described off-line verification device is encoded described in described coding/decoding protocol verification.
6. verification method according to claim 5, is characterized in that, described step 1 also comprises:Described coding/decoding agreement comprises, described encoded packets is containing signature section and data segment, wherein,
Described data segment comprises based on the data that obtain that described sequence information is encoded;
Described signature section comprises based on after described data segment coding and/or described data segment coding and decodingThe signed data of information acquisition.
7. verification method according to claim 6, is characterized in that, described step 2 is furtherComprise:
Described off-line verification device is to described coded data section and/or according to described coding/decoding agreementThe information obtaining after described data segment coding and decoding is obtained to label again according to described coding/decoding agreementName data, according to the comparison of the signature section in described new signed data and the described coding again obtainingResult is determined the result to described coding.
8. verification method according to claim 5, is characterized in that, described method also comprises:
Step 5, described off-line verification device is exported the result of described step 2 to described user,And/or, will after described coding and decoding, obtain according to described coding/decoding agreement to described user outputSequence information.
9. verification method according to claim 5, is characterized in that, described method also comprises:Described off-line verification device carries out data with described server synchronizes.
10. an off-line verification system, comprises server and according to any one in claim 1 to 4Described off-line verification device, wherein,
Described server, for receiving the sequence information from user, the coding/decoding association based on predeterminedView generates the coding that comprises this sequence information, and described coding is offered to described user;
Described demo plant, for receiving the described coding of described user's input, and according to described codingDescribed in/decoding protocol verification, encode.
CN201510980404.6A 2015-12-23 2015-12-23 Off-line verifying device and method Pending CN105591751A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510980404.6A CN105591751A (en) 2015-12-23 2015-12-23 Off-line verifying device and method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510980404.6A CN105591751A (en) 2015-12-23 2015-12-23 Off-line verifying device and method

Publications (1)

Publication Number Publication Date
CN105591751A true CN105591751A (en) 2016-05-18

Family

ID=55931027

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510980404.6A Pending CN105591751A (en) 2015-12-23 2015-12-23 Off-line verifying device and method

Country Status (1)

Country Link
CN (1) CN105591751A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108629587A (en) * 2018-05-09 2018-10-09 北京悦畅科技有限公司 A kind of method, server and terminal device for realizing parking fee e-payment verification
CN108805558A (en) * 2018-06-14 2018-11-13 王�华 A kind of offline electronic payment method and offline electronic payment system
JP2020504408A (en) * 2016-12-19 2020-02-06 アリババ・グループ・ホールディング・リミテッドAlibaba Group Holding Limited Secure offline resource operation

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2020504408A (en) * 2016-12-19 2020-02-06 アリババ・グループ・ホールディング・リミテッドAlibaba Group Holding Limited Secure offline resource operation
CN108629587A (en) * 2018-05-09 2018-10-09 北京悦畅科技有限公司 A kind of method, server and terminal device for realizing parking fee e-payment verification
CN108805558A (en) * 2018-06-14 2018-11-13 王�华 A kind of offline electronic payment method and offline electronic payment system

Similar Documents

Publication Publication Date Title
CN109983466B (en) Account management system and method based on block chain and storage medium
CN101038653B (en) Verification system
CN104468531B (en) The authorization method of sensitive data, device and system
CN103714458B (en) Mobile terminal transaction encryption method based on Quick Response Code
CN105512881B (en) A kind of method and terminal for completing payment based on two dimensional code
TWI683567B (en) Security verification method, device, server and terminal
CN105719144B (en) Food safety tracing method and system based on two-dimension code
CN110224999B (en) Information interaction method and device and storage medium
CN104618334A (en) Method and system for generating and verifying dynamic two-dimensional code
US20180253559A1 (en) Secured lossless data compression using encrypted headers
CN102724668A (en) Method and system for sharing WIFI (wireless fidelity) network information on basis of two-dimensional code graphs
CN101094383A (en) IPTV authentication and authorization method, server and system
CN102724310A (en) Method using mobile terminal to implement cloud searching
CN107808286A (en) A kind of safe verification method of Quick Response Code
CN112511514A (en) HTTP encrypted transmission method and device, computer equipment and storage medium
CN107169775A (en) False proof marketing system and the method for tracing to the source based on wechat
CN105515781B (en) A kind of application platform login system and its login method
CN103400173A (en) Generating method and reading method of two-dimensional code containing private information
CN105591751A (en) Off-line verifying device and method
CN103997406B (en) Identity identifying method and device based on two dimensional code
CN104253689A (en) User identity module card generated dynamic password authentication method and system based on QR (quick response) code
CN106656993B (en) Dynamic verification code verification method and device
CN115695051A (en) Data center transmission management system based on remote network platform architecture
CN100542087C (en) Be used to verify the method and apparatus of the marketable securities that transmit as digital massage
CN107707686A (en) Equipment identification method and device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20160518

WD01 Invention patent application deemed withdrawn after publication