CN106127275A - A kind of coded method of bar code of paying the bill - Google Patents
A kind of coded method of bar code of paying the bill Download PDFInfo
- Publication number
- CN106127275A CN106127275A CN201610464286.8A CN201610464286A CN106127275A CN 106127275 A CN106127275 A CN 106127275A CN 201610464286 A CN201610464286 A CN 201610464286A CN 106127275 A CN106127275 A CN 106127275A
- Authority
- CN
- China
- Prior art keywords
- bar code
- code
- string
- timestamp
- payment
- 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
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06K—GRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
- G06K19/00—Record carriers for use with machines and with at least a part designed to carry digital markings
- G06K19/06—Record carriers for use with machines and with at least a part designed to carry digital markings characterised by the kind of the digital marking, e.g. shape, nature, code
- G06K19/06009—Record carriers for use with machines and with at least a part designed to carry digital markings characterised by the kind of the digital marking, e.g. shape, nature, code with optically detectable marking
- G06K19/06046—Constructional details
-
- 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
- G06Q20/00—Payment architectures, schemes or protocols
- G06Q20/30—Payment architectures, schemes or protocols characterised by the use of specific devices or networks
Landscapes
- Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Theoretical Computer Science (AREA)
- Business, Economics & Management (AREA)
- Computer Networks & Wireless Communication (AREA)
- Accounting & Taxation (AREA)
- Strategic Management (AREA)
- General Business, Economics & Management (AREA)
- Cash Registers Or Receiving Machines (AREA)
Abstract
The present invention provides the coded method of a kind of bar code of paying the bill, including: step 1, bar code information include timestamp, pay number and type of payment, the data of described timestamp, described payment number and described type of payment are combined and form an original string code;Step 2, using the phone number of the holder of described payment number as encryption string code, described original string code is encrypted, obtains a new string code;Step 3, described new string code is added by turn with the Applied Digital key of identical figure place, the not-carry more than 10, obtains last string number;Step 4, according to Obfuscating Algorithms, the string number that this is last is encrypted again after, obtain final bar code data;Step 5, by described bar code data by bar code generating algorithm generate bar code image.The present invention reduces the figure place of bar code, improve and manually enter or the efficiency of equipment recognition.
Description
Technical field
The present invention relates to a kind of coded method, particularly relate to the coded method of a kind of bar code of paying the bill.
Background technology
After group of U.S. etc. purchases by group online purchase coupons, can obtain one " certificate code ", user needs carefully to take care of
This certificate code, cannot re-use because once being obtained by other people and using.And the effect of the payment code essence on Alipay is
" collecting money ", other user transfers accounts to this user by sweeping this payment code.
In O2O business, the coupons that user buys on line, online under when checking and writing off, need the generation can be by POS or client
The end terminal recognition such as APP, possess ageing and be difficult to the payment code being tampered and copying.Generate further, it is desirable to pay number
When payment code is paid the bill, it may have above-mentioned safety.
At the Chinese invention of Application No. 201110231125.1 filed in 12 days Augusts in 2011, disclose a kind of bar shaped
Code and the coded method of Quick Response Code mixing, comprise the following steps: bar code data is generated bar code by bar code algorithm by (1)
Image;(2) the hiding information that need to encrypt is encrypted as key using the bar code data of product by AES, obtains
Quick Response Code generates information;(3) Quick Response Code step (2) obtained generates information and generates Quick Response Code figure by Quick Response Code generating algorithm
Picture.This invention also discloses coding/decoding method and coding, the decoding apparatus of above-mentioned coded method.When the payment code of this invention does not has
Effect property;Bar code and Quick Response Code are mixing;Its AES does not have the effect of dual signature.
Summary of the invention
The technical problem to be solved in the present invention, is to provide the coded method of a kind of bar code of paying the bill, in order to improve payment
The safety of code, carries out code Design to bar code, adds user's signature, application signature and timestamp, and is encrypted and mixes
Confuse process.
The problem of the present invention is achieved in that
The coded method of a kind of bar code of paying the bill, comprises the steps:
Step 1, bar code information include timestamp, pay number and type of payment, described timestamp at least 6 figure place tables
Show, front 3 the N days represented among a year, rear 3 the M minutes represented among a day;By described timestamp, described payment
The data of number and described type of payment are combined and form an original string code;
Step 2, using the phone number of the holder of described payment number as encryption string code, described original string code is carried out
Encryption, obtains a new string code;
Step 3, described new string code is added by turn with the Applied Digital key of identical figure place, not entering more than 10
Position, obtains last string number;
Step 4, according to Obfuscating Algorithms, the string number that this is last is encrypted again after, obtain final bar shaped yardage
According to;
Step 5, by described bar code data by bar code generating algorithm generate bar code image.
Further, described in described step 1, timestamp represents by least 6 figure places, front 3 N represented among a year
My god, rear 3 the M minutes represented among a day, particularly as follows:
The value of M is 0≤M≤1440, if 0≤M < 720, the then actual natural law of the numeric representation of N, the numeric representation of M is real
Border the number of minutes;If 720≤M≤1440, then the actual natural law of N adds 400 and represents, the actual the number of minutes of M subtracts 720 and represents.
Further, described step 2 particularly as follows:
If described timestamp is 6 figure places, then by described phone number front 6 with the numerical value phase by turn of described timestamp
Add, the not-carry more than 10, draw one 6 results;Then latter 6 of described phone number are added by turn with these 6 results,
Not-carry more than 10, draws another 6 results;After the numerical value of these 6 up-to-date results Yu described timestamp is replaced,
Obtain a new string code.
Further, described step 4 particularly as follows:
In described last string number, the 1st is used for determining and obscures position, from left to right carries out according to the value of the 1st
Index, the numerical value of index is from left to right to be followed successively by 0 to 17, and the value keeping the 1st is constant with the value obscuring position, other value
All plus obscuring the value of position, the not-carry more than 10, obtain final bar code data.
Present invention have the advantage that
The present invention have employed the method for novelty in the timestamp code Design of payment bar code, makes the position of payment bar code
Number shortens two, improves and manually enters or the efficiency of equipment recognition.
Accompanying drawing explanation
The present invention is further illustrated the most in conjunction with the embodiments.
Fig. 1 is that the coded method of a kind of bar code of paying the bill of the present invention performs flow chart.
Detailed description of the invention
For making the present invention become apparent, existing with a preferred embodiment, and coordinate accompanying drawing to be described in detail below.
As it is shown in figure 1, the coded method of a kind of bar code of paying the bill of the present invention, comprise the steps:
Step 1, bar code information include timestamp, pay number and type of payment, are typically all manually entered bar code
Numerical value carry out matching, so the figure place of bar code is the fewest more good;Described timestamp represents by least 6 figure places, this enforcement
In example, described timestamp is 6 figure places, front 3 the N days represented among a year, rear 3 the M minutes represented among a day;Institute
State payment number and include coupons and payment accounts, represent by 11 figure places, less than 11 supply with 0;Described type of payment is with 1
Figure place represents, numbered 0 expression coupons pay, and numbered 1 expression payment accounts pays;By described timestamp, described
The data paying number and described type of payment are combined (can be to these 3 kinds of data combination in any) and form 18 original
String code;
As: the timestamp of a consumption card is 101010, payment number is 12345678910, type of payment is 0, then
The original string code of 18 is 101010123456789100;
The encryption algorithm of wherein said timestamp particularly as follows:
The value of M is 0≤M≤1440, if 0≤M < 720, the then actual natural law of the numeric representation of N, the numeric representation of M is real
Border the number of minutes;If 720≤M≤1440, then the actual natural law of N adds 400 and represents, the actual the number of minutes of M subtracts 720 and represents;
Such as, if today be the 50th day among a year, the 100th minute, then timestamp is encoded to 050100;If being today
Among 1 year the 50th day, the 1200th minute, then timestamp is encoded to 450480;
Step 2, using the phone number of the holder of described payment number as encryption string code, described original string code is carried out
Encryption, obtains 18 new string codes, can verify whether it is the operation of holder;
Particularly as follows: first 6 of described phone number are added, more than 10 not by turn with first 6 of described original string code
Carry, draws one 6 results;Then latter 6 of described phone number are added by turn with these 6 results, not entering more than 10
Position, draws another 6 results;The numerical value of these 6 up-to-date results with first 6 in described original string code (be this refers to 6
Timestamp 101010) be replaced after, obtain 18 new string codes;
Such as, the phone number of the holder of described payment number is 15859090114, by first 6 of phone number
(158590) first 6 (timestamps: 101010) with the original string code of bar code are added by turn, and the not-carry more than 10 draws
One 6 results, i.e. 101010+158590=259500;Then by rear 6 (090114) of described phone number and these 6 knots
Really (259500) are added by turn, the not-carry more than 10, draw another 6 results, i.e. 090114+259500=249614, then
18 new string codes are 249614123456789100;
Step 3, described 18 new string codes and 18 Applied Digital keys are added by turn, not entering more than 10
Position, obtains last string number, can verify whether to use legal payment terminal to operate;
Assuming that these 18 Applied Digital keys are 591350100853520400,18 new string codes
(249614123456789100) it is added by turn, the not-carry more than 10, obtains last string number, it may be assumed that
249614123456789100+591350100853520400=730964223209209500;
Step 4, according to Obfuscating Algorithms, the string number that this is last is encrypted again after, obtain final bar shaped yardage
According to;
In described last string number, the 1st is used for determining and obscures position, from left to right carries out according to the value of the 1st
Index, the numerical value of index is from left to right to be followed successively by 0 to 17, and the value keeping the 1st is constant with the value obscuring position, other value
All plus obscuring the value of position, the not-carry more than 10, obtain final bar code data;
Knowable to the last string number 730964223209209500 of 18, the value of the 1st is 7, the most from left to right
Starting index, the 1st is to index corresponding 0, then the 8th (i.e. indexing 7 of correspondence), for obscuring position, the value obscuring position is 2,
Then in addition to the value of the 1st and the 8th is constant, other value all adds 2, obtains final bar code data, it may be assumed that
730964223209209500+022222202222222222=752186405421421722;
Step 5, by described bar code data by bar code generating algorithm generate bar code image.
Illustrate:
A) mechanism signing timestamp, paying, scene is the more commonly used, so makes bar code have ageing
And prevent from distorting.But innovation here, is only by 6 numerals, " the time-division day moon " to be carried out coded representation, decreases
The figure place of bar code;
B) devise a set of reversible Obfuscating Algorithms, reach certain aliasing effect;
C) in the ciphering process of bar code, use application key, reach the effect of application signature;Use holder's mobile phone
Number, i.e. utilizes binding relationship between phone number and certificate number, reaches the effect of user's signature.
Although the foregoing describing the detailed description of the invention of the present invention, but those familiar with the art should managing
Solving, our described specific embodiment is merely exemplary rather than for the restriction to the scope of the present invention, is familiar with this
The technical staff in field, in the equivalent modification made according to the spirit of the present invention and change, should be contained the present invention's
In scope of the claimed protection.
Claims (4)
1. the coded method of a bar code of paying the bill, it is characterised in that: comprise the steps:
Step 1, bar code information include timestamp, pay number and type of payment, and described timestamp represents by least 6 figure places,
Front 3 the N days represented among a year, rear 3 the M minutes represented among a day;By described timestamp, described payment number
And the data of described type of payment are combined and form an original string code;
Step 2, using the phone number of the holder of described payment number as encryption string code, described original string code is added
Close, obtain a new string code;
Step 3, described new string code is added by turn with the Applied Digital key of identical figure place, the not-carry more than 10,
Obtain last string number;
Step 4, according to Obfuscating Algorithms, the string number that this is last is encrypted again after, obtain final bar code data;
Step 5, by described bar code data by bar code generating algorithm generate bar code image.
The coded method of a kind of bar code of paying the bill the most according to claim 1, it is characterised in that: described in described step 1
Timestamp represents by least 6 figure places, front 3 the N days represented among a year, rear 3 the M minutes represented among a day, tool
Body is:
The value of M is 0≤M≤1440, if 0≤M < 720, the then actual natural law of the numeric representation of N, the numeric representation of M is actual to divide
Clock number;If 720≤M≤1440, then the actual natural law of N adds 400 and represents, the actual the number of minutes of M subtracts 720 and represents.
The coded method of a kind of bar code of paying the bill the most according to claim 1, it is characterised in that: described step 2 particularly as follows:
If described timestamp is 6 figure places, then first 6 of described phone number are added by turn with the numerical value of described timestamp, super
Cross the not-carry of 10, draw one 6 results;Then latter 6 of described phone number are added by turn with these 6 results, exceed
The not-carry of 10, draws another 6 results;After the numerical value of these 6 up-to-date results Yu described timestamp is replaced, obtain
One new string code.
The coded method of a kind of bar code of paying the bill the most according to claim 1, it is characterised in that: described step 4 particularly as follows:
In described last string number, the 1st is used for determining and obscures position, is from left to right indexed according to the value of the 1st,
The numerical value of index is from left to right to be followed successively by 0 to 17, and the value keeping the 1st is constant with the value obscuring position, and other value all adds
On obscure the value of position, the not-carry more than 10, obtain final bar code data.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610464286.8A CN106127275B (en) | 2016-06-23 | 2016-06-23 | A kind of coding method for bar code of paying the bill |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610464286.8A CN106127275B (en) | 2016-06-23 | 2016-06-23 | A kind of coding method for bar code of paying the bill |
Publications (2)
Publication Number | Publication Date |
---|---|
CN106127275A true CN106127275A (en) | 2016-11-16 |
CN106127275B CN106127275B (en) | 2019-01-15 |
Family
ID=57269690
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610464286.8A Active CN106127275B (en) | 2016-06-23 | 2016-06-23 | A kind of coding method for bar code of paying the bill |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106127275B (en) |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111400779A (en) * | 2020-01-07 | 2020-07-10 | 李蕴光 | High-dimensional data encryption method and system |
CN112016948A (en) * | 2019-05-31 | 2020-12-01 | 口碑(上海)信息技术有限公司 | Electronic ticket code generation method and device, storage medium and electronic device |
CN112784943A (en) * | 2021-01-27 | 2021-05-11 | 深圳技术大学 | Two-dimensional code encryption method, system, equipment and storage medium |
CN114219055A (en) * | 2021-12-14 | 2022-03-22 | 平安壹钱包电子商务有限公司 | Bar code generation method, bar code verification method and payment system |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102118710A (en) * | 2011-03-08 | 2011-07-06 | 上海红松信息技术有限公司 | System and method for transmitting data between mobile terminals |
CN102243739A (en) * | 2011-07-04 | 2011-11-16 | 中国建设银行股份有限公司 | Mobile-phone bank payment method, mobile-phone bank payment system and mobile-phone bank client based on two-dimension code |
KR20120025708A (en) * | 2010-09-08 | 2012-03-16 | 주식회사 비즈모델라인 | Method and system for providing code-image for integrated demand |
CN102842081A (en) * | 2011-06-23 | 2012-12-26 | 上海易悠通信息科技有限公司 | Method for generating two-dimensional code and implementing mobile payment by mobile phone |
CN103269269A (en) * | 2013-05-08 | 2013-08-28 | 吴伟 | File encryption transmission method based on two-dimensional bar code technology |
CN103714458A (en) * | 2013-12-20 | 2014-04-09 | 江苏大学 | Two-dimension code-based mobile terminal transaction encryption method |
-
2016
- 2016-06-23 CN CN201610464286.8A patent/CN106127275B/en active Active
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR20120025708A (en) * | 2010-09-08 | 2012-03-16 | 주식회사 비즈모델라인 | Method and system for providing code-image for integrated demand |
CN102118710A (en) * | 2011-03-08 | 2011-07-06 | 上海红松信息技术有限公司 | System and method for transmitting data between mobile terminals |
CN102842081A (en) * | 2011-06-23 | 2012-12-26 | 上海易悠通信息科技有限公司 | Method for generating two-dimensional code and implementing mobile payment by mobile phone |
CN102243739A (en) * | 2011-07-04 | 2011-11-16 | 中国建设银行股份有限公司 | Mobile-phone bank payment method, mobile-phone bank payment system and mobile-phone bank client based on two-dimension code |
CN103269269A (en) * | 2013-05-08 | 2013-08-28 | 吴伟 | File encryption transmission method based on two-dimensional bar code technology |
CN103714458A (en) * | 2013-12-20 | 2014-04-09 | 江苏大学 | Two-dimension code-based mobile terminal transaction encryption method |
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112016948A (en) * | 2019-05-31 | 2020-12-01 | 口碑(上海)信息技术有限公司 | Electronic ticket code generation method and device, storage medium and electronic device |
CN112016948B (en) * | 2019-05-31 | 2024-01-23 | 口碑(上海)信息技术有限公司 | Method and device for generating electronic coupon code, storage medium and electronic device |
CN111400779A (en) * | 2020-01-07 | 2020-07-10 | 李蕴光 | High-dimensional data encryption method and system |
CN112784943A (en) * | 2021-01-27 | 2021-05-11 | 深圳技术大学 | Two-dimensional code encryption method, system, equipment and storage medium |
CN114219055A (en) * | 2021-12-14 | 2022-03-22 | 平安壹钱包电子商务有限公司 | Bar code generation method, bar code verification method and payment system |
CN114219055B (en) * | 2021-12-14 | 2024-04-05 | 平安壹钱包电子商务有限公司 | Bar code generation method, bar code verification method and payment system |
Also Published As
Publication number | Publication date |
---|---|
CN106127275B (en) | 2019-01-15 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US11282139B1 (en) | Systems, methods, and program products for verifying digital assets held in a custodial digital asset wallet | |
JP5931217B2 (en) | Settlement method using disposable card information | |
US6539364B2 (en) | Electronic cash implementing method and equipment using user signature and recording medium recorded thereon a program for the method | |
CN107077670B (en) | Method and apparatus for transmitting and processing transaction message, computer readable storage medium | |
CN108241979B (en) | Multi-account book transfer method based on block chain, electronic device and readable storage medium | |
CN101576983A (en) | Electronic payment method and system based on mobile terminal | |
CN108090761A (en) | Block chain token method of payment based on credible two-dimension code | |
CN106127275A (en) | A kind of coded method of bar code of paying the bill | |
CN108335106A (en) | The more account books of Zero Knowledge based on block chain exchange transfer account method, device and storage medium | |
US20160027017A1 (en) | Method and system for using dynamic cvv in qr code payments | |
US20080249948A1 (en) | Financial information input method using symmetrical key security algorithm and commercial transaction system for mobile communications | |
US20050091152A1 (en) | Method and System for Approving Card Transactions | |
EP2933772A1 (en) | Method for generating one-time card number | |
US20170250810A1 (en) | Dynamic multiple-application systematic framework for integrated circuit card and information processing methods based on the framework | |
US7222108B2 (en) | Electronic cash implementing method and equipment using user signature and recording medium recorded thereon a program for the method | |
CN103870957A (en) | Transaction system applying virtual account balance to entity shopping, and method thereof | |
CN104881777A (en) | Payment method based on mobile terminal | |
JP2002140631A (en) | Electronic commercial transaction system | |
CN104200365A (en) | Writing and paying method for electronic check | |
CN102647410A (en) | Information safe system and method based on light sensation identification | |
JP2004102883A (en) | Cybermoney settlement system, communication terminal, and server device | |
CN105631656A (en) | Financial card payment and settlement method under online card consumption mode | |
CN105303703A (en) | Fingerprint payment method based on application of charging pile | |
JP2008269180A (en) | Settlement processing system, purchase history management apparatus, purchase history management method, and program | |
KR101675293B1 (en) | Online and offline payment system using Real Time Variable barcode and Temporary Login Information |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant | ||
CP01 | Change in the name or title of a patent holder |
Address after: Wufeng Street software Avenue Gulou District of Fuzhou city in Fujian province 350000 No. 89 Building No. 12 Patentee after: China Electric fufu Mdt InfoTech Ltd Address before: Wufeng Street software Avenue Gulou District of Fuzhou city in Fujian province 350000 No. 89 Building No. 12 Patentee before: Fujian Fushitong Information Software Co.,Ltd. |
|
CP01 | Change in the name or title of a patent holder |