An intelligent, efficient, secure and encrypted card and voucher verification method and device

Through dynamic selection of encryption algorithms and verification mode, the existing coupon verification system is solved, and the problem of insufficient security and low verification efficiency of coupon verification systems in cross-platform and multiple usage environments is achieved, and an efficient and secure coupon verification process is achieved.

CN119741097BActive Publication Date: 2025-05-16SHENZHEN TONGSHANGBAO TECH CO LTD
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202510251530.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2025-03-05
Publication Date
2025-05-16
Estimated Expiration
2045-03-05

AI Technical Summary

Technical Problem

The existing card and coupon verification system has problems such as insufficient security, low verification efficiency, inflexible encryption methods, and information leakage in cross-platform and multiple usage environments, making it difficult to meet the efficient needs of large-scale and multi-platform application scenarios.

Method used

By dynamically selecting the encryption algorithm based on the type of card coupon and the use environment, the card coupon key is generated, and the key is recorded through the blockchain to generate the verification guide code, and the card coupon information is verified by digital signature during the verification process, the verification mode is dynamically selected to adapt to the risk level of different network environments.

Benefits of technology

It improves the flexibility and security of card coupon information encryption, ensures the effectiveness and integrity of card coupon information during the verification process, enhances the overall security and transparency of the system, improves the verification efficiency and reduces risks.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119741097B_ABST
    Figure CN119741097B_ABST
Patent Text Reader

Abstract

The present invention discloses an intelligent, efficient, and secure encrypted card and voucher verification method and device, and relates to the technical field of network transactions of electronic card and voucher. The intelligent, efficient, and secure encrypted card and voucher verification method and device, by setting encryption optimization rules according to the card and voucher type and usage environment, dynamically selecting an encryption algorithm to generate a card and voucher key, and recording the key generation information through a blockchain, then encrypting the card and voucher information, generating and storing a verification guide code; during the verification process, the authenticity and usage status of the card and voucher are verified through the verification guide code and digital signature, and the verification mode is dynamically selected according to the risk level of the verification network environment to ensure security. The device includes an encryption rule setting module, a verification guide code generation module, a card and voucher verification module, and a verification verification module, which ensures the security of the card and voucher information while improving the verification efficiency, and can effectively prevent counterfeiting of cards and vouchers and improve the verification efficiency.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of network transaction of electronic cards and coupons, and in particular to an intelligent, efficient, secure and encrypted card and coupon verification method and device. Background Art

[0002] With the rapid development of e-commerce, the use of digital cards and coupons such as online payment, membership cards, and coupons has become increasingly popular, and consumers can enjoy various discounts through these cards and coupons. However, this also brings up the issue of card and coupon management and verification security. Especially in diversified usage scenarios such as cross-platform, online and offline, the security, authenticity and verification efficiency of card and coupon information have become important issues that need to be urgently addressed in commercial operations. In order to ensure the legitimacy of cards and coupons and prevent counterfeiting and abuse, merchants need to rely on more intelligent and secure technical means.

[0003] Existing card and voucher verification systems usually rely on traditional encryption algorithms to protect card and voucher data, but these methods often have certain limitations. Traditional encryption schemes cannot effectively meet the security requirements of cross-platform and multiple usage environments. At the same time, in the process of card and voucher generation, verification and verification, there are problems such as inflexible encryption methods, insufficient encryption strength, and information leakage. In addition, some traditional systems lack the ability to dynamically adapt to the network environment and are vulnerable to the risk of man-in-the-middle attacks or forged information. Although existing digital signature and encryption technologies can provide certain security guarantees, their complexity and efficiency often cannot meet the high-efficiency requirements in large-scale, multi-platform application scenarios. Therefore, how to improve the verification efficiency while ensuring the security of card and voucher information and ensure the adaptability of the system in different environments is a technical problem that needs to be solved urgently. Summary of the invention

[0004] In view of the deficiencies in the prior art, the present invention provides an intelligent, efficient, secure and encrypted card and voucher verification method and device, which solves the problems of the above-mentioned background technology.

[0005] To achieve the above objectives, the present invention is implemented through the following technical solutions: an intelligent, efficient, secure and encrypted card and voucher verification method, comprising the following steps: S1. According to the card and voucher type and usage environment, set encryption preference rules, dynamically select encryption algorithms, generate card and voucher keys, and record key generation information through blockchain; S2. Encrypt the card and voucher information according to the encryption algorithm, generate a verification guidance code and store it in the card and voucher database together with the card and voucher information; S3. During the card and voucher verification process, verify the authenticity of the card and voucher according to the verification guidance code, verify the card and voucher information through a digital signature, and confirm the usage status of the card and voucher; S4. Identify the card and voucher information according to the card and voucher database and analyze the current verification network environment risk level, and dynamically select the verification verification mode.

[0006] Furthermore, according to the card voucher type and the usage environment, the specific process of setting the encryption preference rules is as follows: the card voucher types include coupons, membership cards, and gift cards, and the usage environment includes online payment, offline consumption, and cross-platform; according to the card voucher type and the usage environment, setting the encryption preference rules includes: coupons are encrypted using a symmetric encryption algorithm in online payment and cross-platform environments, and hybrid encryption is used in cross-platform environments; membership cards are encrypted using an asymmetric encryption algorithm in online payment and cross-platform environments, and are encrypted using a symmetric encryption algorithm in offline consumption environments; gift cards use hybrid encryption in online payment environments, and use symmetric encryption to encrypt card information in offline consumption environments.

[0007] Furthermore, the specific process of dynamically selecting an encryption algorithm and generating a card or voucher key is as follows: dynamically select an encryption algorithm according to the encryption optimization rule; for the symmetric encryption algorithm AES, use a pseudo-random number generator to generate a random encryption key; for the asymmetric encryption algorithm RSA, generate a pair of public and private keys, store the public key on the server side, and keep the private key in the security module; for the hybrid encryption algorithm RSA combined with AES, use the RSA algorithm to generate a pair of keys, use RSA to encrypt the generated AES key, and use AES to encrypt the card or voucher data.

[0008] Furthermore, the specific process of encrypting the card information according to the encryption algorithm and generating the cancellation guidance code is as follows: extracting the card information, including the card number, face value, and validity period; encrypting the extracted card information according to the selected encryption algorithm includes: for the symmetric encryption algorithm AES, using the generated encryption key to encrypt the card information; for the asymmetric encryption algorithm RSA, using the public key to encrypt the card information; for hybrid encryption, using the AES key generated by RSA encryption, and then encrypting the card information with AES; based on the encrypted card information, generating a cancellation guidance code through a digital signature.

[0009] Furthermore, the specific process of verifying the authenticity of the card or coupon based on the cancellation guidance code is as follows: extract the cancellation guidance code and obtain the corresponding encrypted information from the card or coupon database; use the public key or symmetric key to decrypt the cancellation guidance code and restore the encrypted card or coupon information; verify the restored card or coupon information to check its integrity and consistency, including checking the card or coupon number, face value, expiration date and other fields; verify the digital signature to ensure that the card or coupon information has not been tampered with, and verify the legitimacy of the signature through the public key; when the cancellation guidance code is consistent with the card or coupon information and the digital signature is valid, the card or coupon is confirmed to be authentic and valid, otherwise it is determined to be invalid or forged.

[0010] Furthermore, the specific process of verifying the card information and confirming the usage status of the card through digital signature is as follows: extract the card information and digital signature, check the status field in the card information, and obtain the current status of the card, including unused, used and expired; when the card status is unused, it can continue to be written off; when the card status is used or expired, it is determined to be invalid and cannot be written off again; update the card status according to the write-off result, and record the write-off information in the database.

[0011] Furthermore, the specific process of identifying the card information according to the card database and analyzing the risk level of the current verification network environment is as follows: identifying the card information, evaluating the risk level of the current verification operation according to the characteristics of the network environment, and determining the security level of the network environment, which is divided into high risk, medium risk and low risk; matching the network risk level with the card information to determine whether additional verification means are needed to ensure the security of card verification.

[0012] Furthermore, the specific process of dynamically selecting the verification mode of the verification is as follows: According to the risk level of the verification network environment, the verification mode is dynamically selected including: in a low-risk environment, using a single public key verification and card-voucher information comparison; in a medium-risk environment, through digital signature verification plus secondary identity authentication; in a high-risk environment, through multiple verification mechanisms, including identity authentication, device authentication and location authentication.

[0013] An intelligent, efficient and secure encrypted card and voucher cancellation device comprises the following modules: an encryption rule setting module, a cancellation guidance code generation module, a card and voucher verification module, and a cancellation verification module; the encryption rule setting module is used to set encryption optimization rules according to the card and voucher type and usage environment, dynamically select an encryption algorithm, generate a card and voucher key, and record the key generation information through a blockchain; the cancellation guidance code generation module is used to encrypt the card and voucher information through an encryption algorithm, generate a cancellation guidance code and store it in a card and voucher database with the card and voucher information; the card and voucher verification module is used to verify the authenticity of the card and voucher according to the cancellation guidance code during the card and voucher cancellation process, and verify the card and voucher information through a digital signature to confirm the usage status of the card and voucher; the cancellation verification module is used to identify the card and voucher information according to the card and voucher database and analyze the current cancellation network environment risk level, and dynamically select a cancellation verification mode.

[0014] The present invention has the following beneficial effects:

[0015] (1) This intelligent, efficient and secure encrypted card and voucher verification method improves the flexibility and security of card and voucher information encryption by dynamically selecting encryption algorithms according to card and voucher types, usage environments and network risks, and setting encryption optimization rules, thereby ensuring the validity and integrity of card and voucher information during the verification process. Combined with the application of blockchain technology, the key generation and management process is more transparent and secure, preventing key leakage and abuse, and improving the overall security of the card and voucher management system. The authenticity of the card and voucher is verified through the verification guidance code, and the card and voucher information is verified using a digital signature to ensure that the card and voucher have not been tampered with during use.

[0016] (2) This intelligent, efficient, secure and encrypted card and voucher verification device ensures the authenticity and legality of each card and voucher by encrypting and verifying the entire verification process. The system can dynamically adjust the verification mode according to the risk level of the current network environment, thereby improving the verification efficiency and reducing the risk. At the same time, the card and voucher are identified based on the information in the card and voucher database, and the risk level of the current verification network environment is evaluated, and the appropriate verification mode is dynamically selected, so that the card and voucher management system has a high anti-tampering ability and adapts to complex and changing application scenarios.

[0017] Of course, any product implementing the present invention does not necessarily need to achieve all of the advantages described above at the same time. BRIEF DESCRIPTION OF THE DRAWINGS

[0018] Figure 1 The present invention provides a flow chart of an intelligent, efficient, secure and encrypted card and voucher verification method.

[0019] Figure 2 This is a flow chart of an intelligent, efficient, secure and encrypted card and voucher cancellation device of the present invention. DETAILED DESCRIPTION

[0020] The embodiment of the present application solves the problems of insufficient security, low cancellation efficiency, and opaque key management in the traditional card and voucher cancellation process through an intelligent, efficient, secure and encrypted card and voucher cancellation method and device.

[0021] The overall idea of ​​the solution in the embodiments of this application is as follows:

[0022] According to the card type and usage environment, set encryption priority rules, dynamically select encryption algorithms, generate card keys, and record key generation information through blockchain.

[0023] The card and coupon information is encrypted according to the encryption algorithm, and a verification guidance code is generated and stored in the card and coupon database together with the card and coupon information.

[0024] During the card and voucher verification process, the authenticity of the card and voucher is verified according to the verification guidance code, and the card and voucher information is verified through digital signature to confirm the usage status of the card and voucher.

[0025] Identify card information based on the card database and analyze the risk level of the current write-off network environment, and dynamically select the write-off verification mode.

[0026] See also Figure 1 The embodiment of the present invention provides a technical solution: an intelligent, efficient, secure and encrypted card and voucher verification method, comprising the following steps: S1. According to the card and voucher type and usage environment, set encryption preference rules, dynamically select encryption algorithms, generate card and voucher keys, and record key generation information through blockchain; S2. Encrypt the card and voucher information according to the encryption algorithm, generate a verification guidance code and store it in the card and voucher database together with the card and voucher information; S3. During the card and voucher verification process, verify the authenticity of the card and voucher according to the verification guidance code, verify the card and voucher information through a digital signature, and confirm the usage status of the card and voucher; S4. Identify the card and voucher information according to the card and voucher database and analyze the current verification network environment risk level, and dynamically select the verification verification mode.

[0027] In this implementation scheme, S1. The system will select the most suitable encryption algorithm according to the type of card voucher (e.g., discount voucher, membership card, gift card, etc.) and the actual use environment (e.g., offline consumption, online payment, or cross-platform use, etc.). The selection of encryption algorithm follows the preset optimization rules to ensure the security of card voucher information in different environments. Common encryption algorithms include symmetric encryption algorithms (e.g., AES), asymmetric encryption algorithms (e.g., RSA), and hybrid encryption methods. For each encryption algorithm, the system will generate a corresponding encryption key. The detailed information of the encryption key generation (e.g., generation time, key user, etc.) will be recorded in the blockchain, which can ensure the non-tamperability of the key generation process and trace the key usage history, thereby enhancing the security and transparency of key management. S2. In this step, the selected encryption algorithm (e.g., AES, RSA, or hybrid encryption) is used to encrypt the key information of the card voucher. The card voucher information usually includes data such as card voucher number, face value, and expiration date. After encryption, the card voucher information generates a unique verification guide code, which will be used as the identifier of the card voucher for verification operations. The verification guide code and the original encrypted card information will be stored together in the card database for subsequent verification. The generation of the verification guide code ensures the safe storage of card information, and at the same time enables the verification process to be carried out efficiently to prevent forgery and tampering. S3. During the card verification process, the user scans or enters the verification guide code, and the system will use the pre-set key to decrypt the guide code to restore the original card information. Next, the system will verify the authenticity of the card. This process includes verifying the card information through a digital signature. Digital signature is an encryption technology that can ensure that the card information has not been tampered with during transmission. The process of verifying the digital signature is usually verified using a public key to ensure the integrity of the card data and the legitimacy of the source. At the same time, the system will also check the use status of the card, including checking whether the card has been used or expired. If the verification is successful and the card is valid, the system confirms that the card is authentic and valid; if the verification fails, the system considers the card to be invalid or forged. S4. In this step, the system first identifies and extracts the card information from the card database. The system will then analyze the current network environment and assess the security risk level of the write-off operation. The network environment risk analysis includes assessing whether the network has potential security threats (for example, whether it is in a network under malicious attack) and determining the network security level (such as low risk, medium risk, or high risk). Depending on the network risk, the system will dynamically select the appropriate write-off verification mode. For example, in a high-risk network environment, the system may require additional verification methods (such as two-factor authentication) to ensure the security of the write-off operation; while in a low-risk environment, the verification process may be simplified to improve efficiency. Digital signatures are "signed" by encryption technology to ensure the integrity and source reliability of data.The digital signature of the card information is encrypted with a private key and decrypted with a public key during verification to ensure that the card data has not been tampered with and its source can be confirmed. Network risk level analysis: Assess the security of the current network environment and take different verification measures according to different risk levels. This ensures that the card verification process can still be carried out safely even in the presence of potential network threats.

[0028] Specifically, according to the card type and usage environment, the specific process of setting encryption priority rules is as follows: card types include coupons, membership cards, and gift cards, and the usage environment includes online payment, offline consumption, and cross-platform; according to the card type and usage environment, setting encryption priority rules includes: coupons are encrypted using symmetric encryption algorithms in online payment and cross-platform environments, and hybrid encryption is used in cross-platform environments; membership cards are encrypted using asymmetric encryption algorithms in online payment and cross-platform environments, and symmetric encryption algorithms are used in offline consumption environments; gift cards use hybrid encryption in online payment environments, and symmetric encryption is used to encrypt card information in offline consumption environments.

[0029] In this implementation plan, the definition of card type and usage environment is:

[0030] Card and voucher types: mainly include coupons, membership cards and gift cards. These cards and vouchers have different functions and usage methods in actual applications. Usage environment: including online payment, offline consumption and cross-platform use. Different usage environments have different security and performance requirements for encryption algorithms. The specific process of setting encryption preference rules is as follows: Coupons: Online payment and cross-platform environment: Since coupons involve more data exchange and cross-platform processing in these environments, symmetric encryption algorithms (such as AES) are used to ensure encryption speed and security. In a cross-platform environment, since it may involve collaboration between different systems, hybrid encryption (such as RSA and AES combination) is used to enhance encryption strength. Membership card: Online payment and cross-platform environment: In these environments, transaction data and user privacy are more sensitive, so asymmetric encryption algorithms (such as RSA) are preferred for encryption to ensure high security of data during transmission. Offline consumption environment: In this environment, it is usually only used on a single platform or device, and the security requirements are relatively low. Therefore, symmetric encryption algorithms (such as AES) are used for encryption, which can ensure data security without affecting performance. Gift cards: Online payment environment: Since the transactions involved are relatively frequent and there is cross-system communication, a hybrid encryption method (such as RSA encryption of AES keys, and then AES encryption of data) is used to ensure that the encryption process is both efficient and secure. Offline consumption environment: Transactions here are more concentrated between a single device or platform, and symmetric encryption algorithms (such as AES) are used to encrypt card information to ensure encryption efficiency and security.

[0031] Specifically, the specific process of dynamically selecting an encryption algorithm and generating a card or voucher key is as follows: dynamically select an encryption algorithm according to the encryption preference rule; for the symmetric encryption algorithm AES, use a pseudo-random number generator to generate a random encryption key; for the asymmetric encryption algorithm RSA, generate a pair of public and private keys, store the public key on the server side, and keep the private key in the security module; for the hybrid encryption algorithm RSA combined with AES, use the RSA algorithm to generate a pair of keys, use RSA to encrypt the generated AES key, and use AES to encrypt the card or voucher data.

[0032] In this implementation scheme, the most suitable encryption algorithm is selected through encryption optimization rules according to the type of card voucher and the usage environment. This rule determines whether to use symmetric encryption, asymmetric encryption or hybrid encryption according to different card voucher application scenarios (such as online payment, offline consumption, etc.) and the requirements for data security and performance. Symmetric encryption algorithm AES: For scenarios where symmetric encryption algorithms (such as AES) are used for encryption, an encryption key needs to be generated. Generate key: Use a pseudo-random number generator (such as a random number generator based on cryptography) to generate a random encryption key. This key is used to encrypt and decrypt card voucher data. Encryption process: The generated key will be used to encrypt card voucher information to ensure the security of data during storage and transmission. Asymmetric encryption algorithm RSA: For scenarios that require higher security, an asymmetric encryption algorithm (such as RSA) is used for encryption. Generate key pair: Generate a pair of keys - public key and private key - through the RSA algorithm. Public key: The public key is stored on the server side for encryption of data or verification of signatures. Private key: The private key is stored in a security module and can only be accessed by authorized personnel or systems for decryption of data or signature verification. Encryption process: The server uses the public key to encrypt the data, and the recipient uses the private key to decrypt it, ensuring that only the party with the private key can read the data. Hybrid encryption algorithm RSA and AES encryption algorithm: Hybrid encryption combines the advantages of RSA and AES, and is often used in scenarios where security and performance need to be taken into account at the same time. Key generation: RSA: Use the RSA algorithm to generate a pair of public and private keys. AES key generation: Use the RSA public key to encrypt the generated AES key. This step ensures that the AES key will not be intercepted during transmission. Encrypt card and voucher data: Use the generated AES key to encrypt the card and voucher data. The AES encryption algorithm is fast and suitable for encrypting large amounts of data. Encryption process: First, RSA encrypts the AES key, and then uses AES to encrypt the specific data of the card and voucher. This combines the security of RSA and the efficiency of AES.

[0033] Specifically, the specific process of encrypting the card information according to the encryption algorithm and generating the cancellation guidance code is as follows: extracting the card information, including the card number, face value, and expiration date; encrypting the extracted card information according to the selected encryption algorithm includes: for the symmetric encryption algorithm AES, using the generated encryption key to encrypt the card information; for the asymmetric encryption algorithm RSA, using the public key to encrypt the card information; for hybrid encryption, using the AES key generated by RSA encryption, and then encrypting the card information with AES; based on the encrypted card information, generating a cancellation guidance code through a digital signature.

[0034] In this implementation scheme, the card voucher information is extracted: Card voucher number: Each card voucher has a unique number used to identify the card voucher. Face value: The value of the card voucher, which may indicate a discount or cash value. Validity period: The effective time range for the use of the card voucher. This information is the core data of the card voucher and is protected during the verification process. The encryption processing of the card voucher information is a key step to ensure data security. Based on the encrypted card voucher information, a verification guidance code is generated through a digital signature: Digital signature generation: The digital signature uses a private key to sign the encrypted card voucher information. The digital signature can ensure that the card voucher information has not been tampered with during the verification process and verify the authenticity of the data source. Verification guidance code: The verification guidance code generated by the signature is a unique identifier for the encrypted card voucher information and is used for verification in the subsequent verification process. The guidance code ensures that the card voucher can correctly match the corresponding card voucher information during verification to prevent forgery or tampering.

[0035] Specifically, the specific process of verifying the authenticity of the card or coupon based on the cancellation guidance code is as follows: extract the cancellation guidance code and obtain the corresponding encrypted information from the card or coupon database; use the public key or symmetric key to decrypt the cancellation guidance code and restore the encrypted card or coupon information; verify the restored card or coupon information to check its integrity and consistency, including checking the card or coupon number, face value, expiration date and other fields; verify the digital signature to ensure that the card or coupon information has not been tampered with, and verify the legitimacy of the signature through the public key; when the cancellation guidance code is consistent with the card or coupon information and the digital signature is valid, the card or coupon is confirmed to be authentic and valid, otherwise it is judged to be invalid or forged.

[0036] In this implementation scheme, the verification guidance code is extracted: the verification guidance code is a unique identifier generated by an encryption algorithm, which contains the key information of the card (such as the card number, face value, expiration date, etc.). Get encrypted information from the database: the card information (such as number, face value, expiration date, etc.) is stored in the card database together with the encryption guidance code. At this point, we extract the stored card information through database query, symmetric encryption and decryption process: For card information using a symmetric encryption algorithm (such as AES), we use the symmetric key generated in advance to decrypt the verification guidance code. The decryption process formula is: ;in: Indicates the restored plain text card information (including card number, face value, and validity period). Indicates the encrypted cancellation guidance code. represents the symmetric decryption function, Symmetric key asymmetric encryption and decryption process used for encryption: For card information using asymmetric encryption algorithms (such as RSA), we use the public key to decrypt the verification guidance code and restore the card information before encryption. The decryption process formula is: ;in: Indicates the restored plaintext card information. Indicates the encrypted verification guidance code Indicates the private key decryption operation. Verify the restored card information, check its integrity and consistency, and check the card number, face value, and validity period: After restoring the card information, first check whether the restored information is complete and consistent. This includes checking whether the card fields (such as card number, face value, and validity period) are consistent with the expected data. The specific verification formula is as follows: ;in: It is the card number extracted from the restored card information. It is the card number extracted from the card database. It is the face value of the card. It is the face value stored in the card database. This is the validity period of the restored card or pass. Is the recovered card validity period. If the card number, face value and validity period all match, it is verified as valid and returns 1, otherwise it returns 0. In the card information, the digital signature is used to verify the integrity and source of the card information. By verifying the digital signature with the public key, we can ensure that the card information has not been tampered with during transmission. Digital signature verification formula: ;in: This is the restored card information. It is the card information The hash value obtained by the hash operation is compared with the hash value obtained by the above calculation after the hash value is decrypted by the digital signature. If they are consistent, it means that the card information has not been modified and the signature is valid. ;in: It is the hash value obtained by decrypting the digital signature through the public key. Signature is the digital signature of the card. , the digital signature verification is successful.

[0037] Specifically, the specific process of verifying the card information through digital signature and confirming the usage status of the card is as follows: extract the card information and digital signature, check the status field in the card information, and obtain the current status of the card, including unused, used and expired; when the card status is unused, it can continue to be written off; when the card status is used or expired, it is determined to be invalid and cannot be written off again; update the card status according to the write-off result, and record the write-off information in the database.

[0038] In this implementation scheme, extracting card information: extracting key information of the card from the card database or system, usually including the card number, face value, validity period and status field. Extracting digital signature: Card information is usually protected by encryption and signature technology. The digital signature is generated by the card issuing system using a private key, which ensures that the card information is not tampered with during transmission. After extracting the digital signature of the card, it can be verified by the public key. Status field: The card information contains a "status" field, which is used to identify the current use status of the card. Common statuses include: Unused: Indicates that the card has not been used and can continue to be written off. Used: Indicates that the card has been used and cannot be written off again. Expired: Indicates that the validity period of the card has expired and can no longer be used. According to the "status" field in the extracted card information, confirm the current status of the card. The system will determine whether the card meets the conditions for continued write-off based on this status field. Unused: If the status of the card is "unused", the write-off operation can continue, that is, the card can be used once, and the system allows the card to continue to be processed. Used: If the status of a card or voucher is "used", the system determines that the card or voucher has been redeemed and is not allowed to be used again. At this time, the system will block subsequent redemption operations. Expired: If the status of a card or voucher is "expired", it means that the validity period of the card or voucher has expired and it can no longer be redeemed. The system will automatically reject the use request of the card or voucher. Update status: According to the redemption result (whether the redemption is successful), the system will update the status field of the card or voucher. For example, if the card or voucher is successfully redeemed, the status field will be updated from "unused" to "used"; if the card or voucher is found to have expired or been used during redemption, the status will remain "invalidated". Record redemption information: After the redemption is completed, the system will record the redemption information (such as redemption time, redemption user, redemption platform, etc.) in the database for subsequent query and audit. These records help trace the use history of the card or voucher and ensure that the use process of the card or voucher is transparent and traceable.

[0039] Specifically, the specific process of identifying card information based on the card database and analyzing the risk level of the current verification network environment is as follows: identify card information, evaluate the risk level of the current verification operation based on the characteristics of the network environment, and determine the security level of the network environment, which is divided into high risk, medium risk and low risk; match the network risk level with the card information to determine whether additional verification methods are needed to ensure the security of card verification.

[0040] In this implementation scheme, the card and voucher information related to the current cancellation operation is extracted from the card and voucher database to ensure that the card and voucher used in the cancellation operation is valid and authentic. Evaluate the risk level of the network environment of the current cancellation operation. Network environment analysis: The cancellation operation is usually carried out in a network environment. The security of the network environment directly affects the risk of card and voucher cancellation. The system evaluates the risk level of the current network environment based on the characteristics of the network environment (for example, connected devices, IP addresses, network topology, encryption methods). High risk: If there are potential security threats in the network environment, such as open public Wi-Fi, lack of encryption protection, abnormal IP addresses, signs of network attacks, etc., it is evaluated as a high-risk environment. In this environment, the cancellation operation may be threatened by risks such as man-in-the-middle attacks and data tampering. Medium risk: If there are certain security risks in the network environment, but the risk is low, there may be encryption protection but certain vulnerabilities (such as weak passwords, networks that are not completely isolated, etc.), it is evaluated as a medium-risk environment. At this time, the network security is relatively good, but it is still necessary to pay attention to potential attacks or data leakage risks. Low risk: If the network environment is highly protected, such as using an encrypted VPN channel, a trusted network service provider, and no abnormal IP access, it is assessed as a low-risk environment. In this case, the security of card and coupon verification is relatively high and the risk is relatively low. Risk matching: Match the risk level of the network environment with the card and coupon information to determine whether additional verification measures are needed. The security of the network environment is closely related to the security of card and coupon verification. If the network environment is in a high-risk state, the system will trigger additional security verification measures to ensure the security of card and coupon verification.

[0041] Specifically, the specific process of dynamically selecting the verification mode of verification is as follows: According to the risk level of the verification network environment, the dynamic selection of verification modes includes: in a low-risk environment, using a single public key verification and card-voucher information comparison; in a medium-risk environment, through digital signature verification plus secondary identity authentication; in a high-risk environment, through multiple verification mechanisms, including identity authentication, device authentication and location authentication.

[0042] In this implementation scheme, verification mode in a low-risk environment: When the network environment is assessed as low risk, the verification process is relatively simplified. At this time, a single public key verification and card voucher information comparison are used for cancellation. Public key verification is used to confirm the legitimacy of the card voucher information. The authenticity of the card voucher can be confirmed when the card voucher number, face value, and expiration date are consistent with the records in the database. Verification mode in a medium-risk environment: When the network environment risk is assessed as medium, the verification mode needs to add certain security guarantees. In addition to public key verification, digital signature verification is also introduced to ensure that the card voucher has not been tampered with during transmission. In addition, secondary identity authentication is performed, such as through SMS verification codes, dynamic passwords, or other identity authentication methods to ensure that the identity of the operator is legitimate. Verification mode in a high-risk environment: In a high-risk environment, in order to ensure the security of cancellation, more stringent verification measures need to be adopted. In addition to public key and digital signature verification, multiple verification mechanisms have been added, including: identity authentication (such as username and password verification, fingerprint recognition, facial recognition, etc.); device verification (confirming whether the operating device is consistent with the authorized device); location authentication (using GPS or IP address to determine whether the operating location is within the preset range).

[0043] An intelligent, efficient and secure encrypted card and coupon cancellation device comprises the following modules: an encryption rule setting module, a cancellation guidance code generation module, a card and coupon verification module and a cancellation verification module; the encryption rule setting module is used to set encryption optimization rules according to the card and coupon type and usage environment, dynamically select encryption algorithms, generate card and coupon keys, and record key generation information through blockchain; the cancellation guidance code generation module is used to encrypt card and coupon information through encryption algorithms, generate cancellation guidance codes and store them in a card and coupon database together with the card and coupon information; the card and coupon verification module is used to verify the authenticity of the card and coupon according to the cancellation guidance codes during the card and coupon cancellation process, and verify the card and coupon information through digital signatures to confirm the usage status of the card and coupon; the cancellation verification module is used to identify the card and coupon information according to the card and coupon database, analyze the current cancellation network environment risk level, and dynamically select a cancellation verification mode.

[0044] In this implementation scheme, the encryption rule setting module: This module selects appropriate encryption algorithms (such as symmetric encryption, asymmetric encryption, and hybrid encryption) according to the characteristics of different cards and coupons (such as coupons, membership cards, gift cards, etc.) and usage scenarios (such as online payment, offline consumption, etc.). The key generation process is recorded through blockchain technology to ensure the transparency and security of the key generation process. The verification guide code generation module: This module selects a suitable encryption algorithm (such as AES, RSA, or hybrid encryption) according to the encryption rules set previously. The encrypted card and coupon information is stored in the database through the generated verification guide code, providing a verification basis for the subsequent card and coupon verification process. Card and coupon verification module: This module retrieves the encrypted card and coupon information from the card and coupon database by extracting the verification guide code, and uses the public key (or symmetric key) to decrypt the verification guide code to restore the card and coupon information. Next, check the integrity and validity of the card and coupon information, and verify the digital signature to ensure that the card and coupon has not been tampered with. If all verifications of the card and coupon pass, the card and coupon is determined to be valid. Verification module: This module evaluates the risk level based on the specific information of the card and the network environment where the current verification operation is located (such as network stability, bandwidth, device security, etc.). Then, according to the risk level, different verification methods are selected (such as single public key verification, digital signature and identity verification combination, or multiple authentication mechanisms, etc.).

[0045] In summary, this application has at least the following effects:

[0046] An intelligent, efficient and secure encrypted card and voucher verification method and device thereof, by adopting a variety of encryption algorithms and digital signature technologies, effectively protects the confidentiality and integrity of card and voucher information, prevents information tampering and forgery, and thus improves the security of the card and voucher verification process. By dynamically selecting encryption algorithms and verification verification modes, the present application can automatically adjust according to different card and voucher types, usage environments and network risk levels, speed up the verification process and reduce manual intervention, and improve verification efficiency. By real-time evaluation of the risk level of the network environment and selecting the corresponding verification mode, it is possible to effectively prevent possible security risks and ensure the security and accuracy of card and voucher verification. Through the intelligent verification process, users do not need complicated operations during the card and voucher verification process, and can quickly and smoothly complete the use of cards and vouchers, which improves the user experience and satisfaction. By recording the key generation information in the blockchain, it is ensured that the key generation process is tamper-proof, which enhances the security and transparency of the entire system.

[0047] It will be appreciated by those skilled in the art that embodiments of the present invention may be provided as methods, systems, or computer program products. Therefore, the present invention may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Furthermore, the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.

[0048] The present invention is described with reference to flowcharts and / or block diagrams of systems, devices (systems), and computer program products according to embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0049] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0050] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.

[0051] Although the preferred embodiments of the present invention have been described, those skilled in the art may make other changes and modifications to these embodiments once they have learned the basic creative concept. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments and all changes and modifications that fall within the scope of the present invention.

[0052] Obviously, those skilled in the art can make various changes and modifications to the present invention without departing from the spirit and scope of the present invention. Thus, if these modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to include these modifications and variations.

Claims

1. An intelligent, efficient, secure and encrypted card and voucher verification method, characterized in that: The following steps are involved: S1. According to the card type and usage environment, set the encryption optimization rules, dynamically select the encryption algorithm, generate the card key, and record the key generation information through the blockchain; S2. Encrypt the card information according to the encryption algorithm, generate a cancellation guidance code and store the card information in the card database; S3. During the card and voucher verification process, the authenticity of the card and voucher is verified according to the verification guidance code, and the card and voucher information is verified through the digital signature to confirm the usage status of the card and voucher; S4. Identify the card information according to the card database and analyze the risk level of the current write-off network environment, and dynamically select the write-off verification mode; The specific process of setting encryption optimization rules according to the card type and usage environment is as follows: The card and voucher types include coupons, membership cards, and gift cards, and the usage environments include online payment, offline consumption, and cross-platform; According to the card type and usage environment, the encryption optimization rules are as follows: Coupons are encrypted using symmetric encryption algorithms in online payment and cross-platform environments, and hybrid encryption in cross-platform environments; Membership cards are encrypted using asymmetric encryption algorithms in online payment and cross-platform environments, and symmetric encryption algorithms in offline consumption environments; Gift cards use hybrid encryption in online payment environments and symmetric encryption to encrypt card information in offline consumption environments; The specific process of verifying the authenticity of the card or voucher based on the verification guidance code is as follows: Extract the verification guidance code and obtain the corresponding encrypted information from the card and coupon database; Use the public key or symmetric key to decrypt the verification guidance code and restore the encrypted card information; Verify the restored card information to check its integrity and consistency, including checking the card number, face value and expiration date fields; Verify the digital signature to ensure that the card information has not been tampered with, and verify the legitimacy of the signature through the public key; When the verification guidance code is consistent with the card information and the digital signature is valid, the card is confirmed to be authentic and valid, otherwise it is considered invalid or forged; The specific process of identifying card information based on the card database and analyzing the risk level of the current verification network environment is as follows: Identify card and voucher information, evaluate the risk level of the current cancellation operation based on the characteristics of the network environment, and determine the security level of the network environment, which is divided into high risk, medium risk, and low risk; Match the network risk level with the card information to determine whether additional verification measures are needed to ensure the security of card verification.

2. According to claim 1, an intelligent, efficient, secure and encrypted card and voucher verification method is characterized by: The specific process of dynamically selecting the encryption algorithm and generating the card voucher key is as follows: Dynamically select encryption algorithms based on encryption optimization rules; For the symmetric encryption algorithm AES, a pseudo-random number generator is used to generate random encryption keys; For the asymmetric encryption algorithm RSA, a pair of public and private keys is generated, the public key is stored on the server, and the private key is kept by the security module; For the hybrid encryption algorithm RSA combined with AES, use the RSA algorithm to generate a pair of keys, use RSA to encrypt the generated AES key, and use AES to encrypt the card data.

3. According to claim 2, an intelligent, efficient, secure and encrypted card and voucher verification method is characterized by: The specific process of encrypting the card information according to the encryption algorithm and generating the cancellation guidance code is as follows: Extract card information, including card number, face value, and validity period; According to the selected encryption algorithm, the encryption processing of the extracted card information includes: For the symmetric encryption algorithm AES, use the generated encryption key to encrypt the card information; For the asymmetric encryption algorithm RSA, the public key is used to encrypt the card information; For hybrid encryption, use the AES key generated by RSA encryption, and then use AES to encrypt the card information; Based on the encrypted card information, a verification guidance code is generated through a digital signature.

4. According to claim 3, an intelligent, efficient, secure and encrypted card and voucher verification method is characterized by: The specific process of verifying the card information through digital signature and confirming the usage status of the card is as follows: Extract the card information and digital signature, check the status field in the card information, and obtain the current status of the card, including unused, used, and expired; When the card or voucher status is unused, it can be redeemed; when the card or voucher status is used or expired, it is considered invalid and cannot be redeemed again; Update the card status according to the verification results, and record the verification information in the database.

5. According to claim 4, an intelligent, efficient, secure and encrypted card and voucher verification method is characterized by: The specific process of dynamically selecting the write-off verification mode is as follows: Based on the risk level of the write-off network environment, the verification mode is dynamically selected, including: In a low-risk environment, use a single public key to verify and compare card and voucher information; In a medium-risk environment, digital signature verification plus secondary identity verification; In high-risk environments, multiple authentication mechanisms are used, including identity authentication, device authentication, and location authentication.

6. An intelligent, efficient, secure and encrypted card and voucher verification device, using an intelligent, efficient, secure and encrypted card and voucher verification method as described in any one of claims 1 to 5, characterized in that: Includes the following modules: Encryption rule setting module, verification guide code generation module, card and voucher verification module, and verification verification module; The encryption rule setting module is used to set encryption optimization rules according to the card type and usage environment, dynamically select encryption algorithms, generate card keys, and record key generation information through blockchain; The verification guidance code generation module is used to encrypt the card and coupon information through an encryption algorithm, generate a verification guidance code and store it in the card and coupon database; The card and voucher verification module is used to verify the authenticity of the card and voucher according to the verification guidance code during the card and voucher verification process, and to verify the card and voucher information through the digital signature to confirm the usage status of the card and voucher; The verification module is used to identify card information according to the card database and analyze the risk level of the current verification network environment, and dynamically select the verification mode.

Citation Information

Patent Citations

  • Safety anti-theft method for electronic coupon transaction or transmission

    CN116192469A

  • Gift card management system

    US20180089665A1

  • Method and system for prevention of fraudulent gift cards via blockchain

    US20190130387A1