TWI547880B - A special two-dimensional code corresponding to the information recorded in the red envelope and a method of generating the same - Google Patents
A special two-dimensional code corresponding to the information recorded in the red envelope and a method of generating the same Download PDFInfo
- Publication number
- TWI547880B TWI547880B TW104133429A TW104133429A TWI547880B TW I547880 B TWI547880 B TW I547880B TW 104133429 A TW104133429 A TW 104133429A TW 104133429 A TW104133429 A TW 104133429A TW I547880 B TWI547880 B TW I547880B
- Authority
- TW
- Taiwan
- Prior art keywords
- encryption
- dimensional code
- red envelope
- information
- generating
- Prior art date
Links
Landscapes
- Mobile Radio Communication Systems (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
- Storage Device Security (AREA)
Description
本發明涉及二維碼領域,尤其是一種與紅包中所記錄資訊相對應的專用二維碼及其生成方法。The present invention relates to the field of two-dimensional codes, and more particularly to a special two-dimensional code corresponding to information recorded in a red envelope and a method for generating the same.
目前,現有的二維碼生成方式均是根據在二維碼生成介面中輸入的資訊以生成相對應的二維碼。由於在生成過程中沒具備加密功能,因此,所生成的二維碼可以被很多人所讀取、識別。At present, the existing two-dimensional code generation method is based on the information input in the two-dimensional code generation interface to generate a corresponding two-dimensional code. Since the encryption function is not available during the generation process, the generated two-dimensional code can be read and recognized by many people.
然而,由於二維碼中包含的資訊帶有一定的隱秘性,如果不進行加密則會被其他人得知隱秘資訊,不適合被用於在紅包上使用。However, because the information contained in the QR code has a certain degree of concealment, if it is not encrypted, it will be known to others by secret information, and is not suitable for use on the red envelope.
基於上述問題,急需一種能夠對所輸入的紅包資訊進行加密之與紅包中所記錄資訊相對應的專用二維碼及生成方法。Based on the above problems, there is an urgent need for a special two-dimensional code and a generation method corresponding to the information recorded in the red envelope that can encrypt the input red envelope information.
針對上述問題中存在的不足之處,本發明提供一種通過當前系統時間調用與其相應的加密方式,從而對在二維碼生成介面中輸入的紅包資訊進行加密之與紅包中所記錄資訊相對應的專用二維碼及其生成方法。In view of the deficiencies in the above problems, the present invention provides an encryption method corresponding to the information recorded in the two-dimensional code generation interface by encrypting the red envelope information input in the two-dimensional code generation interface by using the current system time to call the corresponding encryption method. Dedicated two-dimensional code and its generation method.
為實現上述目的,本發明提供一種與紅包中所記錄資訊相對應的專用二維碼,該二維碼被印製在紅包的內側表面,二維碼在生成過程中包含有能夠被紅包接收人查看、並且經過加密的資訊。In order to achieve the above object, the present invention provides a special two-dimensional code corresponding to the information recorded in the red envelope, the two-dimensional code is printed on the inner side surface of the red envelope, and the two-dimensional code includes a red envelope receiver in the generation process. View and encrypted information.
上述的一種與紅包中所記錄資訊相對應的專用二維碼,其中,被紅包接收人查看、並且經過加密的資訊包括對紅包接收人的祝福資訊與紅包中所放金額的資訊。The above-mentioned special two-dimensional code corresponding to the information recorded in the red envelope, wherein the information viewed by the red envelope recipient and encrypted includes information about the blessing information of the red envelope recipient and the amount of money placed in the red envelope.
本發明還提供一種生成與紅包中所記錄資訊相對應的專用二維碼的方法,包括以下步驟: S1: 在二維碼生成介面的資訊輸入介面中輸入希望紅包接收人查看的資訊,並對所輸入的資訊進行轉換,以得到與其相對應的第一序號; S2:根據植入有二維碼生成介面的作業系統的當前顯示時間,調用一種演算法對第一序號進行至少一次加密操作,以生成第二序號; S3:將第一序號與第二序號進行排列,以形成序號組;以及 S4:將序號組輸入二維碼生成介面中,以生成與序號組相對應的二維碼。The present invention also provides a method for generating a dedicated two-dimensional code corresponding to the information recorded in the red envelope, comprising the following steps: S1: inputting information that the red envelope recipient wants to view in the information input interface of the two-dimensional code generation interface, and The input information is converted to obtain a first serial number corresponding thereto; S2: according to the current display time of the operating system implanted with the two-dimensional code generating interface, an algorithm is invoked to perform at least one encryption operation on the first serial number, To generate a second serial number; S3: arranging the first serial number and the second serial number to form a sequence number group; and S4: inputting the sequence number group into the two-dimensional code generating interface to generate a two-dimensional code corresponding to the sequence number group.
上述生成與紅包中所記錄資訊相對應的專用二維碼的方法,其中,在步驟S1中,所輸入的資訊包括對紅包接收人的祝福資訊與紅包中所放金額的資訊。The method for generating a special two-dimensional code corresponding to the information recorded in the red envelope, wherein, in step S1, the input information includes information about the blessing information of the red envelope recipient and the amount of money placed in the red envelope.
上述生成與紅包中所記錄資訊相對應的專用二維碼的方法,其中,在步驟S2中,包括以下步驟: S21:根據植入有二維碼生成介面的作業系統的當前顯示時間確定時間區間段序號;以及 S22: 根據時間區間段序號以選定與其相對應的加密方式對步驟S1中所得到的第一序號進行第一次加密操作。The method for generating a dedicated two-dimensional code corresponding to the information recorded in the red envelope, wherein, in step S2, the following steps are included: S21: determining a time interval according to a current display time of the operating system in which the two-dimensional code generating interface is implanted a segment number; and S22: performing a first encryption operation on the first sequence number obtained in step S1 according to the time interval segment number to select an encryption method corresponding thereto.
上述生成與紅包中所記錄資訊相對應的專用二維碼的方法,其中,在步驟S22實施之後,還包括步驟S23: 通過加密順序指標調用一種加密方式,以對完成第一次加密操作的第一序號進行第二次加密操作,以形成第二序號。The method for generating a dedicated two-dimensional code corresponding to the information recorded in the red envelope, wherein after the step S22 is performed, the method further includes the step S23: calling an encryption method by using the encryption sequence indicator to complete the first encryption operation A serial number performs a second encryption operation to form a second serial number.
上述生成與紅包中所記錄資訊相對應的專用二維碼的方法,其中,在步驟S23中,加密順序指標在隨機調用並選取到第二次加密方式後,判斷第二次加密方式與第一次加密方式是否為相同的加密方式; 若判定第二次加密方式與第一次加密方式為相同的加密方式,則放棄此次隨機調用與選取操作,將加密順序指標指向第一次加密方式,並以此為起點,向前或向後移動一個指標位置,並將與當前指標位置相對應的加密方式作為第二次加密操作的加密方式。The method for generating a special two-dimensional code corresponding to the information recorded in the red envelope, wherein, in step S23, the encryption sequence indicator is randomly called and selected to the second encryption mode, and then determining the second encryption mode and the first Whether the secondary encryption mode is the same encryption mode; if it is determined that the second encryption mode is the same encryption mode as the first encryption mode, the random call and the selection operation are abandoned, and the encryption sequence indicator is directed to the first encryption mode. Taking this as a starting point, moving an indicator position forward or backward, and using the encryption method corresponding to the current indicator position as the encryption method of the second encryption operation.
上述生成與紅包中所記錄資訊相對應的專用二維碼的方法,其中,加密方式包括DES加密方式、3DES加密方式、TEA加密方式、XTEA加密方式、RC4加密方式、PANAMA加密方式、Twofish加密方式、CAST-128加密方式、CAST-256加密方式、MD5加密方式與enigma加密。The method for generating a special two-dimensional code corresponding to the information recorded in the red envelope, wherein the encryption method includes DES encryption mode, 3DES encryption mode, TEA encryption mode, XTEA encryption mode, RC4 encryption mode, PANAMA encryption mode, and Twofish encryption mode. , CAST-128 encryption, CAST-256 encryption, MD5 encryption and enigma encryption.
上述生成與紅包中所記錄資訊相對應的專用二維碼的方法,其中,在步驟S2實施前還需要進行如下操作步驟: 將00~59秒劃分為11個時間區間段,並將每個時間區間段分別與一種加密方式相綁定,以形成11個一次加密區間段。The method for generating a dedicated two-dimensional code corresponding to the information recorded in the red envelope, wherein the following operations are performed before the step S2 is performed: dividing the 00 to 59 seconds into 11 time interval segments, and each time The interval segments are respectively bound to an encryption method to form 11 one-time encryption interval segments.
上述生成與紅包中所記錄資訊相對應的專用二維碼的方法,其中,在步驟S3中,將第一序號與第二序號按照前或後的順序進行排列,以形成序號組。In the above method for generating a dedicated two-dimensional code corresponding to the information recorded in the red envelope, in step S3, the first serial number and the second serial number are arranged in the order of before or after to form a sequence number group.
與現有技術相比,本發明具有以下優點: 本發明通過當前系統時間調用與其相應的加密方式,從而對在二維碼生成介面中輸入的紅包資訊進行加密; 另外,還可以根據需要對在二維碼生成介面中輸入的資訊進行兩次不同加密方式的加密操作,可提高所生成的二維碼的加密效果; 另外,在進行第二次加密操作之前,由於還具備加密方式比對操作,因此,可避免由於兩次加密操作均是採用相同的加密方式而使加密效果降低的缺點。Compared with the prior art, the present invention has the following advantages: The present invention encrypts the red envelope information input in the two-dimensional code generating interface by calling the corresponding encryption mode by the current system time; The information input in the dimension generation interface is encrypted by two different encryption methods to improve the encryption effect of the generated two-dimensional code. In addition, before the second encryption operation, since the encryption method is also used, Therefore, it is possible to avoid the disadvantage that the encryption effect is reduced by using the same encryption method for both encryption operations.
本發明提供一種與紅包中所記錄資訊相對應的專用二維碼,該二維碼被印製在紅包的內側表面,二維碼在生成過程中包含有能夠被紅包接收人查看、並且經過加密的資訊。The invention provides a special two-dimensional code corresponding to the information recorded in the red envelope, the two-dimensional code is printed on the inner side surface of the red envelope, and the two-dimensional code includes the ability to be viewed by the red envelope receiver and encrypted during the generation process. Information.
其中,被紅包接收人查看、並且經過加密的資訊包括對紅包接收人的祝福資訊、與紅包中所放金額的資訊。Among them, the information that is viewed by the red envelope recipient and encrypted includes information about the blessing information of the red envelope recipient and the amount of money placed in the red envelope.
本發明還提供一種生成與紅包中所記錄資訊相對應的專用二維碼的方法,包括以下步驟: S1:在二維碼生成介面的資訊輸入介面中輸入資訊,並對所輸入的資訊進行轉換,以得到與其相對應的第一序號。 其中,在步驟S1中,所輸入的資訊包括對紅包接收人的祝福資訊、與紅包中所放金額的資訊。 S2: 根據植入有二維碼生成介面的作業系統的當前顯示時間,調用一種演算法對第一序號進行至少一次加密操作,以生成第二序號。The invention also provides a method for generating a special two-dimensional code corresponding to the information recorded in the red envelope, comprising the following steps: S1: inputting information in the information input interface of the two-dimensional code generating interface, and converting the input information To get the first serial number corresponding to it. In the step S1, the input information includes the blessing information of the red envelope recipient and the information of the amount placed in the red envelope. S2: According to the current display time of the operating system with the two-dimensional code generating interface, an algorithm is invoked to perform at least one encryption operation on the first serial number to generate a second serial number.
其中,在步驟S2中,包括以下步驟: S21:根據植入有二維碼生成介面的作業系統的當前顯示時間確定時間區間段序號; S22:根據時間區間段序號以選定與其相對應的加密方式對步驟S1中得到的第一序號進行第一次加密操作。Wherein, in step S2, the following steps are included: S21: determining a time interval segment number according to a current display time of the operating system in which the two-dimensional code generating interface is implanted; S22: selecting a corresponding encryption method according to the time interval segment number The first encryption operation is performed on the first serial number obtained in step S1.
另外,若還需要對完成第一次加密操作的第一序號進行第二次加密操作,則在步驟S22實施之後,還包括步驟S23: 通過加密順序指標調用一種加密方式,以對完成第一次加密操作的第一序號進行第二次加密操作,以形成第二序號。In addition, if it is necessary to perform the second encryption operation on the first sequence number of the first encryption operation, after the step S22 is performed, the method further includes the step S23: calling an encryption mode by using the encryption sequence indicator to complete the first time. The first sequence number of the encryption operation performs a second encryption operation to form a second sequence number.
其中,在步驟S23中,加密順序指標在隨機調用並選取到第二次加密操作的加密方式後,判斷第二次加密操作的加密方式與第一次加密操作的加密方式是否為相同的加密方式; 若判定第二次加密操作的加密方式與第一次加密操作的加密方式為相同的加密方式,則放棄此次隨機調用與選取操作,將加密順序指標指向第一次加密操作的加密方式,並以此為起點,向前或向後移動一個指標位置,並將與當前指標位置相對應的加密方式作為第二次加密操作的加密方式。In step S23, after the encryption order indicator is randomly invoked and selected to the encryption mode of the second encryption operation, it is determined whether the encryption mode of the second encryption operation and the encryption mode of the first encryption operation are the same encryption mode. If it is determined that the encryption method of the second encryption operation is the same as the encryption method of the first encryption operation, the random call and the selection operation are abandoned, and the encryption order indicator is pointed to the encryption mode of the first encryption operation. Taking this as a starting point, moving an indicator position forward or backward, and using the encryption method corresponding to the current indicator position as the encryption method of the second encryption operation.
在步驟S22與S23中,加密方式包括DES加密方式、3DES加密方式、TEA加密方式、XTEA加密方式、RC4加密方式、PANAMA加密方式、Twofish加密方式、CAST-128加密方式、CAST-256加密方式、MD5加密方式與enigma加密方式。In steps S22 and S23, the encryption method includes DES encryption mode, 3DES encryption mode, TEA encryption mode, XTEA encryption mode, RC4 encryption mode, PANAMA encryption mode, Twofish encryption mode, CAST-128 encryption mode, CAST-256 encryption mode, MD5 encryption and enigma encryption.
另外,在步驟S2實施前還需要進行如下操作步驟: 將00~59秒劃分為11個時間區間段,並將每個時間區間段分別與一種加密方式相綁定,以形成11個一次加密區間段。In addition, before the implementation of step S2, the following operation steps are also required: dividing 00~59 seconds into 11 time interval segments, and binding each time interval segment to an encryption mode to form 11 one-time encryption intervals. segment.
例如:第1加密區間段與DES加密方式相綁定、第2加密區間段與3DES加密方式相綁定、第3加密區間段與TEA加密方式相綁定、第4加密區間段與XTEA加密方式相綁定、第5加密區間段與RC4加密方式相綁定、第6加密區間段與PANAMA加密方式相綁定、第7加密區間段與Twofish加密方式相綁定、第8加密區間段與CAST-128加密方式相綁定、第9加密區間段與CAST-256加密方式相綁定、第10加密區間段與MD5加密方式相綁定、第11加密區間段與enigma加密方式相綁定。For example, the first encryption interval segment is bound to the DES encryption method, the second encryption interval segment is bound to the 3DES encryption method, the third encryption interval segment is bound to the TEA encryption method, the fourth encryption interval segment is combined with the XTEA encryption method. Binding, the 5th encryption interval segment is bound to the RC4 encryption method, the 6th encryption interval segment is bound to the PANAMA encryption method, the 7th encryption interval segment is bound to the Twofish encryption method, the 8th encryption interval segment is combined with the CAST The -128 encryption method is bound, the ninth encryption interval segment is bound to the CAST-256 encryption method, the tenth encryption interval segment is bound to the MD5 encryption method, and the eleventh encryption interval segment is bound to the enigma encryption method.
S3:將第一序號與第二序號進行排列,以形成序號組。S3: Arranging the first serial number and the second serial number to form a sequence number group.
在步驟S3中,將第一序號與第二序號按照前或後的順序進行排列,以形成序號組。In step S3, the first serial number and the second serial number are arranged in the order of before or after to form a sequence number group.
S4:將序號組輸入二維碼生成介面中,以生成與序號組相對應的二維碼。S4: Input the sequence number group into the two-dimensional code generation interface to generate a two-dimensional code corresponding to the sequence number group.
其中,二維碼生成介面將所輸入序號組生成與序號組相對應的二維碼的方式可採用現有二維碼最終的生成方式。The manner in which the two-dimensional code generating interface generates the two-dimensional code corresponding to the sequence number group by the input sequence number group may adopt a final generation manner of the existing two-dimensional code.
惟以上所述者,僅為本發明的較佳實施例而已,舉凡熟悉此項技藝的專業人士。在瞭解本發明的技術手段之後,自然能依據實際的需要,在本發明的教導下加以變化。因此凡依本發明申請專利範圍所作的同等變化與修飾,均應仍屬本發明專利涵蓋的範圍內。However, the above description is only a preferred embodiment of the present invention, and those skilled in the art will be familiar with the art. After understanding the technical means of the present invention, it is naturally possible to vary according to the actual needs and teachings of the present invention. Therefore, equivalent changes and modifications made by the scope of the present invention should remain within the scope of the present invention.
無。no.
Claims (5)
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510078801.4A CN104680219A (en) | 2015-02-13 | 2015-02-13 | Special two-dimensional code corresponding to information recorded in red packet and generating method for special two-dimensional code |
Publications (2)
Publication Number | Publication Date |
---|---|
TW201629854A TW201629854A (en) | 2016-08-16 |
TWI547880B true TWI547880B (en) | 2016-09-01 |
Family
ID=53315234
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
TW104133429A TWI547880B (en) | 2015-02-13 | 2015-10-12 | A special two-dimensional code corresponding to the information recorded in the red envelope and a method of generating the same |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN104680219A (en) |
TW (1) | TWI547880B (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105187527A (en) * | 2015-09-01 | 2015-12-23 | 立德高科(北京)数码科技有限责任公司 | Customized two-dimension code and generation method and directionally pushing and reading method thereof |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
TW200821958A (en) * | 2006-11-01 | 2008-05-16 | Chunghwa Telecom Co Ltd | Two dimensional barcode mobile stocktaking system |
US20080301464A1 (en) * | 2007-05-31 | 2008-12-04 | Red Hat, Inc. | Two-dimensional bar code for ID card |
CN102546174A (en) * | 2011-12-20 | 2012-07-04 | 贾松仁 | Two-dimensional code encryption/decryption method and anti-counterfeiting method |
TWM445731U (en) * | 2012-06-28 | 2013-01-21 | Thank You My Friends Inc | Commodity purchase platform device exchanging through mobile terminals |
CN103401679A (en) * | 2013-07-18 | 2013-11-20 | 湖北楚天传媒网络科技有限责任公司 | Method for encrypting and decoding two-dimensional codes |
Family Cites Families (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101404056B (en) * | 2008-10-29 | 2011-03-16 | 金蝶软件(中国)有限公司 | Software protection method, apparatus and equipment |
CN103123709A (en) * | 2012-11-07 | 2013-05-29 | 广州众码汇信息科技有限公司 | Bar-code-based information verification system |
CN103198344B (en) * | 2013-03-01 | 2015-09-09 | 重庆市远大印务有限公司 | Tax control secure two-dimensional code coding, decoding processing method |
CN203767276U (en) * | 2014-04-16 | 2014-08-13 | 史迅 | Wine bottle cover security and customer information collection system |
CN104156862A (en) * | 2014-08-07 | 2014-11-19 | 四川途谷信息技术有限公司 | Wechat-platform-based two-dimensional code anti-fake and anti-channel conflict inquiry system and method |
CN104299140A (en) * | 2014-09-12 | 2015-01-21 | 广州市坚真信息科技有限公司 | Two-dimensional code anti-counterfeiting traceability system and method based on e-commerce |
-
2015
- 2015-02-13 CN CN201510078801.4A patent/CN104680219A/en active Pending
- 2015-10-12 TW TW104133429A patent/TWI547880B/en active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
TW200821958A (en) * | 2006-11-01 | 2008-05-16 | Chunghwa Telecom Co Ltd | Two dimensional barcode mobile stocktaking system |
US20080301464A1 (en) * | 2007-05-31 | 2008-12-04 | Red Hat, Inc. | Two-dimensional bar code for ID card |
CN102546174A (en) * | 2011-12-20 | 2012-07-04 | 贾松仁 | Two-dimensional code encryption/decryption method and anti-counterfeiting method |
TWM445731U (en) * | 2012-06-28 | 2013-01-21 | Thank You My Friends Inc | Commodity purchase platform device exchanging through mobile terminals |
CN103401679A (en) * | 2013-07-18 | 2013-11-20 | 湖北楚天传媒网络科技有限责任公司 | Method for encrypting and decoding two-dimensional codes |
Non-Patent Citations (1)
Title |
---|
HSIAO-YI Yen," MyBigDay-接待 (結婚紅包禮金)",Apple iTunes, 2015/01/23 https://itunes.apple.com/tw/app/mybigday-jie-dai-jie-hun-hong/id680990362?l=zh&mt=8 說明書第1至2頁 * |
Also Published As
Publication number | Publication date |
---|---|
TW201629854A (en) | 2016-08-16 |
CN104680219A (en) | 2015-06-03 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
MX366491B (en) | Block cryptographic method for encrypting/decrypting messages and cryptographic devices for implementing this method. | |
JP2008545163A5 (en) | ||
CN104636783B (en) | Based on present system time with generate carry Net silver information Quick Response Code method | |
RU2016104606A (en) | DEVICE AND METHOD FOR KEY AGREEMENT | |
EP2544400A3 (en) | PUF based Cryptographic communication system and cryptographic communication method | |
WO2015030903A3 (en) | Image based key derivation function | |
CN105005802B (en) | Based on present system time to generate the method for Quick Response Code | |
CN106789053A (en) | Random ciphertext generation method and system, decryption method and system | |
CN104616042A (en) | Special two-dimensional code corresponding to gift detail and generation mode of special two-dimensional code | |
CN104463019A (en) | Method for encrypting and decrypting electronic documents | |
MY190879A (en) | Method and apparatus for processing multimedia file | |
PH12018500929A1 (en) | Method and system for generating ciphertext by pin entry device | |
TWI547880B (en) | A special two-dimensional code corresponding to the information recorded in the red envelope and a method of generating the same | |
CN103500294A (en) | Document encrypting and decrypting method and device | |
CN104954362A (en) | Serial number encryption-decryption method and device | |
JP2016525836A5 (en) | ||
TWI557647B (en) | Two - dimensional code, generation method and recognition method with two - dimensional software installation information | |
KR102045843B1 (en) | Method and apparatus for block encryption algorithm | |
CN104158570A (en) | Method for rapidly transmitting information through Bluetooth | |
CN104657764A (en) | Special two-dimensional code corresponding to ticket information and generation method of special two-dimensional code | |
CN103795524A (en) | Dynamic short message encryption and decryption method based on 3DES | |
CN104598952A (en) | Special two-dimensional code corresponding to recorded letter content and generation method thereof | |
CN104616043A (en) | Special two-dimensional code corresponding to information recorded in postcard and generation method of two-dimensional code | |
CN103491384A (en) | Encrypting method and device of video and decrypting method and device of video | |
CN104657765A (en) | Two-dimension code as well as two-dimension code generating method and generating device |