Management method for card password data

Through facial recognition verification and building encryption models, the problem of insufficient security in the storage and transmission of card secret data is solved, and efficient and secure management of payment orders is achieved to prevent data leakage.

CN119130470AActive Publication Date: 2024-12-13CHENGDU BLUE BROTHERS NETWORK TECH CO LTD
View PDF 13 Cites 0 Cited by

Patent Information

Application Number
CN202411621685.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-11-14
Publication Date
2024-12-13
Estimated Expiration
2044-11-14

AI Technical Summary

Technical Problem

In an e-commerce environment, card-secret data is susceptible to data leakage risks during storage and transmission, and the lack of effective encryption measures leads to insufficient security.

Method used

By obtaining the user's real-time login image for face recognition verification, calculating the image feature degree and extracting the ROI area for pixel analysis. After verification, the encryption model is constructed based on the transaction information of the payment order to generate card secret data, ensuring the security of data transmission.

Benefits of technology

It improves the security of payment orders, and through the construction of facial recognition verification and encryption models, it enhances data protection, prevents information leakage, and improves the security of transactions.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119130470A_ABST
    Figure CN119130470A_ABST
Patent Text Reader

Abstract

The invention discloses a card password data management method, which belongs to the technical field of data management, and comprises the following steps: S1, obtaining a real-time login image of a payment order, and verifying the real-time login image; s2, after the real-time login image passes verification, obtaining transaction information of the payment order; s3, determining an encryption model of the payment order according to the transaction information of the payment order; and S4, generating card password data for the transaction information of the payment order by using the encryption model of the payment order, and transmitting the card password data to the user terminal for storage. According to the invention, the card password data is generated for the transaction data and is used for verifying the permission of checking the payment order by the subsequent user, so that the security degree of the payment transaction order is further improved and information leakage is prevented.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the technical field of data management, and in particular relates to a method for managing card secret data. Background Art

[0002] In the current e-commerce environment, card secret business, as a common form of commodity transaction, is widely used in many fields such as software authorization, game recharge, and membership services. The core of the card secret business lies in the generation, management, distribution, and subsequent use verification of card secret information. Many payment orders have appeared in the Internet system, which have certain commodity value. In order to ensure the security of payment orders, card secret data is generally generated for payment orders. The card secret refers to a password combination composed of a series of separate character strings. The card secrets of different payment orders are unique. When users query the payment order, they need to enter the correct card secret to obtain query permissions. However, as sensitive data, card secret information is prone to data leakage risks if effective encryption measures are not taken during storage and transmission. Summary of the invention

[0003] In order to solve the above problems, the present invention proposes a method for managing card secret data.

[0004] The technical solution of the present invention is: a card secret data management method comprises the following steps: S1. Obtain a real-time login image of the payment order and verify the real-time login image; S2. After the real-time login image verification is passed, the transaction information of the payment order is obtained; S3. Determine an encryption model of the payment order based on the transaction information of the payment order; S4. Generate card secret data for the transaction information of the payment order using the encryption model of the payment order, and transmit the card secret data to the user terminal for storage.

[0005] Furthermore, S1 includes the following sub-steps: S11, obtaining a real-time login image of the payment order, and obtaining a number of anti-counterfeiting login images corresponding to the payment order from a database; S12, calculating the login feature degree between the real-time login image and each anti-counterfeiting login image; S13, using the anti-counterfeiting login image with the highest login feature as the verification login image; S14, extracting the ROI area of ​​the real-time login image and the ROI area of ​​the verification login image respectively; S15. Calculate the pixel distribution range corresponding to the ROI area of ​​the verification login image, and determine whether the grayscale value mean of all pixels in the ROI area of ​​the real-time login image belongs to the pixel distribution range. If so, the real-time login image verification passes, otherwise the real-time login image verification fails.

[0006] The beneficial effect of the above further scheme is: in the present invention, when the user views the payment order, he needs to perform face recognition verification first. Therefore, the present invention collects the user's real-time login image (i.e., face image) and compares and verifies it with several anti-counterfeiting login images with login authority pre-stored in the database. If the verification is passed, the user is allowed to obtain the transaction information of the payment order. The present invention first preliminarily screens the real-time login image and each anti-counterfeiting login image, that is, preliminarily screens out an image with the highest similarity to the real-time login image by calculating the login feature degree for further comparison. When the comparison between the verified login image and the real-time login image is completed, the ROI area of ​​the two images is first extracted. In the field of image processing, the ROI area (region of interest) is an image area selected from the image. This area is the focus of image analysis, and the area is circled for further processing. Then the pixel points in the ROI area are analyzed and calculated to determine whether the verification is passed. When the present invention performs image verification, it is divided into a preliminary selection verification login image stage and a pixel point comparison and analysis stage in the ROI area, which can reduce image processing time and increase verification accuracy. In addition, various operators and functions can be used in machine vision software such as Halcon, OpenCV and Matlab to obtain the ROI area.

[0007] Furthermore, in S12, the login feature degree between the real-time login image and the anti-counterfeiting login image Y The calculation formula is: ; In the formula, G m Indicates the real-time login image. m The mean gray value of all pixels in the row, G n Indicates the real-time login image. n The mean gray value of all pixels in the column, G i Indicates the first i The mean gray value of all pixels in the row, G j Indicates the first j The mean gray value of all pixels in the column, M Indicates the number of rows of real-time login images. N Indicates the number of columns of the real-time login image. I Indicates the number of rows of the anti-counterfeiting login image. JIndicates the number of columns of the anti-counterfeiting login image. e Represents an exponent.

[0008] Furthermore, in S15, the minimum value of the pixel distribution range is F min The calculation formula is: ; In the formula, K Indicates the number of pixels in the ROI area of ​​the verified login image. G k Indicates the first k The gray value of a pixel, G max_1 Indicates the maximum grayscale value of the pixel in the verification login image. G min_1 Indicates the minimum grayscale value of the pixel in the verification login image. G max_0 Indicates the maximum grayscale value of the pixels in the ROI area of ​​the verified login image. G min_0 Indicates the minimum grayscale value of the pixels in the ROI area of ​​the verified login image; In S15, the maximum value of the pixel distribution range F max The calculation formula is: .

[0009] Furthermore, in S2, the transaction information of the payment order includes transaction duration, transaction amount and transaction text.

[0010] Furthermore, S3 includes the following sub-steps: S31, pre-processing the transaction duration and the transaction amount to obtain the optimal transaction duration and the optimal transaction amount; S32, taking the word vector of the word with the highest word frequency in the transaction text as the initial word vector, and calculating the word exchange coefficient between the word vectors of the remaining words in the transaction text and the initial word vector; S33. Construct a verification model for the payment order based on the optimal transaction duration, the optimal transaction amount, and all word exchange coefficients; S34. Construct an encryption model based on the verification model of the payment order.

[0011] The beneficial effect of the above further scheme is that in the present invention, the transaction duration and the transaction amount are rounded up. On the one hand, the integer form facilitates the construction of the verification model in the subsequent steps. On the other hand, the result of rounding up can increase the value of the verification model and improve the encryption degree. According to the comparison between the transaction duration and the preset transaction duration and the comparison between the transaction amount and the preset transaction amount, combined with the word vector and word frequency of the transaction text, a specific verification model is constructed, and then the encryption model is determined according to the verification model. The encryption function of the encryption model can adopt an existing hash function, etc.

[0012] Furthermore, in S31, the optimal transaction duration T The calculation formula is: ; In the formula, t Indicates the transaction duration. Indicates rounding up operation; In S31, the best transaction amount O The calculation formula is: ; In the formula, o Indicates the transaction amount.

[0013] Further, in S32, the transaction text h The word exchange coefficient between the word vector of the word and the initial word vector X h The calculation formula is: ; In the formula, A represents the initial word vector, B h Indicates the transaction text h The word vector of each word, C h Indicates the transaction text h The frequency of the word, c Indicates the highest word frequency in the transaction text, H Indicates the number of words in the transaction text. cos (·) indicates cosine calculation.

[0014] Further, in S33, the verification model of the payment order Z The expression is: ; In the formula, T Indicates the best trading time. O represents the optimal transaction amount, Indicates the preset transaction duration. Indicates the preset transaction amount. H Indicates the number of words in the transaction text. X h Indicates the transaction text h The word exchange coefficient between the word vector of the word and the initial word vector, erepresents the exponent, σ represents the standard deviation of all word exchange coefficients, X max represents the maximum word exchange coefficient, X min represents the minimum word exchange coefficient, Represents the product operation.

[0015] Furthermore, in S34, the encryption model of the payment order D The expression is: ; In the formula, Z Represents the verification model of the payment order, f (·) represents an encryption function.

[0016] In S4, the encrypted value obtained by the encryption model is rounded up and converted into binary form, and the encrypted value corresponding to the binary code and the encryption model is used as the card secret data and stored in the user terminal.

[0017] The beneficial effects of the present invention are as follows: the present invention discloses a method for managing card secret data, which verifies users who can pay for order transaction information by performing pixel analysis on a real-time login image of a user (such as an administrator), thereby ensuring the security of the payment order; at the same time, after the user verification is passed, the present invention constructs a verification model for payment orders of different amounts and different transaction durations, and determines an encryption model based on the verification model, generates card secret data for the transaction data, and is used to verify the authority of subsequent users (such as ordinary users) to view the payment order, thereby further improving the security of the payment transaction order and preventing information leakage. BRIEF DESCRIPTION OF THE DRAWINGS

[0018] Figure 1 The present invention is a flowchart of a method for managing card secret data. DETAILED DESCRIPTION

[0019] The embodiments of the present invention will be further described below in conjunction with the accompanying drawings.

[0020] like Figure 1 As shown, the present invention provides a method for managing card secret data, comprising the following steps: S1. Obtain a real-time login image of the payment order and verify the real-time login image; S2. After the real-time login image verification is passed, the transaction information of the payment order is obtained; S3. Determine an encryption model of the payment order based on the transaction information of the payment order; S4. Generate card secret data for the transaction information of the payment order using the encryption model of the payment order, and transmit the card secret data to the user terminal for storage.

[0021] In this embodiment of the present invention, S1 includes the following sub-steps: S11, obtaining a real-time login image of the payment order, and obtaining a number of anti-counterfeiting login images corresponding to the payment order from a database; S12, calculating the login feature degree between the real-time login image and each anti-counterfeiting login image; S13, using the anti-counterfeiting login image with the highest login feature as the verification login image; S14, extracting the ROI area of ​​the real-time login image and the ROI area of ​​the verification login image respectively; S15. Calculate the pixel distribution range corresponding to the ROI area of ​​the verification login image, and determine whether the grayscale value mean of all pixels in the ROI area of ​​the real-time login image belongs to the pixel distribution range. If so, the real-time login image verification passes, otherwise the real-time login image verification fails.

[0022] In the present invention, when the user views the payment order, the face recognition verification is required first. Therefore, the present invention collects the user's real-time login image (i.e., face image) and compares and verifies it with several anti-counterfeiting login images with login permissions pre-stored in the database. If the verification is passed, the user is allowed to obtain the transaction information of the payment order. The present invention first preliminarily screens the real-time login image and each anti-counterfeiting login image, that is, preliminarily screens out an image with the highest similarity to the real-time login image by calculating the login feature degree, which is used for comparison in the embodiment of the present invention. When the comparison between the verified login image and the real-time login image is completed, the ROI area of ​​the two images is first extracted. In the field of image processing, the ROI area (region of interest) is an image area selected from the image. This area is the focus of image analysis, and the area is circled for further processing. Then the pixel points in the ROI area are analyzed and calculated to determine whether the verification is passed. When the present invention performs image verification, it is divided into a preliminary selection verification login image stage and a pixel point comparison and analysis stage in the ROI area, which can reduce image processing time and increase verification accuracy. In addition, various operators and functions can be used in machine vision software such as Halcon, OpenCV and Matlab to obtain the ROI area.

[0023] In the embodiment of the present invention, in S12, the login feature degree between the real-time login image and the anti-counterfeiting login image is Y The calculation formula is: ; In the formula, G m Indicates the real-time login image. m The mean gray value of all pixels in the row, G n Indicates the real-time login image. n The mean gray value of all pixels in the column, G iIndicates the first i The mean gray value of all pixels in the row, G j Indicates the first j The mean gray value of all pixels in the column, M Indicates the number of rows of real-time login images. N Indicates the number of columns of the real-time login image. I Indicates the number of rows of the anti-counterfeiting login image. J Indicates the number of columns of the anti-counterfeiting login image. e Represents an exponent.

[0024] In the embodiment of the present invention, in S15, the minimum value of the pixel distribution range F min The calculation formula is: ; In the formula, K Indicates the number of pixels in the ROI area of ​​the verified login image. G k Indicates the first k The gray value of a pixel, G max_1 Indicates the maximum grayscale value of the pixel in the verification login image. G min_1 Indicates the minimum grayscale value of the pixel in the verification login image. G max_0 Indicates the maximum grayscale value of the pixels in the ROI area of ​​the verified login image. G min_0 Indicates the minimum grayscale value of the pixels in the ROI area of ​​the verified login image; In S15, the maximum value of the pixel distribution range F max The calculation formula is: .

[0025] In the embodiment of the present invention, in S2, the transaction information of the payment order includes transaction duration, transaction amount and transaction text.

[0026] In this embodiment of the present invention, S3 includes the following sub-steps: S31, pre-processing the transaction duration and the transaction amount to obtain the optimal transaction duration and the optimal transaction amount; S32, taking the word vector of the word with the highest word frequency in the transaction text as the initial word vector, and calculating the word exchange coefficient between the word vectors of the remaining words in the transaction text and the initial word vector; S33. Construct a verification model for the payment order based on the optimal transaction duration, the optimal transaction amount, and all word exchange coefficients; S34. Construct an encryption model based on the verification model of the payment order.

[0027] In the present invention, the transaction duration and transaction amount are rounded up. On the one hand, the integer form is convenient for the construction of the verification model in the subsequent steps. On the other hand, the result of rounding up can increase the value of the verification model and improve the degree of encryption. According to the comparison between the transaction duration and the preset transaction duration and the comparison between the transaction amount and the preset transaction amount, combined with the word vector and word frequency of the transaction text, a specific verification model is constructed, and then the encryption model is determined according to the verification model. The encryption function of the encryption model can adopt an existing hash function, etc.

[0028] In the embodiment of the present invention, in S31, the optimal transaction duration T The calculation formula is: ; In the formula, t Indicates the transaction duration. Indicates rounding up operation; In S31, the best transaction amount O The calculation formula is: ; In the formula, o Indicates the transaction amount.

[0029] In the embodiment of the present invention, in S32, the transaction text h The word exchange coefficient between the word vector of the word and the initial word vector X h The calculation formula is: ; In the formula, A represents the initial word vector, B h Indicates the transaction text h The word vector of each word, C h Indicates the transaction text h The frequency of the word, c Indicates the highest word frequency in the transaction text, H Indicates the number of words in the transaction text. cos (·) indicates cosine calculation.

[0030] In the embodiment of the present invention, in S33, the verification model of the payment order Z The expression is: ; In the formula, T Indicates the best trading time. O represents the optimal transaction amount, Indicates the preset transaction duration. Indicates the preset transaction amount. H Indicates the number of words in the transaction text. X h Indicates the transaction texth The word exchange coefficient between the word vector of the word and the initial word vector, e represents the exponent, σ represents the standard deviation of all word exchange coefficients, X max represents the maximum word exchange coefficient, X min represents the minimum word exchange coefficient, Represents the product operation.

[0031] In the embodiment of the present invention, in S34, the encryption model of the payment order D The expression is: ; In the formula, Z Represents the verification model of the payment order, f (·) represents an encryption function.

[0032] In S4, the encrypted value obtained by the encryption model is rounded up and converted into binary form, and the encrypted value corresponding to the binary code and the encryption model is used as the card secret data and stored in the user terminal.

[0033] Those skilled in the art will appreciate that the embodiments described herein are intended to help readers understand the principles of the present invention, and should be understood that the protection scope of the present invention is not limited to such specific statements and embodiments. Those skilled in the art can make various other specific variations and combinations that do not deviate from the essence of the present invention based on the technical revelations disclosed by the present invention, and these variations and combinations are still within the protection scope of the present invention.

Claims

1. A card secret data management method, characterized in that: The following steps are involved: S1. Obtain a real-time login image of the payment order and verify the real-time login image; S2. After the real-time login image verification is passed, the transaction information of the payment order is obtained; S3. Determine an encryption model of the payment order based on the transaction information of the payment order; S4. Generate card secret data for the transaction information of the payment order using the encryption model of the payment order, and transmit the card secret data to the user terminal for storage.

2. The card secret data management method according to claim 1, characterized in that: The S1 comprises the following sub-steps: S11, obtaining a real-time login image of the payment order, and obtaining a number of anti-counterfeiting login images corresponding to the payment order from a database; S12, calculating the login feature degree between the real-time login image and each anti-counterfeiting login image; S13, using the anti-counterfeiting login image with the highest login feature as the verification login image; S14, extracting the ROI area of ​​the real-time login image and the ROI area of ​​the verification login image respectively; S15. Calculate the pixel distribution range corresponding to the ROI area of ​​the verification login image, and determine whether the grayscale value mean of all pixels in the ROI area of ​​the real-time login image belongs to the pixel distribution range. If so, the real-time login image verification passes, otherwise the real-time login image verification fails.

3. The card secret data management method according to claim 2, characterized in that: In S12, the login feature degree between the real-time login image and the anti-counterfeiting login image Y The calculation formula is: ; In the formula, G m Indicates the real-time login image. m The mean gray value of all pixels in the row, G n Indicates the real-time login image. n The mean gray value of all pixels in the column, G i Indicates the first i The mean gray value of all pixels in the row, G j Indicates the first j The mean gray value of all pixels in the column, M Indicates the number of rows of real-time login images. N Indicates the number of columns of the real-time login image. I Indicates the number of rows of the anti-counterfeiting login image. J Indicates the number of columns of the anti-counterfeiting login image. e Represents an exponent.

4. The card secret data management method according to claim 2, characterized in that: In S15, the minimum value of the pixel distribution range F min The calculation formula is: ; In the formula, K Indicates the number of pixels in the ROI area of ​​the verified login image. G k Indicates the first k The gray value of a pixel, G max_1 Indicates the maximum grayscale value of the pixel in the verification login image. G min_1 Indicates the minimum grayscale value of the pixel in the verification login image. G max_0 Indicates the maximum grayscale value of the pixels in the ROI area of ​​the verified login image. G min_0 Indicates the minimum grayscale value of the pixels in the ROI area of ​​the verified login image; In S15, the maximum value of the pixel distribution range F max The calculation formula is: .

5. The card secret data management method according to claim 1, characterized in that: In S2, the transaction information of the payment order includes transaction duration, transaction amount and transaction text.

6. The card secret data management method according to claim 1, characterized in that: The S3 comprises the following sub-steps: S31, pre-processing the transaction duration and the transaction amount to obtain the optimal transaction duration and the optimal transaction amount; S32, taking the word vector of the word with the highest word frequency in the transaction text as the initial word vector, and calculating the word exchange coefficient between the word vectors of the remaining words in the transaction text and the initial word vector; S33. Construct a verification model for the payment order based on the optimal transaction duration, the optimal transaction amount, and all word exchange coefficients; S34. Construct an encryption model based on the verification model of the payment order.

7. The card secret data management method according to claim 6, characterized in that: In S31, the optimal transaction duration T The calculation formula is: ; In the formula, t Indicates the transaction duration. Indicates rounding up operation; In S31, the optimal transaction amount O The calculation formula is: ; In the formula, o Indicates the transaction amount.

8. The card secret data management method according to claim 6, characterized in that: In the S32, the transaction text h The word exchange coefficient between the word vector of the word and the initial word vector X h The calculation formula is: ; In the formula, A represents the initial word vector, B h Indicates the transaction text h The word vector of each word, C h Indicates the transaction text h The frequency of the word, c Indicates the highest word frequency in the transaction text, H Indicates the number of words in the transaction text. cos (·) indicates cosine calculation.

9. The card secret data management method according to claim 6, characterized in that: In S33, the verification model of the payment order Z The expression is: ; In the formula, T Indicates the best trading time. O represents the optimal transaction amount, Indicates the preset transaction duration. Indicates the preset transaction amount. H Indicates the number of words in the transaction text. X h Indicates the transaction text h The word exchange coefficient between the word vector of the word and the initial word vector, e represents the exponent, σ represents the standard deviation of all word exchange coefficients, X max represents the maximum word exchange coefficient, X min represents the minimum word exchange coefficient, Represents the product operation.

10. The card secret data management method according to claim 6, characterized in that: In S34, the encryption model of the payment order D The expression is: ; In the formula, Z Represents the verification model of the payment order, f (·) represents an encryption function.

Citation Information

Patent Citations

  • Method and apparatus for issuing and using saving and environment protection type value storing card and charging card

    CN101083685A

  • Word segmentation method and device based on unregistered word, electronic equipment and medium

    CN113361273A

  • Electronic commerce verification method based on cloud security

    CN113556318A

  • Face payment method and device, electronic equipment and storage medium

    CN114519579A

  • Order payment processing method and device, equipment, medium and product

    CN114612917A