CN108564367A - A kind of encrypted algorithm of payment - Google Patents

A kind of encrypted algorithm of payment Download PDF

Info

Publication number
CN108564367A
CN108564367A CN201810320616.5A CN201810320616A CN108564367A CN 108564367 A CN108564367 A CN 108564367A CN 201810320616 A CN201810320616 A CN 201810320616A CN 108564367 A CN108564367 A CN 108564367A
Authority
CN
China
Prior art keywords
payment
key
pixels
key carrier
pixel
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
Application number
CN201810320616.5A
Other languages
Chinese (zh)
Other versions
CN108564367B (en
Inventor
郑鸿
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Feihu Infinite Technology Co ltd
Original Assignee
Individual
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 Individual filed Critical Individual
Priority to CN201810320616.5A priority Critical patent/CN108564367B/en
Publication of CN108564367A publication Critical patent/CN108564367A/en
Application granted granted Critical
Publication of CN108564367B publication Critical patent/CN108564367B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06QINFORMATION 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/00Payment architectures, schemes or protocols
    • G06Q20/38Payment protocols; Details thereof
    • G06Q20/382Payment protocols; Details thereof insuring higher security of transaction
    • G06Q20/3829Payment protocols; Details thereof insuring higher security of transaction involving key management

Landscapes

  • Business, Economics & Management (AREA)
  • Engineering & Computer Science (AREA)
  • Accounting & Taxation (AREA)
  • Computer Security & Cryptography (AREA)
  • Finance (AREA)
  • Strategic Management (AREA)
  • Physics & Mathematics (AREA)
  • General Business, Economics & Management (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Financial Or Insurance-Related Operations Such As Payment And Settlement (AREA)
  • Facsimile Transmission Control (AREA)

Abstract

A kind of encrypted algorithm of payment, including payment terminals, verifying end and service for checking credentials end, user upload image file as cipher key carrier to payment terminals and service for checking credentials end;The cryptographic Hash of image file is taken to be inserted into encipheror, as one section of code of encipheror, dynamic digital is generated by code at random according to time seed, then converted program changes into planar pixel, key pixel is generated in cipher key carrier file pixel coverage and is superimposed in cipher key carrier;When user pays, service for checking credentials end reads payment terminals by verifying end and shows content, obtains payment result of whether letting pass.Cipher key carrier of the present invention can customize, and have stronger flexibility;Payment terminals in verification need not networking or upload and under pass any information, key pixel is obtained in the content that the verified end in service for checking credentials end is obtained from payment terminals, realizes that payment is let pass after verified, there is extremely strong safety;Payment terminals volume can be made very small, and stand-by time is long, have splendid convenience.

Description

一种支付加密的算法An Algorithm for Payment Encryption

技术领域technical field

本发明涉及一种算法,具体涉及一种支付加密的算法,属于IPC分类第G06、G09技术领域。The invention relates to an algorithm, in particular to a payment encryption algorithm, and belongs to the technical fields of IPC classification G06 and G09.

背景技术Background technique

支付系统是由提供支付清算服务的中介机构和实现支付指令传送及资金清算的专业技术手段共同组成,用以实现债权债务清偿及资金转移的一种金融安排,有时也称为清算系统。The payment system is composed of an intermediary agency that provides payment and settlement services and professional technical means to realize payment instruction transmission and fund settlement. It is a financial arrangement to realize creditor's rights and debts settlement and fund transfer. It is sometimes called a settlement system.

目前,在进行支付时,支付系统的支付载体有磁条卡,移动设备(包括扫条形码、二维码以及NFC近场支付)。磁条卡有被复制的可能,因此现在升级为芯片卡。扫码时二维码有被偷换的可能,因此扫码趋向于由移动设备提供动态变化的条形码或二维码被扫比较安全。而近场支付使用起来比扫码要麻烦一点,且推广范围有限。At present, when making payment, the payment carriers of the payment system include magnetic stripe cards and mobile devices (including scanning barcodes, QR codes and NFC near-field payment). Magnetic stripe cards have the potential to be duplicated so are now being upgraded to chip cards. The QR code may be stolen when scanning the code, so the mobile device tends to provide a dynamically changing bar code or QR code to be scanned, which is safer. The use of near-field payment is a little more troublesome than scanning codes, and the scope of promotion is limited.

另外,刷卡需要携带银行卡,扫码以及近场支付均需要提供及携带移动设备,对于当今倡导轻便出行的年青人来讲,携带移动设备更方便,但移动设备又受限于电池及网络,所以就目前来讲,还完全没有一种更加方便的支付载体且能脱离网络单独运行以及兼具安全性的系统或方法来实现真正意义上的便捷。In addition, bank cards are required for card swiping, and mobile devices are required for scanning codes and near-field payments. For young people who advocate light travel today, it is more convenient to carry mobile devices, but mobile devices are limited by batteries and networks. So at present, there is still no more convenient payment carrier, a system or method that can operate independently of the network and has security to achieve real convenience.

发明内容Contents of the invention

本发明的目的就是为了解决上述问题的不足,而提供了一种支付加密的算法,该算法可脱离网络单独运行,并且还具有安全性和依附载体的选择的便捷性。The purpose of the present invention is to solve the above-mentioned problems and provide a payment encryption algorithm, which can run independently of the network, and also has security and convenience of choosing a carrier.

本发明所要解决问题的技术方案如下:The technical scheme of the problem to be solved by the present invention is as follows:

一种支付加密的算法,其特征在于:An algorithm for payment encryption, characterized in that:

包括支付端、验证端及验证服务端,用户定期或不定期向支付端及验证服务端上传相同属性的图像文件做为密钥载体;Including the payment terminal, the verification terminal and the verification server, the user regularly or irregularly uploads an image file with the same attributes to the payment terminal and the verification server as the key carrier;

取图像文件的哈希值插入支付端及验证服务端的加密程序,做为加密程序运行时的一段代码,并根据时间种子通过整段代码随机生成动态数字,由动态数字经转换程序转成平面二维像素点,基于密钥载体文件像素大小的范围,在范围内生成密钥像素点并叠加于密钥载体上;Take the hash value of the image file and insert it into the encryption program of the payment terminal and verification server, as a piece of code when the encryption program is running, and randomly generate dynamic numbers through the entire code according to the time seed, and convert the dynamic numbers into plane two through the conversion program Dimensional pixels, based on the range of the pixel size of the key carrier file, the key pixels are generated within the range and superimposed on the key carrier;

用户支付时,验证服务端通过验证端读取支付端显示叠加密钥像素点的密钥载体,通过对比密钥像素点的像素位置得出是否放行支付的结果。When the user pays, the verification server reads the key carrier displayed on the payment side through the verification end to display the superimposed key pixels, and compares the pixel positions of the key pixels to obtain the result of whether the payment is allowed.

动态数字经转换程序转成平面二维像素点时,转换程序根据时间种子读取图像文件的哈希值的部分数值做为转换程序的一段代码。When the dynamic numbers are converted into flat two-dimensional pixels by the conversion program, the conversion program reads part of the hash value of the image file according to the time seed as a piece of code for the conversion program.

转换程序在将动态数字转成平面二维像素点时,所基于的密钥载体文件像素大小的范围为图像文件相素点颜色较淡或空白的部分区域。When the conversion program converts dynamic numbers into plane two-dimensional pixels, the pixel size range of the key carrier file based on it is the part of the image file where the pixel color is light or blank.

转换程序在将动态数字转成平面二维像素点时,所生成的平面二维像素点为指定与密钥载体的像素点的区域颜色不同。When the conversion program converts the dynamic number into a plane two-dimensional pixel point, the generated plane two-dimensional pixel point has a different color from the area specified by the pixel point of the key carrier.

本发明的有益效果如下:The beneficial effects of the present invention are as follows:

密钥载体可自定义,具有较强的灵活性;支付端在验证时无须联网或上传及下传任何信息,验证服务端经验证端从支付端获得的内容中获取密钥像素点,经验证后实现支付放行,具有极强的安全性;支付端体积可做得很小,待机时间长,具有极佳的便捷性。The key carrier can be customized and has strong flexibility; the payment terminal does not need to connect to the Internet or upload or download any information during verification, and the verification server obtains key pixels from the content obtained by the payment terminal after verification. Finally, the payment release is realized, which has strong security; the payment terminal can be made small in size, has a long standby time, and has excellent convenience.

附图说明:Description of drawings:

图1是本发明的框架结构示意图;Fig. 1 is a schematic diagram of a frame structure of the present invention;

图2是本发明所述图像文件至密钥像素点的过程示意图。Fig. 2 is a schematic diagram of the process from the image file to the key pixel according to the present invention.

具体实施方式:Detailed ways:

下面结合附图对本发明作进一步详细的阐述。The present invention will be described in further detail below in conjunction with the accompanying drawings.

参阅图1、图2,一种支付加密的算法,包括支付端1、验证端2及验证服务端3,用户4定期或不定期向支付端及验证服务端上传相同属性的图像文件5做为密钥载体6;Referring to Figure 1 and Figure 2, a payment encryption algorithm includes a payment terminal 1, a verification terminal 2 and a verification server 3, and a user 4 regularly or irregularly uploads an image file 5 with the same attributes to the payment terminal and the verification server as key carrier 6;

取图像文件5的哈希值插入支付端1及验证服务端3的加密程序,做为加密程序运行时的一段代码,并根据时间种子通过整段代码随机生成动态数字8,由动态数字8经转换程序转成平面二维像素点,基于密钥载体文件像素大小的范围,在范围内生成密钥像素点7并叠加于密钥载体上;Take the hash value of the image file 5 and insert it into the encryption program of the payment terminal 1 and the verification server 3, as a piece of code when the encryption program is running, and randomly generate a dynamic number 8 through the entire code according to the time seed, and the dynamic number 8 is passed through The conversion program converts it into a plane two-dimensional pixel point, based on the range of the pixel size of the key carrier file, generates the key pixel point 7 within the range and superimposes it on the key carrier;

用户4支付时,验证服务端3通过验证端2读取支付端1显示叠加密钥像素点7的密钥载体,通过对比密钥像素点的像素位置得出是否放行支付的结果。When the user 4 pays, the verification server 3 reads the key carrier displayed on the payment terminal 1 through the verification terminal 2 and displays the superimposed key pixel point 7, and obtains the result of whether the payment is released or not by comparing the pixel position of the key pixel point.

本发明在使用时,时间种子以天所在的日期为单位,这样支付端1与验证服务端3生成的动态数字8可以保持一致性。也就是说,密钥像素点动态变化的周期为1天。出于安全性考虑,对于每笔支付还可以做限额以及每天支付总额做一个限定,这样即便在支付端1丢失或被盗的情况下仍可以将损失降到最小。When the present invention is in use, the time seed is based on the date of the day, so that the dynamic number 8 generated by the payment terminal 1 and the verification server 3 can maintain consistency. That is to say, the period of dynamic change of the key pixel is 1 day. For security reasons, a limit can also be set for each payment and a limit for the total daily payment, so that even if the payment terminal 1 is lost or stolen, the loss can still be minimized.

哈希值在再插入支付端1及验证服务端3的加密程序中时,可选择提取哈希值的部分数字串,该部分数字串的选择可根据图像文件5上传的时间单位以时为时间种子选取哈希值的位数。因此在图像文件5上传支付端1及验证服务端3时需保持在相同以时为单位的时间内。When the hash value is inserted into the encryption program of the payment terminal 1 and the verification server 3, a part of the digital string of the hash value can be selected to be extracted. The selection of this part of the digital string can be based on the time unit uploaded by the image file 5, taking hours as the time The seed picks the number of bits in the hash value. Therefore, when the image file 5 is uploaded to the payment terminal 1 and the verification server 3, it needs to be kept within the same time in unit of time.

基于实施方式的改进,动态数字8经转换程序转成平面二维像素点时,转换程序根据时间种子读取图像文件的哈希值的部分数值做为转换程序的一段代码。Based on the improvement of the embodiment, when the dynamic number 8 is converted into a plane two-dimensional pixel by the conversion program, the conversion program reads part of the hash value of the image file according to the time seed as a piece of code of the conversion program.

进一步,基于实施方式的改进,转换程序在将动态数字8转成平面二维像素点时,所基于的密钥载体文件像素大小的范围为图像文件相素点颜色较淡或空白的部分区域。Further, based on the improvement of the embodiment, when the conversion program converts the dynamic number 8 into a plane two-dimensional pixel, the range of the pixel size of the key carrier file based on it is the part of the image file where the pixel color is light or blank.

这样可以排除转成的平面二维像素点其中某个或某些点位置叠加在图像文件5颜色较深的像素点之上,使得识别出现问题。In this way, it can be ruled out that one or some positions of the converted plane two-dimensional pixel points are superimposed on the darker pixel points of the image file 5, causing problems in recognition.

另外,基于实施方式的改进,转换程序在将动态数字转成平面二维像素点时,所生成的平面二维像素点为指定与密钥载体的像素点的区域颜色不同。In addition, based on the improvement of the embodiment, when the conversion program converts the dynamic number into a plane two-dimensional pixel point, the generated plane two-dimensional pixel point is different from the color of the area designated by the pixel point of the key carrier.

Claims (4)

1.一种支付加密的算法,其特征在于:1. An algorithm for payment encryption, characterized in that: 包括支付端、验证端及验证服务端,用户定期或不定期向支付端及验证服务端上传相同属性的图像文件做为密钥载体;Including the payment terminal, the verification terminal and the verification server, the user regularly or irregularly uploads an image file with the same attributes to the payment terminal and the verification server as the key carrier; 取图像文件的哈希值插入支付端及验证服务端的加密程序,做为加密程序运行时的一段代码,并根据时间种子通过整段代码随机生成动态数字,由动态数字经转换程序转成平面二维像素点,基于密钥载体文件像素大小的范围,在范围内生成密钥像素点并叠加于密钥载体上;Take the hash value of the image file and insert it into the encryption program of the payment terminal and verification server, as a piece of code when the encryption program is running, and randomly generate dynamic numbers through the entire code according to the time seed, and convert the dynamic numbers into plane two through the conversion program Dimensional pixels, based on the range of the pixel size of the key carrier file, the key pixels are generated within the range and superimposed on the key carrier; 用户支付时,验证服务端通过验证端读取支付端显示叠加密钥像素点的密钥载体,通过对比密钥像素点的像素位置得出是否放行支付的结果。When the user pays, the verification server reads the key carrier displayed on the payment side through the verification end to display the superimposed key pixels, and compares the pixel positions of the key pixels to obtain the result of whether the payment is allowed. 2.根据权利要求1所述的一种支付加密的算法,其特征在于:动态数字经转换程序转成平面二维像素点时,转换程序根据时间种子读取图像文件的哈希值的部分数值做为转换程序的一段代码。2. A kind of payment encryption algorithm according to claim 1, characterized in that: when the dynamic number is converted into a plane two-dimensional pixel point by the conversion program, the conversion program reads the partial value of the hash value of the image file according to the time seed A piece of code as a conversion program. 3.根据权利要求1所述的一种支付加密的算法,其特征在于:转换程序在将动态数字转成平面二维像素点时,所基于的密钥载体文件像素大小的范围为图像文件相素点颜色较淡或空白的部分区域。3. A kind of payment encryption algorithm according to claim 1, characterized in that: when the conversion program converts dynamic numbers into plane two-dimensional pixels, the range of the pixel size of the key carrier file based on the image file is A part of the area where the dot color is lighter or blank. 4.根据权利要求1所述的一种支付加密的算法,其特征在于:转换程序在将动态数字转成平面二维像素点时,所生成的平面二维像素点为指定与密钥载体的像素点的区域颜色不同。4. A kind of payment encryption algorithm according to claim 1, characterized in that: when the conversion program converts dynamic numbers into plane two-dimensional pixels, the generated plane two-dimensional pixels are specified and key carrier Areas of pixels are colored differently.
CN201810320616.5A 2018-04-11 2018-04-11 Payment encryption algorithm Expired - Fee Related CN108564367B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810320616.5A CN108564367B (en) 2018-04-11 2018-04-11 Payment encryption algorithm

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810320616.5A CN108564367B (en) 2018-04-11 2018-04-11 Payment encryption algorithm

Publications (2)

Publication Number Publication Date
CN108564367A true CN108564367A (en) 2018-09-21
CN108564367B CN108564367B (en) 2022-08-16

Family

ID=63534482

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810320616.5A Expired - Fee Related CN108564367B (en) 2018-04-11 2018-04-11 Payment encryption algorithm

Country Status (1)

Country Link
CN (1) CN108564367B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113742611A (en) * 2021-01-06 2021-12-03 北京沃东天骏信息技术有限公司 Data request processing method and device

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030225704A1 (en) * 2002-06-04 2003-12-04 Bottomline Technologies (De) Inc. System and method for producing and verifying secure negotiable instruments
CN101729256A (en) * 2008-10-24 2010-06-09 深圳宝嘉电子设备有限公司 Security certificate method based on fingerprint, cryptographic technology and fragile digital watermark
US20100211506A1 (en) * 2009-02-19 2010-08-19 Simpleact Incorporated Mobile transaction system and method
CN102956079A (en) * 2011-08-11 2013-03-06 Lg电子株式会社 Mobile terminal and payment method thereof
CN104657855A (en) * 2015-03-10 2015-05-27 王清斌 Mobile payment identity verification device with NFC interface
CN106960344A (en) * 2017-03-27 2017-07-18 上海与德科技有限公司 A kind of method of payment and system based on mobile terminal
CN107798531A (en) * 2017-08-14 2018-03-13 中国银联股份有限公司 Electric paying method and system
CN107835332A (en) * 2017-11-15 2018-03-23 深圳大学 It is superimposed the two-dimensional code generation method and device of man made noise's information

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030225704A1 (en) * 2002-06-04 2003-12-04 Bottomline Technologies (De) Inc. System and method for producing and verifying secure negotiable instruments
CN101729256A (en) * 2008-10-24 2010-06-09 深圳宝嘉电子设备有限公司 Security certificate method based on fingerprint, cryptographic technology and fragile digital watermark
US20100211506A1 (en) * 2009-02-19 2010-08-19 Simpleact Incorporated Mobile transaction system and method
CN102956079A (en) * 2011-08-11 2013-03-06 Lg电子株式会社 Mobile terminal and payment method thereof
CN104657855A (en) * 2015-03-10 2015-05-27 王清斌 Mobile payment identity verification device with NFC interface
CN106960344A (en) * 2017-03-27 2017-07-18 上海与德科技有限公司 A kind of method of payment and system based on mobile terminal
CN107798531A (en) * 2017-08-14 2018-03-13 中国银联股份有限公司 Electric paying method and system
CN107835332A (en) * 2017-11-15 2018-03-23 深圳大学 It is superimposed the two-dimensional code generation method and device of man made noise's information

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113742611A (en) * 2021-01-06 2021-12-03 北京沃东天骏信息技术有限公司 Data request processing method and device

Also Published As

Publication number Publication date
CN108564367B (en) 2022-08-16

Similar Documents

Publication Publication Date Title
US11736296B2 (en) Biometric verification process using certification token
US9406063B2 (en) Systems and methods for messaging, calling, digital multimedia capture, payment transactions, global digital ledger, and national currency world digital token
US9646296B2 (en) Mobile-to-mobile transactions
CN103873244B (en) Identity authentication method and system in mobile payment based on fingerprint identification
US20140100973A1 (en) Smartphone virtual payment card
US20150006390A1 (en) Using steganography to perform payment transactions through insecure channels
CN107194694B (en) Offline payment method based on two-dimension code
CN107230070A (en) Digital coin systems
CN107230079A (en) The method and system of offline electronic payment are carried out using digital cash chip card
HUE029807T2 (en) Systems and methods for conducting secure payment transactions using a formatted data structure
CN104134142A (en) Metro ticket buying and checking method based on two-dimension code recognition
CN107230072B (en) Method and system for online payment using digital currency chip card
WO2012125477A2 (en) System and device for facilitating a transaction by consolidating sim, personal token, and associated applications for electronic wallet transactions
EP1231578A2 (en) Method and system for implementing cashless payment transactions
CN104620286A (en) Payment unit, system and method
CN110766397B (en) Near field payment method based on data identification model
CN107194695A (en) Transaction code is generated and end of scan, transaction code generation and method of commerce
CN104282091A (en) Bill data generating/transmitting/storing/authenticating method
US20200090160A1 (en) Time Limited Code
WO2010089049A1 (en) Mobile payment method and devices
EP3361419A1 (en) Tamper-proof barcode, system and method for generating and authenticating credentials on the basis of said code
EP2075726B1 (en) Tool that can be used to authenticate documents, methods of using the tool and documents produced by the method or methods
CN110555690A (en) Personal point of sale (PPOS) merchant transaction image
CN108564367A (en) A kind of encrypted algorithm of payment
CN106910068A (en) The light certification offline electronic payment method of many algorithm multi-key ciphers

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
TA01 Transfer of patent application right
TA01 Transfer of patent application right

Effective date of registration: 20220727

Address after: 317500 No. 97, Muyu Youth Road, Zeguo Town, Wenling City, Taizhou City, Zhejiang Province

Applicant after: Song Weijie

Address before: 317100 Room 308, building 14, No. 2 Qiushui Avenue, Haiyou street, Sanmen County, Taizhou City, Zhejiang Province

Applicant before: Zheng Hong

GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20230426

Address after: Room 0022, Room 201, 2nd Floor, Building 1, Yard 1, Xinfang Road, Chaoyang District, Beijing, 100000

Patentee after: Beijing Feihu Infinite Technology Co.,Ltd.

Address before: 317500 No. 97, Muyu Youth Road, Zeguo Town, Wenling City, Taizhou City, Zhejiang Province

Patentee before: Song Weijie

CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20220816