Login verification method, device, computer equipment and storage medium
By simulating the natural language description of human shopping and payment scenarios to generate verification codes, the problem of artificial intelligence cracking verification codes is solved, and data security and user experience are improved.
Patent Information
- Application Number
- CN202411896939.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-20
- Publication Date
- 2025-10-03
- Estimated Expiration
- 2044-12-20
AI Technical Summary
With the development of artificial intelligence, the protection of existing verification code technology has gradually decreased, resulting in reduced data security.
By randomly selecting product price information from the preset product price table, generating payment descriptions based on the grammatical structure of natural language, simulating the shopping and payment scenarios of humans in daily life, generating a verification page and verifying the payment answer, the security of user login is improved.
Effectively prevent AI from cracking user login verification, enhance data security on the server side, while maintaining a friendly user experience.
Smart Images

Figure CN119760684B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of information security technology, and in particular to a login verification method, device, computer equipment and storage medium. Background Art
[0002] In the digital age, information system security and personal data protection have become crucial. With the increasing prevalence of cyberattacks and identity theft, ensuring that only authorized users can access sensitive information and critical functions has become a pressing issue. In this context, server user login verification codes, as an effective authentication tool, are widely used in various information systems, playing multiple roles.
[0003] Currently, common verification code formats include SMS verification codes, voice verification codes, image verification codes, and sliding verification codes. Image verification codes require users to identify and enter randomly generated characters, numbers, or graphics, effectively preventing automated script attacks. Sliding verification codes verify identity by moving a slider, providing an intuitive and user-friendly experience. These technologies enhance account security and system resource protection while optimizing the user experience.
[0004] While verification code technologies provide security for information systems, they also have limitations. For example, SMS verification codes are costly, voice verification codes are not user-friendly for hearing-impaired users, and image verification codes and sliding verification codes face the risk of being identified and cracked by intelligent models amidst advances in artificial intelligence. Therefore, with the development of artificial intelligence, the security protection of these verification codes has decreased, leading to a decrease in data security. Summary of the Invention
[0005] In view of this, the present invention provides a login verification method, apparatus, computer device and storage medium to solve the problem in related technologies that with the development of artificial intelligence, the security of verification codes is reduced, which in turn leads to reduced data security.
[0006] In a first aspect, the present invention provides a login verification method, the method comprising:
[0007] Randomly select the price information of at least one product from the preset product price table;
[0008] Determine the total price of the products based on the price information of the filtered products;
[0009] Generate payment description based on the total price of the product and preset payment rules using the grammatical structure of natural language;
[0010] Based on the payment description, a verification page is generated, so that when the user logs in to the server, he or she selects a corresponding payment answer according to the payment description on the verification page and submits the payment answer to the server;
[0011] Receive the payment answer, verify the payment answer, and enter the server login link if the payment answer is verified.
[0012] The login verification method provided in this embodiment randomly selects the price information of at least one commodity from a preset commodity price list, determines the total price of the commodity based on the selected price information, generates a payment description based on the total price and preset payment rules using the grammatical structure of natural language, and then generates a verification page based on the payment description. When logging into the server, the user selects the corresponding payment answer based on the payment description on the verification page, submits the payment answer to the server, verifies the payment answer, and enters the server login process if the verification passes. By applying natural language descriptions and simulating the scenarios people encounter when shopping and paying in daily life to user login verification, this method effectively prevents artificial intelligence from affecting the security protection of user login verification and improves data security on the server.
[0013] In an optional embodiment, the method further includes:
[0014] If the payment answer verification fails, the price information of at least one commodity is randomly screened out from the preset commodity price table, and the total price of the commodity is determined based on the price information of the screened commodity. Based on the total price of the commodity and the preset payment rules, a new payment description is generated using the grammatical structure of natural language. Based on the new payment description, the verification page is refreshed to enable the user to select the corresponding payment answer according to the payment description on the refreshed verification page and submit the payment answer to the server.
[0015] The login verification method provided in this embodiment generates a new payment description if the payment answer fails verification. Based on the new payment description, the verification page is refreshed, allowing the user to select the corresponding payment answer based on the payment description on the refreshed verification page and submit the payment answer to the server. Updating the verification page after each failed verification makes it more difficult for artificial intelligence to crack the verification page, thereby improving data security.
[0016] In an optional embodiment, the payment description is generated based on the total price of the goods and the preset payment rules using the grammatical structure of a natural language, including:
[0017] Get the value of each digit in the total price of the product;
[0018] Based on the value of each digit and the position unit of each digit in the total price of the product, and using the grammatical structure of natural language, the face value and amount of the currency provided to the user in the payment description are generated.
[0019] The login verification method provided in this embodiment generates the denomination and quantity of the currency provided to the user in the payment description based on the value of each digit and the position unit of each digit in the total price of the product and utilizes the grammatical structure of natural language, thereby ensuring the accuracy of the denomination and quantity of the provided currency.
[0020] In an optional implementation, the verifying the payment answer includes:
[0021] Based on the payment answer, determining a total amount corresponding to the payment answer, the quantity of each denomination of currency in the payment answer, and the total quantity of currency in the payment answer;
[0022] Verifying the total amount corresponding to the payment answer, the quantity of each denomination of currency in the payment answer, and the total quantity of currency in the payment answer;
[0023] If the total amount corresponding to the payment answer, the amount of each denomination of currency in the payment answer, and the total amount of currency in the payment answer are all verified, determining that the payment answer is verified;
[0024] If any one of the total amount corresponding to the payment answer, the number of currencies of each denomination in the payment answer, and the total number of currencies in the payment answer fails to be verified, it is determined that the payment answer verification fails.
[0025] The login verification method provided in this embodiment verifies the total amount corresponding to the payment answer submitted by the user, the number of currencies of each denomination in the payment answer, and the total number of currencies in the payment answer, and then determines whether the payment answer is verified. When the payment answer is verified, the login link of the server is entered, thereby ensuring the data security of the server.
[0026] In an optional implementation, verifying the total amount corresponding to the payment answer includes:
[0027] Comparing the total amount corresponding to the payment answer with the total price of the goods;
[0028] If the total amount corresponding to the payment answer is not less than the total price of the goods, then the total amount corresponding to the payment answer is determined to have been verified successfully;
[0029] If the total amount corresponding to the payment answer is less than the total price of the goods, it is determined that the total amount corresponding to the payment answer has failed verification.
[0030] The login verification method provided in this embodiment compares the total amount corresponding to the payment answer with the total price of the goods, and determines whether the total amount corresponding to the payment answer is verified based on the comparison result, thereby ensuring the accuracy of the verification result of the total amount corresponding to the payment answer.
[0031] In an optional embodiment, verifying the amount of each denomination of currency in the payment answer includes:
[0032] Verifying the amount of each denomination of currency in the payment answer based on the denomination and amount of the currency provided to the user in the payment description;
[0033] If the quantity of any currency of the denomination in the payment answer exceeds the quantity of the currency of the same denomination provided to the user in the payment description, then determining that the quantity verification of each currency of the denomination in the payment answer fails;
[0034] If the quantity of each denomination of currency in the payment answer does not exceed the quantity of the corresponding denomination of currency provided to the user in the payment description, it is determined that the quantity of each denomination of currency in the payment answer has been verified.
[0035] The login verification method provided in this embodiment compares the quantity of any denomination of currency in the payment answer with the quantity of currency of the same denomination provided to the user in the payment description, and determines whether the quantity of each denomination of currency in the payment answer has been verified based on the comparison result, thereby ensuring the accuracy of the verification result of the quantity of each denomination of currency in the payment answer.
[0036] In an optional embodiment, verifying the total amount of currency in the payment answer includes:
[0037] determining a plurality of payment combinations based on the total price of the merchandise and the denomination and amount of the currency provided to the user in the payment description;
[0038] Select the target payment combination with the least amount of currency from multiple payment combinations;
[0039] comparing the total amount of currencies in the payment answer with the amount of currencies used in the target payment combination;
[0040] If the total amount of the currency in the payment answer is the same as the amount of the currency used in the target payment combination, then it is determined that the total amount of the currency in the payment answer has been verified;
[0041] If the total amount of currency in the payment answer is different from the amount of currency used in the target payment combination, it is determined that the verification of the total amount of currency in the payment answer has failed.
[0042] The login verification method provided in this embodiment compares the total amount of currency in the payment answer with the amount of currency used in the target payment combination, and determines whether the total amount of currency in the payment answer is verified based on the comparison result, thereby ensuring the accuracy of the verification result of the total amount of currency in the payment answer.
[0043] In a second aspect, the present invention provides a login verification device, the device comprising:
[0044] A screening module is used to randomly screen out price information of at least one commodity from a preset commodity price list;
[0045] A determination module, used to determine the total price of the goods based on the price information of the filtered goods;
[0046] The first generation module is used to generate a payment description based on the total price of the goods and the preset payment rules using the grammatical structure of the natural language;
[0047] A second generating module is configured to generate a verification page based on the payment description, so that when the user logs in to the server, he or she can select a corresponding payment answer according to the payment description on the verification page and submit the payment answer to the server;
[0048] The verification module is used to receive the payment answer, verify the payment answer, and enter the server login link when the payment answer is verified.
[0049] In a third aspect, the present invention provides a computer device comprising: a memory and a processor, the memory and the processor being communicatively connected to each other, the memory storing computer instructions, and the processor executing the login verification method of the first aspect or any corresponding embodiment thereof by executing the computer instructions.
[0050] In a fourth aspect, the present invention provides a computer-readable storage medium having computer instructions stored thereon, the computer instructions being used to enable a computer to execute the login verification method of the first aspect or any corresponding embodiment thereof.
[0051] In a fifth aspect, the present invention provides a computer program product, comprising computer instructions, which are used to enable a computer to execute the login verification method of the first aspect or any corresponding embodiment thereof. BRIEF DESCRIPTION OF THE DRAWINGS
[0052] In order to more clearly illustrate the specific embodiments of the present invention or the technical solutions in related technologies, the following briefly introduces the drawings required for use in the specific embodiments or related technical descriptions. Obviously, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.
[0053] Figure 1 is a flowchart of a login verification method according to an embodiment of the present invention;
[0054] Figure 2 is a schematic diagram of a verification page according to an embodiment of the present invention;
[0055] Figure 3 is a flowchart of another login verification method according to an embodiment of the present invention;
[0056] Figure 4 is a flowchart of another login verification method according to an embodiment of the present invention;
[0057] Figure 5 is a structural block diagram of a login verification device according to an embodiment of the present invention;
[0058] Figure 6 Schematic diagram of the hardware structure of a computer device according to an embodiment of the present invention. DETAILED DESCRIPTION
[0059] To make the purpose, technical solutions, and advantages of the embodiments of the present invention more clear, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without making creative efforts shall fall within the scope of protection of the present invention.
[0060] In the era of rapid digitalization, information system security and personal data protection have become crucial. With the increasing prevalence of cyberattacks and identity theft, ensuring that only authorized users can access sensitive information and critical functions has become a pressing issue. In this context, server user login verification codes, as an effective authentication tool, are widely used in various information systems, playing the following roles:
[0061] Resisting automated attacks: The core value of verification codes lies in their ability to effectively prevent automated scripts and robots from simulating human operations, thereby building a solid line of defense for the system against malicious attacks.
[0062] Enhanced account protection level: By adding a verification code input link, the threshold for illegal intrusion is significantly raised, adding another lock to the security of server user accounts.
[0063] Curbing spam registrations and abuse: In service scenarios where registration is required before use, the verification code acts as a sieve, effectively blocking large-scale spam registrations and abuse attempts by malicious users.
[0064] Maintaining system resource security: By limiting the intrusion of automated scripts, verification codes play a positive role in protecting system resources from being coveted and abused by malicious server users.
[0065] Optimizing user experience: Although verification codes may cause some inconvenience to regular users, contemporary verification code technology is committed to minimizing this inconvenience through more intelligent and human-friendly designs, while providing server users with a safer and more trustworthy service experience.
[0066] Currently, common verification code formats include SMS verification codes, voice verification codes, image verification codes, and sliding verification codes. Image verification codes verify a user's identity by presenting them with a series of randomly generated characters, numbers, or graphic combinations and requiring them to accurately identify and enter these elements. This mechanism has demonstrated significant effectiveness in preventing malicious attacks initiated by automated scripts, significantly improving the overall security of the system.
[0067] Sliding verification codes are presented in a more engaging and user-friendly way. Users simply follow the on-screen instructions and move the slider to the designated position to complete the verification process. This operation mode is not only intuitive and easy to understand, but also effectively distinguishes real users from automated scripts. Sliding verification codes not only improve the user experience but also ensure the robustness of system security.
[0068] However, while verification code technologies provide security for information systems, they also have limitations. For example, SMS verification codes, while highly secure, are costly, requiring each trigger to pay the SMS fee, and are susceptible to mobile network conditions. Voice verification codes are not user-friendly for hearing-impaired users. Furthermore, image verification codes and sliding verification codes are becoming more susceptible to being cracked by advanced visual recognition models, driven by advances in artificial intelligence. Specifically, the graphical elements and sliding paths of these verification codes may become increasingly susceptible to identification and analysis by intelligent models.
[0069] Therefore, with the development of artificial intelligence, the security protection function of these verification codes has been weakened, which in turn leads to reduced data security.
[0070] An embodiment of the present invention provides a login verification method, which introduces a new verification code mechanism, based on natural language description and the judgment of humans when purchasing items in daily life based on the currency denomination they hold and the required payment amount, and then determines the scenario simulation of the currency denomination and denomination combination required for payment, and applies it to user login verification to effectively prevent the security protection impact of artificial intelligence on user login verification, continuously and effectively resist automated attacks, while taking into account the friendliness of user experience, and improving the data security of the server.
[0071] For example, let's say you go to the supermarket and buy a dozen Cokes for 19.90 yuan. In your wallet, you have 100-yuan, 10-yuan, 20-yuan, 5-jiao, and 10-jiao notes. It's easy for a human to determine which denominations to use to pay, ensuring both the required payment amount and the simple and efficient change process. This process focuses on how people make quick and reasonable payment decisions based on the price of the item and the denominations of the currency they hold. This decision not only reflects people's familiarity with currency denominations but also their wisdom and experience in handling money in daily life. By simulating this scenario and applying it to server user login, machine recognition would be difficult to determine. In addition to understanding the natural language description, it also needs to be able to infer the denominations based on the available currency. This verification method is more user-friendly but more difficult for machines. This approach can, to a certain extent, prevent the system from being hacked by automated scripts, effectively preventing automated verification by robots and ensuring system security.
[0072] According to an embodiment of the present invention, an embodiment of a login verification method is provided. It should be noted that the steps shown in the flowchart of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and although a logical order is shown in the flowchart, in some cases, the steps shown or described can be executed in an order different from that shown here.
[0073] In this embodiment, a login verification method is provided, which can be used on a server side. The server side can be a software system equipped with a user login verification function, including but not limited to information systems, website platforms and mobile applications, server remote multi-user login, etc. Figure 1 : is a flowchart of a login verification method according to an embodiment of the present invention. Figure 1 As shown, the process includes the following steps:
[0074] Step S101: randomly selecting price information of at least one commodity from a preset commodity price table.
[0075] The preset commodity price list may be composed of prices of some commodities in supermarkets in daily life. For example, the preset commodity price list may be as shown in Table 1.
[0076] Table 1
[0077] ID name Reference price (yuan) Remark 0 cooking oil 100.00 1 rice 58.00 2 Fruit Box 38.00
[0078] It can be seen that the price of cooking oil is 100 yuan, the price of rice is 58 yuan, and the price of the fruit box is 38 yuan.
[0079] In order to prevent the total amount from being too large, generally, the price information of 3 to 5 commodities is randomly selected from the preset commodity price table.
[0080] For example, the price information of cooking oil and rice is filtered out from the preset commodity price table in Table 1.
[0081] Step S102: determining the total price of the products based on the price information of the filtered products.
[0082] After randomly screening out price information of at least one commodity, the total price of the commodities is determined based on the price information of the screened commodities.
[0083] For example, after filtering out the price information of cooking oil and the price information of rice, it can be determined that the total price of these two commodities is: 100+58=158.
[0084] Step S103: Based on the total price of the goods and the preset payment rules, a payment description is generated using the grammatical structure of natural language.
[0085] Among them, the preset payment rule can be to limit the number of currencies of different denominations that the user can use for verification based on the total price of the goods, to prevent the situation where all verifications are performed using currencies of 1 yuan or 10 cents.
[0086] If there are no restrictions, users are likely to choose 158 one-yuan currencies for payment, which reduces the difficulty of cracking the automated script.
[0087] Exemplarily, the preset payment rules may include that the amount of currency that the user can use for verification should be as small as possible less than 1,000 yuan, the number of small-denomination currencies should be limited, for example, 10 cents, 50 cents, 1 yuan and other denominations should be limited to less than 10 bills, and the amount of large-denomination currencies such as 100 yuan, 50 yuan and other currencies should be as small as possible less than the total price of the goods to be paid.
[0088] For example, after determining that the total price of two commodities is 158, based on the total price of commodities and the preset payment rules, the generated payment description using the grammatical structure of natural language can be: Go to the supermarket to buy a bag of rice and a barrel of oil for a total of 158 yuan. You have 1 100-yuan banknote, 2 20-yuan banknotes, and 3 50-yuan banknotes. Please select the appropriate denomination and quantity to pay.
[0089] Step S104: Generate a verification page based on the payment description, so that when the user logs in to the server, he or she can select the corresponding payment answer according to the payment description on the verification page and submit the payment answer to the server.
[0090] After generating the payment description, the server generates a verification page based on the payment description. The verification page is used to verify the user's identity when the user logs in to the server.
[0091] Figure 2 Schematic diagram of a verification page according to an embodiment of the present invention. Figure 2 As shown, the verification page includes a description of the payment, as well as a set of currency denominations that can be used in daily life and an optional quantity of each denomination.
[0092] When users log in to the server, they can follow the payment description on the verification page. Figure 2 Select the corresponding payment answer from the set of currency denominations and optional quantities of each denomination that can be used in daily life provided below, and submit the payment answer to the server for verification.
[0093] It should be noted that the payment description is displayed in the form of an image on the verification page, which can further increase the difficulty of cracking by automated scripts.
[0094] For example, when the payment description is "I go to the supermarket to buy a bag of rice and a barrel of oil for a total of 158 yuan. You have 1 100-yuan banknote, 2 20-yuan banknotes and 3 50-yuan banknotes. Please choose the appropriate denomination and quantity to pay", the user can choose 1 100-yuan banknote, 1 50-yuan banknote and 1 50-yuan banknote as payment answers. The user can also choose 3 50-yuan banknotes and 1 20-yuan banknote as payment answers. Of course, the user can also choose other combinations as payment answers, which are not listed here one by one.
[0095] Step S105: Receive the payment answer and verify the payment answer. If the payment answer is verified, enter the server login link.
[0096] After receiving the payment answer submitted by the user, the server verifies the payment answer to determine whether it is correct. If the payment answer passes the verification, it means that the payment answer is correct, and then the server login process begins, that is, based on the username and password entered by the user, whether to log in to the server.
[0097] The login verification method provided in this embodiment randomly selects the price information of at least one commodity from a preset commodity price list, determines the total price of the commodity based on the selected price information, generates a payment description based on the total price and preset payment rules using the grammatical structure of natural language, and then generates a verification page based on the payment description. When logging into the server, the user selects the corresponding payment answer based on the payment description on the verification page, submits the payment answer to the server, verifies the payment answer, and enters the server login process if the verification passes. By applying natural language descriptions and simulating the scenarios people encounter when shopping and paying in daily life to user login verification, this method effectively prevents artificial intelligence from affecting the security protection of user login verification and improves data security on the server.
[0098] In this embodiment, a login verification method is provided, which can be used on the server side. Figure 3 : is a flowchart of a login verification method according to an embodiment of the present invention. Figure 3 As shown, the process includes the following steps:
[0099] Step S301: Randomly select the price information of at least one commodity from the preset commodity price table. Figure 1 Step S101 of the illustrated embodiment will not be described in detail here.
[0100] Step S302: Determine the total price of the products based on the price information of the products that have been filtered out. Figure 1 Step S102 of the illustrated embodiment will not be described in detail here.
[0101] Step S303: Generate a payment description based on the total price of the goods and the preset payment rules using the grammatical structure of natural language.
[0102] Specifically, the above step S303 includes:
[0103] Step S3031, obtaining the value of each digit in the total price of the product.
[0104] After obtaining the total price of the product, the value of each digit in the total price of the product is obtained.
[0105] For example, if the total price of the product is 158, then 1, 5, and 8 are obtained.
[0106] Step S3032: Based on the value of each digit and the position unit of each digit in the total price of the product, the denomination and amount of the currency provided to the user in the payment description are generated using the grammatical structure of the natural language.
[0107] Exemplarily, after obtaining 1, 5, and 8, the position unit of the bit corresponding to 1 is hundreds, the position unit of the bit corresponding to 5 is tens, and the position unit of the bit corresponding to 8 is units.
[0108] To increase the difficulty of cracking, the denominations of the currencies provided to the user in the payment description should be as large as possible. In other words, the preset payment rule may also include the denominations of the currencies provided to the user being as large as possible.
[0109] Therefore, when the hundredth digit of the total price of the commodity is 1, it is determined that a 100-yuan currency note is provided to the user.
[0110] When the tens digit of the total price of the product is 5, the user can be provided with a 50-yuan banknote, three 20-yuan banknotes, two 20-yuan banknotes and a 10-yuan banknote, or five 10-yuan banknotes.
[0111] When the unit digit of the total price of the product is 8, a 10-yuan note may be provided to the user.
[0112] After determining the denomination and amount of the currency provided to each person, the denomination and amount of the currency provided to each person will be counted to determine the denomination and amount of the currency provided to the user.
[0113] That is, according to the value of each digit in the total price of the commodity and the position unit of each digit, the denomination and amount of currency provided for each digit are determined;
[0114] Based on the denomination and amount of the currency provided for each person, the denomination and amount of the currency provided for the user in the payment description are generated using the grammatical structure of the natural language.
[0115] Step S304: Generate a verification page based on the payment description, so that when the user logs in to the server, he or she can select the corresponding payment answer according to the payment description on the verification page and submit the payment answer to the server. Figure 1 Step S104 of the illustrated embodiment will not be described in detail here.
[0116] Step S305: Receive the payment answer and verify the payment answer. If the payment answer is verified, enter the server login link. Figure 1 Step S105 of the illustrated embodiment will not be described in detail here.
[0117] The login verification method provided in this embodiment generates the denomination and quantity of the currency provided to the user in the payment description based on the value of each digit and the position unit of each digit in the total price of the product and utilizes the grammatical structure of natural language, thereby ensuring the accuracy of the denomination and quantity of the provided currency.
[0118] In some optional implementations, the login verification method further includes:
[0119] Step a1: If the payment answer verification fails, the price information of at least one commodity is randomly screened out from the preset commodity price table. The total price of the commodity is determined based on the price information of the screened commodity. Based on the total price of the commodity and the preset payment rules, a new payment description is generated using the grammatical structure of natural language. Based on the new payment description, the verification page is refreshed so that the user can select the corresponding payment answer according to the payment description on the refreshed verification page and submit the payment answer to the server.
[0120] If the payment answer fails verification, indicating it's incorrect, the server will randomly change the question for user login verification. This randomly changes the question by randomly selecting at least one product's price from a preset price list. Based on this selected price, the server determines the total price. Based on the total price and preset payment rules, the server generates a new payment description using natural language syntax. The verification page then refreshes based on the new payment description.
[0121] The login verification method provided in this embodiment generates a new payment description if the payment answer fails verification. Based on the new payment description, the verification page is refreshed, allowing the user to select the corresponding payment answer based on the payment description on the refreshed verification page and submit the payment answer to the server. Updating the verification page after each failed verification makes it more difficult for artificial intelligence to crack the verification page, thereby improving data security.
[0122] In some optional implementations, the above step S305 includes:
[0123] Step b1, based on the payment answer, determining the total amount corresponding to the payment answer, the number of currencies of each denomination in the payment answer, and the total number of currencies in the payment answer.
[0124] Among them, after receiving the payment answer submitted by the user, the server determines the total amount corresponding to the payment answer, the number of currencies of each denomination in the payment answer and the total number of currencies in the payment answer based on the payment answer submitted by the user.
[0125] Step b2: verifying the total amount corresponding to the payment answer, the quantity of each denomination of currency in the payment answer, and the total quantity of currency in the payment answer.
[0126] Step b3: If the total amount corresponding to the payment answer, the quantity of each denomination of currency in the payment answer, and the total quantity of currency in the payment answer are all verified, it is determined that the payment answer verification is passed.
[0127] Step b4: If any one of the total amount corresponding to the payment answer, the number of currencies of each denomination in the payment answer, and the total number of currencies in the payment answer fails to be verified, it is determined that the payment answer verification fails.
[0128] The login verification method provided in this embodiment verifies the total amount corresponding to the payment answer submitted by the user, the number of currencies of each denomination in the payment answer, and the total number of currencies in the payment answer, and then determines whether the payment answer is verified. When the payment answer is verified, the login link of the server is entered, thereby ensuring the data security of the server.
[0129] In some optional implementations, verifying the total amount corresponding to the payment answer includes:
[0130] Step c1, compare the total amount corresponding to the payment answer with the total price of the goods.
[0131] Step c2: If the total amount corresponding to the payment answer is not less than the total price of the goods, it is determined that the total amount corresponding to the payment answer has been verified.
[0132] Step c3: If the total amount corresponding to the payment answer is less than the total price of the goods, it is determined that the total amount corresponding to the payment answer has failed verification.
[0133] The login verification method provided in this embodiment compares the total amount corresponding to the payment answer with the total price of the goods, and determines whether the total amount corresponding to the payment answer is verified based on the comparison result, thereby ensuring the accuracy of the verification result of the total amount corresponding to the payment answer.
[0134] In some optional implementations, verifying the amount of each denomination of currency in the payment answer includes:
[0135] Step d1 , based on the denomination and quantity of the currency provided to the user in the payment description, verifies the quantity of each denomination of currency in the payment answer.
[0136] Step d2: If the quantity of any currency of any denomination in the payment answer exceeds the quantity of the currency of the same denomination provided to the user in the payment description, it is determined that the quantity verification of each currency of the denomination in the payment answer has failed.
[0137] Step d3: If the quantity of each denomination of currency in the payment answer does not exceed the quantity of the corresponding denomination of currency provided to the user in the payment description, it is determined that the quantity of each denomination of currency in the payment answer has been verified.
[0138] The login verification method provided in this embodiment compares the quantity of any denomination of currency in the payment answer with the quantity of currency of the same denomination provided to the user in the payment description, and determines whether the quantity of each denomination of currency in the payment answer has been verified based on the comparison result, thereby ensuring the accuracy of the verification result of the quantity of each denomination of currency in the payment answer.
[0139] In some optional implementations, the total amount of currency in the payment answer is verified, including:
[0140] In step e1 , multiple payment combinations are determined based on the total price of the product and the denomination and amount of the currency provided by the user in the payment description.
[0141] Step e2: Filter out the target payment combination with the least amount of currency used from the multiple payment combinations.
[0142] Among them, the amount of currency used is the least, that is, the number of currency notes used is the least.
[0143] In step e3, the total amount of the currency in the payment answer is compared with the amount of currency used in the target payment combination.
[0144] Here, the total amount of currency in the payment answer, that is, the total number of currency sheets, is compared with the number of currency sheets used in the target payment combination.
[0145] In step e4, if the total amount of the currency in the payment answer is the same as the amount of the currency used in the target payment combination, it is determined that the total amount of the currency in the payment answer has been verified.
[0146] In step e5, if the total amount of the currency in the payment answer is different from the amount of the currency used in the target payment combination, it is determined that the verification of the total amount of the currency in the payment answer has failed.
[0147] The login verification method provided in this embodiment compares the total amount of currency in the payment answer with the amount of currency used in the target payment combination, and determines whether the total amount of currency in the payment answer is verified based on the comparison result, thereby ensuring the accuracy of the verification result of the total amount of currency in the payment answer.
[0148] In some optional implementations, the login verification method further includes:
[0149] Step f1: If the number of times the verification page is refreshed exceeds the preset threshold and the payment answer verification still fails, stop executing the steps of randomly screening out the price information of at least one commodity from the preset commodity price table, determining the total price of the commodity based on the price information of the screened commodity, generating a new payment description based on the total price of the commodity and the preset payment rules using the grammatical structure of natural language, and refreshing the verification page based on the new payment description to determine that the user cannot log in to the server.
[0150] The preset number threshold is set by technical personnel and is not specifically limited here.
[0151] If the number of times the verification page is refreshed exceeds the preset threshold and the payment answer verification still fails, it can be considered that it is very likely that an automated script has cracked the verification code. In this case, the page will be stopped from being refreshed for user login verification, and the user will be directly determined to be unable to log in to the server.
[0152] It is understandable that when the number of times the verification page is refreshed exceeds the preset threshold and the payment answer verification still fails, an alarm can also be issued to enable the server maintenance personnel to determine the abnormal situation based on the alarm and ensure the data security of the server.
[0153] The login verification method provided in this embodiment can effectively prevent automated scripts from cracking verification codes through a large number of attempts by setting a preset number of times, thereby protecting the server from malicious attacks and improving the data security of the server.
[0154] In this embodiment, a login verification method is provided, which can be used on the server side. Figure 4 : is a flowchart of a login verification method according to an embodiment of the present invention. Figure 4 As shown, the process includes the following steps:
[0155] 1. Data preparation.
[0156] Among them, common data prepared for remote user verification is a preset commodity price list.
[0157] 2. Randomly select question verification, which requires 3-5 items and calculates the total payment amount. This involves randomly selecting at least one item's price information from a preset item price list and determining the total price based on the selected item's price information. For details, refer to the descriptions of steps S301 and S302 above and will not be repeated here.
[0158] 3. Limit the number of currencies of different denominations that users can use for verification based on the total amount to prevent situations where only 1 yuan or 10 cents denomination currencies are used for verification.
[0159] The description corresponding to the aforementioned step S303 is omitted here.
[0160] 4. Display Verification Module. When the user logs in to the server, a verification page is displayed to the user, allowing the user to select the corresponding payment method based on the payment instructions on the verification page and submit the verification. Please refer to the description of step S304 above for details and will not be repeated here.
[0161] 5. Get user verification data.
[0162] 6. Calculate and confirm the verification results.
[0163] Step 5 and step 6 correspond to the detailed description of the aforementioned step S305 and are not repeated here.
[0164] The login verification method provided in this embodiment utilizes human text recognition and reasoning capabilities, and is applied to user login verification based on natural language descriptions and payment scenarios encountered by people when shopping and paying in daily life. This method significantly improves security by preventing the use of artificial intelligence (AI) to identify and crack verification codes, and plays a very important role in protecting user login security in information systems.
[0165] This embodiment also provides a login verification device for implementing the above-mentioned embodiments and preferred implementations. Details already described will not be repeated here. As used below, the term "module" may refer to a combination of software and / or hardware that implements a predetermined function. Although the devices described in the following embodiments are preferably implemented in software, implementation using hardware, or a combination of software and hardware, is also possible and contemplated.
[0166] This embodiment provides a login verification device, such as Figure 5 Shown, including:
[0167] The screening module 501 is used to randomly screen out price information of at least one commodity from a preset commodity price list.
[0168] The determination module 502 is configured to determine the total price of the products based on the price information of the filtered products.
[0169] The first generating module 503 is configured to generate a payment description based on the total price of the product and the preset payment rules using the grammatical structure of the natural language.
[0170] The second generating module 504 is used to generate a verification page based on the payment description, so that when the user logs in to the server, he or she can select the corresponding payment answer according to the payment description on the verification page and submit the payment answer to the server.
[0171] The verification module 505 is used to receive the payment answer, verify the payment answer, and enter the server login link when the payment answer is verified.
[0172] In some optional implementations, the login verification device further includes:
[0173] The refresh module is used to randomly select the price information of at least one commodity from the preset commodity price table when the payment answer verification fails, determine the total price of the commodity based on the price information of the selected commodity, generate a new payment description based on the total price of the commodity and the preset payment rules using the grammatical structure of natural language, and refresh the verification page based on the new payment description, so that the user can select the corresponding payment answer according to the payment description on the refreshed verification page and submit the payment answer to the server.
[0174] In some optional implementations, the first generating module 503 includes:
[0175] The first acquiring unit is used to acquire the value of each digit in the total price of the product.
[0176] The first generating unit is configured to generate a denomination and amount of currency provided to the user in the payment description based on the value of each digit and the position unit of each digit in the total price of the commodity and using a grammatical structure of a natural language.
[0177] In some optional implementations, the verification module 505 includes:
[0178] The first determining unit is configured to determine, based on the payment answer, a total amount corresponding to the payment answer, the quantity of each denomination of currency in the payment answer, and the total quantity of currency in the payment answer.
[0179] The first verification unit is used to verify the total amount corresponding to the payment answer, the amount of each denomination of currency in the payment answer, and the total amount of currency in the payment answer.
[0180] The second determining unit is configured to determine that the payment answer verification is passed when the total amount corresponding to the payment answer, the quantity of each denomination of currency in the payment answer, and the total quantity of currency in the payment answer are all verified.
[0181] The third determining unit is configured to determine that the payment answer verification fails if any one of the total amount corresponding to the payment answer, the number of currencies of each denomination in the payment answer, and the total number of currencies in the payment answer fails to be verified.
[0182] In some optional embodiments, the first verification unit includes:
[0183] The first comparison unit is configured to compare the total amount corresponding to the payment answer with the total price of the goods.
[0184] The fourth determining unit is configured to determine that the total amount corresponding to the payment answer has been verified if the total amount corresponding to the payment answer is not less than the total price of the goods.
[0185] The fifth determining unit is configured to determine that the total amount corresponding to the payment answer has failed verification if the total amount corresponding to the payment answer is less than the total price of the goods.
[0186] In some optional embodiments, the first verification unit includes:
[0187] The second verification unit is used to verify the quantity of each denomination of currency in the payment answer according to the denomination and quantity of the currency provided to the user in the payment description.
[0188] The sixth determining unit is configured to determine that the quantity verification of each denomination of currency in the payment answer fails if the quantity of any denomination of currency in the payment answer exceeds the quantity of the currency of the same denomination provided to the user in the payment description.
[0189] The seventh determining unit is configured to determine that the verification of the quantity of each denomination of currency in the payment answer is passed if the quantity of each denomination of currency in the payment answer does not exceed the quantity of the corresponding denomination of currency provided to the user in the payment description.
[0190] In some optional embodiments, the first verification unit includes:
[0191] The eighth determining unit is configured to determine a plurality of payment combinations based on the total price of the product and the denomination and amount of the currency provided to the user in the payment description.
[0192] The first screening unit is used to screen out a target payment combination with the least amount of currency used from multiple payment combinations.
[0193] The second comparing unit is configured to compare the total amount of currencies in the payment answer with the amount of currencies used in the target payment combination.
[0194] The ninth determining unit is configured to determine that the total amount of the currency in the payment answer has been verified if the total amount of the currency in the payment answer is the same as the amount of the currency used in the target payment combination.
[0195] The tenth determining unit is configured to determine that the verification of the total amount of the currency in the payment answer fails if the total amount of the currency in the payment answer is different from the amount of the currency used in the target payment combination.
[0196] The further functional description of each of the above modules and units is the same as that of the above corresponding embodiments and will not be repeated here.
[0197] The login verification device in this embodiment is presented in the form of a functional unit, where the unit refers to an ASIC (Application Specific Integrated Circuit) circuit, a processor and memory that executes one or more software or fixed programs, and / or other devices that can provide the above functions.
[0198] The embodiment of the present invention also provides a computer device having the above Figure 5 The login verification device shown.
[0199] See also Figure 6 , Figure 6 is a structural diagram of a computer device provided by an optional embodiment of the present invention, such as Figure 6 As shown, the computer device includes: one or more processors 601, memory 602, and the interface for connecting each component, including a high-speed interface and a low-speed interface. Each component utilizes different buses to communicate with each other and can be installed on a common mainboard or installed in other ways as needed. The processor can process the instruction executed in the computer device, including being stored in the memory or on the memory to display the graphic information of the GUI on an external input / output device (such as, being coupled to the display device of the interface). In some optional embodiments, if necessary, multiple processors and / or multiple buses can be used together with multiple memories and multiple memories. Equally, multiple computer devices can be connected, and each device provides the necessary operation of part (for example, as a server array, a group of blade servers, or a multi-processor system). Figure 6 A processor 601 is taken as an example.
[0200] Processor 601 may be a central processing unit, a network processor, or a combination thereof. Processor 601 may further include a hardware chip. The hardware chip may be an application-specific integrated circuit, a programmable logic device, or a combination thereof. The programmable logic device may be a complex programmable logic device, a field programmable gate array, a general purpose array logic, or any combination thereof.
[0201] The memory 602 stores instructions that can be executed by at least one processor 601, so as to enable the at least one processor 601 to execute the method shown in the above embodiment.
[0202] The memory 602 may include a program storage area and a data storage area, wherein the program storage area may store an operating system and application programs required for at least one function; the data storage area may store data created based on the use of the computer device, etc. In addition, the memory 602 may include a high-speed random access memory, and may also include a non-transient memory, such as at least one disk storage device, a flash memory device, or other non-transient solid-state storage device. In some optional embodiments, the memory 602 may optionally include a memory remotely located relative to the processor 601, and these remote memories may be connected to the computer device via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.
[0203] The memory 602 may include a volatile memory, such as a random access memory; the memory may also include a non-volatile memory, such as a flash memory, a hard disk or a solid-state drive; the memory 602 may also include a combination of the above types of memory.
[0204] The computer device further includes a communication interface 603 for the computer device to communicate with other devices or a communication network.
[0205] The embodiment of the present invention also provides a computer-readable storage medium. The above-mentioned method according to the embodiment of the present invention can be implemented in hardware, firmware, or implemented as a computer code that can be recorded in a storage medium, or implemented as a computer code that is originally stored in a remote storage medium or a non-temporary machine-readable storage medium and downloaded through a network and will be stored in a local storage medium, so that the method described herein can be stored in such software processing on a storage medium using a general-purpose computer, a dedicated processor, or programmable or dedicated hardware. Among them, the storage medium can be a magnetic disk, an optical disk, a read-only storage memory, a random access memory, a flash memory, a hard disk or a solid-state drive, etc.; further, the storage medium can also include a combination of the above-mentioned types of memory. It can be understood that a computer, a processor, a microprocessor controller or programmable hardware includes a storage component that can store or receive software or computer code. When the software or computer code is accessed and executed by a computer, a processor or hardware, the method shown in the above embodiment is implemented.
[0206] A portion of the present invention may be applied as a computer program product, such as a computer program instruction, which, when executed by a computer, can call or provide the method and / or technical solution according to the present invention through the operation of the computer. Those skilled in the art should understand that the form in which the computer program instruction exists in a computer-readable medium includes, but is not limited to, a source file, an executable file, an installation package file, etc. Accordingly, the way in which the computer program instruction is executed by the computer includes, but is not limited to: the computer directly executes the instruction, or the computer compiles the instruction and then executes the corresponding compiled program, or the computer reads and executes the instruction, or the computer reads and installs the instruction and then executes the corresponding installed program. Here, the computer-readable medium may be any available computer-readable storage medium or communication medium that can be accessed by the computer.
[0207] Although the embodiments of the present invention have been described with reference to the accompanying drawings, those skilled in the art may make various modifications and variations without departing from the spirit and scope of the present invention. Such modifications and variations are all within the scope defined by the appended claims.
Claims
1. A login verification method, characterized in that: The method comprises: Randomly select the price information of at least one product from the preset product price table; Determine the total price of the products based on the price information of the filtered products; Generate a payment description using the grammatical structure of natural language based on the total price of the goods and a preset payment rule, wherein the preset payment rule limits the number of different denominations of currency that the user can use for verification based on the total price of the goods; Based on the payment description, a verification page is generated, so that when the user logs in to the server, he or she selects a corresponding payment answer according to the payment description on the verification page and submits the payment answer to the server; Receive the payment answer, verify the payment answer, and enter the server login link if the payment answer passes the verification; The payment description is generated based on the total price of the goods and the preset payment rules using the grammatical structure of natural language, including: Get the value of each digit in the total price of the product; Based on the value of each digit and the position unit of each digit in the total price of the product, and using the grammatical structure of natural language, the face value and amount of the currency provided to the user in the payment description are generated.
2. The method according to claim 1, characterized in that The method further comprises: If the payment answer verification fails, the price information of at least one commodity is randomly screened out from the preset commodity price table, and the total price of the commodity is determined based on the price information of the screened commodity. Based on the total price of the commodity and the preset payment rules, a new payment description is generated using the grammatical structure of natural language. Based on the new payment description, the verification page is refreshed to enable the user to select the corresponding payment answer according to the payment description on the refreshed verification page and submit the payment answer to the server.
3. The method according to claim 1, characterized in that The verifying of the payment answer includes: Based on the payment answer, determining a total amount corresponding to the payment answer, the quantity of each denomination of currency in the payment answer, and the total quantity of currency in the payment answer; Verifying the total amount corresponding to the payment answer, the quantity of each denomination of currency in the payment answer, and the total quantity of currency in the payment answer; If the total amount corresponding to the payment answer, the amount of each denomination of currency in the payment answer, and the total amount of currency in the payment answer are all verified, determining that the payment answer is verified; If any one of the total amount corresponding to the payment answer, the number of currencies of each denomination in the payment answer, and the total number of currencies in the payment answer fails to be verified, it is determined that the payment answer verification fails.
4. The method according to claim 3, characterized in that Verify the total amount corresponding to the payment answer, including: Comparing the total amount corresponding to the payment answer with the total price of the goods; If the total amount corresponding to the payment answer is not less than the total price of the goods, then the total amount corresponding to the payment answer is determined to have been verified successfully; If the total amount corresponding to the payment answer is less than the total price of the goods, it is determined that the total amount corresponding to the payment answer has failed verification.
5. The method according to claim 3, characterized in that Verify the amount of each denomination of currency in the payment answer, including: Verifying the amount of each denomination of currency in the payment answer based on the denomination and amount of the currency provided to the user in the payment description; If the quantity of any currency of the denomination in the payment answer exceeds the quantity of the currency of the same denomination provided to the user in the payment description, then determining that the quantity verification of each currency of the denomination in the payment answer fails; If the quantity of each denomination of currency in the payment answer does not exceed the quantity of the corresponding denomination of currency provided to the user in the payment description, it is determined that the quantity of each denomination of currency in the payment answer has been verified.
6. The method according to claim 3, characterized in that Verify the total amount of currency in the payment answer, including: determining a plurality of payment combinations based on the total price of the merchandise and the denomination and amount of the currency provided to the user in the payment description; Select the target payment combination with the least amount of currency from multiple payment combinations; comparing the total amount of currencies in the payment answer with the amount of currencies used in the target payment combination; If the total amount of the currency in the payment answer is the same as the amount of the currency used in the target payment combination, then it is determined that the total amount of the currency in the payment answer has been verified; If the total amount of currency in the payment answer is different from the amount of currency used in the target payment combination, it is determined that the verification of the total amount of currency in the payment answer has failed.
7. A login verification device, characterized in that: The device comprises: A screening module is used to randomly screen out price information of at least one commodity from a preset commodity price list; A determination module, used to determine the total price of the goods based on the price information of the filtered goods; A first generating module is configured to generate a payment description using a natural language grammatical structure based on the total price of the product and a preset payment rule, wherein the preset payment rule is configured to limit the number of currencies of different denominations that a user can use for verification based on the total price of the product; A second generating module is configured to generate a verification page based on the payment description, so that when the user logs in to the server, he or she can select a corresponding payment answer according to the payment description on the verification page and submit the payment answer to the server; A verification module, configured to receive the payment answer, verify the payment answer, and enter the server login link if the payment answer passes the verification; The first generation module includes: A first acquiring unit, configured to acquire the value of each digit in the total price of the commodity; The first generating unit is configured to generate the denomination and quantity of the currency provided to the user in the payment description based on the value of each digit and the position unit of each digit in the total price of the commodity and using the grammatical structure of a natural language.
8. A computer device, characterized in that: include: A memory and a processor, wherein the memory and the processor are communicatively connected to each other, the memory stores computer instructions, and the processor executes the login verification method according to any one of claims 1 to 6 by executing the computer instructions.
9. A computer-readable storage medium, characterized in that The computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a computer to execute the login verification method according to any one of claims 1 to 6.
Citation Information
Patent Citations
Login verification method, server and computer readable storage medium
CN108182355A
Batch payment processing method and device
CN113095830A