Login verification method and device, computer equipment and storage medium

By simulating human shopping payment scenarios and generating payment descriptions and verification pages in natural language, the problem of existing verification code technology being reduced in protection under the development of artificial intelligence is solved, and data security and ability to resist automated attacks are improved.

CN119760684AActive Publication Date: 2025-04-04INSPUR SUZHOU INTELLIGENT TECH CO LTD
View PDF 8 Cites 0 Cited by

Patent Information

Application Number
CN202411896939.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-12-20
Publication Date
2025-04-04
Estimated Expiration
2044-12-20

AI Technical Summary

Technical Problem

With the development of artificial intelligence, the existing verification code technology has gradually decreased in terms of protection, resulting in a decline in data security.

Method used

By randomly filtering product price information from the preset product price list, determining the total product price, and generating a natural language payment description based on this, creating a verification page, allowing users to select payment answers based on the payment description for verification.

Benefits of technology

It effectively prevents the security protection impact of artificial intelligence on user login verification, improves the data security of the server, and enhances its resistance to automated attacks.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119760684A_ABST
    Figure CN119760684A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of information security, and discloses a login verification method and device, computer equipment and a storage medium, and the method comprises the steps: randomly screening the price information of at least one commodity from a preset commodity price list, and determining the total price of the commodity based on the screened price information of the commodity; based on the total commodity price and a preset payment rule, a grammatical structure of a natural language is utilized to generate payment description; based on the payment description, generating a verification page, so that the user selects a corresponding payment answer according to the payment description of the verification page when logging in the server, and submits the payment answer to the server; and receiving the payment answer, verifying the payment answer, and entering a server login link under the condition that the payment answer passes the verification. According to the invention, the data security is improved.
Need to check novelty before this filing date? Find Prior Art

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 critical. With the frequent occurrence of cyber attacks and identity theft, ensuring that only authorized users can access sensitive information and key functions has become an urgent issue that needs to be addressed. In this context, server user login verification codes, as an effective identity authentication tool, are widely used in various information systems and play multiple roles.

[0003] At present, common verification code forms include SMS verification code, voice verification code, image verification code and sliding verification code. Image verification code requires users to identify and enter randomly generated characters, numbers or graphics, effectively preventing automated script attacks. Sliding verification code verifies identity by moving a slider, providing an intuitive and user-friendly experience. These technologies improve account security and system resource protection, while optimizing user experience.

[0004] Although verification code technologies provide security for information systems, they also have limitations. For example, SMS verification codes are costly, voice verification codes are not friendly to hearing-impaired users, and image verification codes and sliding verification codes face the risk of being recognized and cracked by intelligent models in the context of advances in artificial intelligence technology. Therefore, with the development of artificial intelligence, the security protection of these verification codes has decreased, which in turn leads to reduced 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 the related art 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 commodity from the preset commodity 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 goods 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, according to the payment description on the verification page, the user selects a corresponding payment answer and submits the payment answer to the server;

[0011] The payment answer is received, and the payment answer is verified. If the payment answer is verified, the server login link is entered.

[0012] The login verification method provided in this embodiment randomly selects the price information of at least one commodity from the preset commodity price table, determines the total price of the commodity based on the price information of the selected commodity, generates a payment description based on the total price of the commodity and the preset payment rules, and generates a verification page based on the payment description, so that when the user logs in to the server, according to the payment description on the verification page, the user selects the corresponding payment answer, submits the payment answer to the server, verifies the payment answer, and enters the server login link if the verification is passed. Based on the natural language description and the application of the situation simulation encountered by people when shopping and paying in daily life to the user login verification, it effectively prevents the security protection of artificial intelligence from affecting the user login verification, and improves the data security of 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 allow 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 when the payment answer verification fails, and refreshes the verification page based on the new payment description, so that the user selects the corresponding payment answer according to the payment description on the refreshed verification page and submits the payment answer to the server. The verification page is updated every time the verification fails, which can increase the difficulty of artificial intelligence to crack the verification page and improve data security.

[0016] In an optional implementation, 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:

[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 commodity, and using the grammatical structure of natural language, the denomination and quantity 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 commodity 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 manner, the verifying the payment answer includes:

[0021] Based on the payment answer, determine a 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;

[0022] Verifying 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;

[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] Compare 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, it is determined that the total amount corresponding to the payment answer has been verified;

[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 implementation, 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, it is determined that the quantity verification of each currency of the denomination in the payment answer has failed;

[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 implementation, 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 money in the payment answer is different from the amount of money used in the target payment combination, it is determined that the verification of the total amount of money 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 has been 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, 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 used to generate a verification page based on the payment description, so that when the user logs in to the server, he / 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 are communicatively connected to each other, computer instructions are stored in the memory, and the processor executes the login verification method of the above-mentioned 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, wherein the computer instructions 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 the related technologies, the drawings required for use in the specific embodiments or the related technical descriptions will be briefly introduced below. 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 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 flow chart 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 It is a schematic diagram of the hardware structure of a computer device according to an embodiment of the present invention. DETAILED DESCRIPTION

[0059] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution in the embodiments of the present invention will be clearly and completely described below in conjunction with the 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 creative work are 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 critical. With the frequent occurrence of cyber attacks and identity theft, ensuring that only authorized users can access sensitive information and key functions has become an urgent issue that needs to be addressed. In this case, server user login verification codes, as an effective identity authentication tool, are widely used in various information systems and play the following roles in information systems:

[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 step, the threshold for illegal intrusion is significantly raised, adding another lock to the security of server user accounts.

[0063] Curbing spam registration and abuse: In service scenarios where registration is required before use, the verification code acts as a sieve, effectively blocking large-scale spam registration and abuse attempts by malicious users.

[0064] Maintaining system resource security: By limiting the intrusion of automated scripts, CAPTCHAs play an active role in protecting system resources from being coveted and abused by malicious server users.

[0065] Optimize 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] At present, common forms of verification codes include SMS verification codes, language verification codes, image verification codes, and sliding verification codes. Among them, the image verification code verifies the user's true identity by showing the user a series of randomly generated characters, numbers, or graphic combinations, and requires the user to accurately identify and enter these elements. This mechanism has shown significant results in preventing malicious attacks initiated by automated scripts, greatly improving the overall security performance of the system.

[0067] The sliding verification code is presented in a more vivid, interesting and user-friendly way. Users only need to follow the instructions on the screen and move the slider to the specified position to complete the verification process. This operation mode is not only intuitive and easy to understand, but also can effectively distinguish between real users and automated scripts. While improving the user experience, the sliding verification code also ensures the solidity of system security.

[0068] However, although verification code technologies provide security guarantees for information systems, they also have limitations. For example, although SMS verification codes are highly secure, they are costly, with SMS charges incurred each time they are triggered, and are easily affected by mobile network conditions. Voice verification codes are not friendly enough to hearing-impaired users. In the context of advances in artificial intelligence technology, image verification codes and sliding verification codes are easily cracked by advanced visual recognition models. Specifically, the graphic elements and sliding trajectories of these verification codes may become increasingly easier to be recognized and analyzed 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] The 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 denomination of the currency they hold and the amount of payment required, and then determines the scenario simulation of the denomination of the currency and the 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, if you go to the supermarket to buy a dozen Cokes, you need to pay 19.90 yuan. You have 100 yuan, 10 yuan, 20 yuan, 50 cents and 10 cents in your wallet. People can easily determine which denominations of currency to use for payment, so as to meet the payment amount requirements and make the change process as simple and efficient as possible. In this process, the focus is on how people make quick and reasonable payment decisions based on the price of the goods and the denomination of the currency they hold. This decision not only reflects people's familiarity with the denomination of currency, but also reflects people's wisdom and experience in dealing with money affairs in daily life. By simulating this scenario and applying it to server user login, it will be difficult for machine recognition to make judgments, because in addition to understanding the content described in natural language, it is also necessary to be able to infer and determine which denominations of currency to use for payment based on the existing denominations of currency. Such verification is more friendly to people, but more difficult for machines. This can prevent the system from being cracked by automated scripts to a certain extent, effectively prevent robots from automatically verifying, and ensure the security of the system.

[0072] According to an embodiment of the present invention, a login verification method embodiment 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, which 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 flow chart 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 select price information of at least one commodity from a preset commodity price list.

[0075] The preset commodity price list may be composed of some commodity prices 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 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] Exemplarily, the price information of cooking oil and the price information of rice are filtered out from the preset commodity price table in Table 1.

[0081] Step S102, determining the total price of the commodities based on the price information of the filtered commodities.

[0082] After the price information of at least one commodity is randomly screened out, 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 the 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 and less than 1,000 yuan, and the number of small-denomination currencies should be limited. For example, currencies with denominations of 10 cents, 50 cents, 1 yuan, etc. should be limited to less than 10 bills, and the amount of large-denomination currencies such as 100 yuan, 50 yuan, etc. should be as small as possible and 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 preset payment rules, using the grammatical structure of natural language, the generated payment description can be: Going to the supermarket to buy a bag of rice and a barrel of oil costs a total of 158 yuan. You have 1 100-yuan, 2 20-yuan and 3 50-yuan banknotes in your hand. Please select the appropriate denomination and quantity of banknotes to pay.

[0089] Step S104, based on the payment description, a verification page is generated, 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 identity of the user when the user logs in to the server.

[0091] Figure 2 is a 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 of currency.

[0092] When the user logs in to the server, he 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 on the verification page in the form of an image, which can further increase the difficulty of cracking the automated script.

[0094] For example, when the payment description is "I went 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, 2 20-yuan and 3 50-yuan banknotes. Please choose the appropriate denomination and quantity to pay", the user can choose 1 100-yuan, 50-yuan and 50-yuan banknotes as payment answers. The user can also choose 3 50-yuan and 20-yuan banknotes 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, receiving the payment answer, verifying the payment answer, and entering the server login link when the payment answer verification passes.

[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 is verified, it means that the payment answer is correct, and then the server login stage is entered, that is, whether to log in to the server is determined according to the user name and password entered by the user.

[0097] The login verification method provided in this embodiment randomly selects the price information of at least one commodity from the preset commodity price table, determines the total price of the commodity based on the price information of the selected commodity, generates a payment description based on the total price of the commodity and the preset payment rules, and generates a verification page based on the payment description, so that when the user logs in to the server, according to the payment description on the verification page, the user selects the corresponding payment answer, submits the payment answer to the server, verifies the payment answer, and enters the server login link if the verification is passed. Based on the natural language description and the application of the situation simulation encountered by people when shopping and paying in daily life to the user login verification, it effectively prevents the security protection of artificial intelligence from affecting the user login verification, and improves the data security of the server.

[0098] In this embodiment, a login verification method is provided, which can be used on the server side. Figure 3 is a flow chart 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 selected products. Figure 1 Step S102 of the illustrated embodiment will not be described in detail here.

[0101] Step S303, based on the total price of the goods and the preset payment rules, a payment description is generated using the grammatical structure of the 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, using the grammatical structure of the natural language, generate the denomination and quantity of the currency provided to the user in the payment description.

[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 ones.

[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 providing the denominations of the currencies provided to the user 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 note is provided to the user.

[0110] When the tens digit of the total price of the product is 5, the user may be provided with one bill of 50 yuan, three bills of 20 yuan, two bills of 20 yuan and one bill of 10 yuan, or five bills of 10 yuan.

[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 quantity of the 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 / 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 stage. 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 commodity 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, when the payment answer verification fails, randomly select the price information of at least one commodity from the preset commodity price table, 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.

[0120] If the payment answer verification fails, it means that the payment answer is incorrect, and the server will randomly change the question again to verify the user login. The random change question means randomly selecting 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 selected 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.

[0121] The login verification method provided in this embodiment generates a new payment description when the payment answer verification fails, and refreshes the verification page based on the new payment description, so that the user selects the corresponding payment answer according to the payment description on the refreshed verification page and submits the payment answer to the server. The verification page is updated every time the verification fails, which can increase the difficulty of artificial intelligence to crack the verification page and improve data security.

[0122] In some optional implementations, the above step S305 includes:

[0123] Step b1, based on the payment answer, determine 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 number of currencies of each denomination in the payment answer, and the total number of currencies in the payment answer.

[0126] Step b3, when 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 are all verified, it is determined that the payment answer verification is passed.

[0127] Step b4, when 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, the amount of each denomination of currency in the payment answer is verified, including:

[0135] Step d1, verifying 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.

[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] Step e1, determining multiple payment combinations based on the total price of the goods and the denomination and amount of the currency provided to the user in the payment description.

[0141] Step e2, selecting a target payment combination with the least amount of currency used from multiple payment combinations.

[0142] Among them, the amount of currency used is the least, that is, the number of currency sheets used is the least.

[0143] Step e3, comparing the total amount of money in the payment answer with the amount of money used in the target payment combination.

[0144] Among them, the total amount of money in the payment answer, that is, the total number of money sheets, is compared with the number of money sheets used in the target payment combination.

[0145] Step e4: If the total amount of money in the payment answer is the same as the amount of money used in the target payment combination, then it is determined that the total amount of money in the payment answer has been verified.

[0146] Step e5: If the total amount of money in the payment answer is different from the amount of money used in the target payment combination, it is determined that the verification of the total amount of money 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 has been 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, when the number of times the verification page is refreshed exceeds the preset threshold number and the payment answer verification still fails, stop executing the steps of randomly selecting 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 selected 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 the technical staff 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 the verification code is cracked by an automated script. In this case, the page will be refreshed to verify the user's login, 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 maintenance personnel on the server 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 flow chart 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 commodities and calculates the total payment amount. That is, randomly select the price information of at least one commodity from the preset commodity price table, and determine the total price of the commodity based on the price information of the selected commodity. For details, please refer to the description of the above steps S301 and S302, which 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 the situation where only 1 yuan or 10 cents denomination currencies are used for verification.

[0159] The description corresponding to the aforementioned step S303 is not repeated here.

[0160] 4. Display verification module. That is, when the user logs in to the server, the verification page is displayed to the user, so that the user can select the corresponding payment answer according to the payment description on the verification page and submit the verification. Please refer to the description of the above step S304 for details, which 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. It has a relatively large security improvement in preventing the use of artificial intelligence (AI) to identify and crack verification codes, and plays a very important role in protecting the user login security of information systems.

[0165] In this embodiment, a login verification device is also provided, which is used to implement the above-mentioned embodiments and preferred implementation modes, and the descriptions that have been made will not be repeated. As used below, the term "module" can implement a combination of software and / or hardware of a predetermined function. Although the devices described in the following embodiments are preferably implemented in software, the implementation of hardware, or a combination of software and hardware, is also possible and conceivable.

[0166] This embodiment provides a login verification device, such as Figure 5 As 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 used to determine the total price of the commodities based on the price information of the filtered commodities.

[0169] The first generating module 503 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.

[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 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 price information of at least one commodity from a 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 acquisition unit is used to acquire the value of each digit in the total price of the product.

[0176] The first generating unit is used 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 the natural language.

[0177] In some optional implementations, the verification module 505 includes:

[0178] The first determination unit is used 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 quantity of each denomination of currency in the payment answer, and the total quantity of currency in the payment answer.

[0180] The second determining unit is used to determine that the payment answer verification is passed when 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 are all verified.

[0181] The third determination unit is used to determine that the payment answer verification has failed 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 has failed to be verified.

[0182] In some optional implementations, the first verification unit includes:

[0183] The first comparison unit is used to compare the total amount corresponding to the payment answer with the total price of the goods.

[0184] The fourth determining unit is used 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 used 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 implementations, 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 determination unit is used to determine that the quantity verification of each denomination of currency in the payment answer has failed if the quantity of any denomination of currency in the payment answer exceeds the quantity of currency of the same denomination provided to the user in the payment description.

[0189] The seventh determination unit is used to determine that the verification of the quantity of each denomination of currency in the payment answer has 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 implementations, the first verification unit includes:

[0191] The eighth determination unit is used to determine multiple payment combinations based on the total price of the goods and the denomination and quantity 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 comparison unit is used to compare the total amount of currency in the payment answer with the amount of currency used in the target payment combination.

[0194] The ninth determining unit is used to determine that the total amount of money in the payment answer has been verified if the total amount of money in the payment answer is the same as the amount of money used in the target payment combination.

[0195] The tenth determining unit is used to determine that the verification of the total amount of money in the payment answer has failed if the total amount of money in the payment answer is different from the amount of money 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 schematic diagram of the structure 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 interfaces for connecting various components, including high-speed interfaces and low-speed interfaces. Various components utilize different buses to communicate with each other, and can be installed on a common mainboard or installed in other ways as required. The processor can process the instructions executed in the computer device, including instructions stored in the memory or on the memory to display the graphical information of the GUI on an external input / output device (such as, a display device coupled to the interface). In some optional embodiments, if necessary, multiple processors and / or multiple buses can be used together with multiple memories and multiple memories. Similarly, multiple computer devices can be connected, and each device provides part of the necessary operations (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] The processor 601 may be a central processing unit, a network processor or a combination thereof. The processor 601 may further include a hardware chip. The hardware chip may be a dedicated 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 executable by at least one processor 601 , so that the at least one processor 601 executes 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, an application required for at least one function; the data storage area may store data created according to 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 arranged 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 also includes a communication interface 603, which is used 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 method according to the embodiment of the present invention can be implemented in hardware, firmware, or can be implemented as a computer code that can be recorded in a storage medium, or can be implemented as a computer code that is originally stored in a remote storage medium or a non-temporary machine-readable storage medium and will be stored in a local storage medium through a network download, 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 hard disk, etc.; further, the storage medium can also include a combination of the above types of memories. 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 part 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 existence of the computer program instruction in a computer-readable medium includes, but is not limited to, a source file, an executable file, an installation package file, etc., and 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 accessible to the computer.

[0207] Although the embodiments of the present invention have been described in conjunction with 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, and 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 commodity from the preset commodity price table; Determine the total price of the products based on the price information of the filtered products; Generate payment description based on the total price of the goods and preset payment rules using the grammatical structure of natural language; Based on the payment description, a verification page is generated, so that when the user logs in to the server, according to the payment description on the verification page, the user selects a corresponding payment answer and submits the payment answer to the server; The payment answer is received, and the payment answer is verified. If the payment answer is verified, the server login link is entered.

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 allow 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 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 commodity, and using the grammatical structure of natural language, the denomination and quantity of the currency provided to the user in the payment description are generated.

4. The method according to claim 1, characterized in that The verifying the payment answer comprises: Based on the payment answer, determine a 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; Verifying 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; 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.

5. The method according to claim 4, characterized in that Verifying the total amount corresponding to the payment answer, including: Compare 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, it is determined that the total amount corresponding to the payment answer has been verified; 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.

6. The method according to claim 4, 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, it is determined that the quantity verification of each currency of the denomination in the payment answer has failed; 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.

7. The method according to claim 4, 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 money in the payment answer is different from the amount of money used in the target payment combination, it is determined that the verification of the total amount of money in the payment answer has failed.

8. A login verification device, characterized in that: The device comprises: A screening module, 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; 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; A second generating module is used to generate a verification page based on the payment description, so that when the user logs in to the server, he / she can select a corresponding payment answer according to the payment description on the verification page and submit the payment answer to the server; 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.

9. 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 7 by executing the computer instructions.

10. 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 7.

Citation Information

Patent Citations

  • Login verification method, server and computer readable storage medium

    CN108182355A

  • Order payment method and system, computer device, and storage medium

    CN108776923A

  • Batch payment processing method and device

    CN113095830A

  • Payment processing method and device and computer readable storage medium

    CN115018487A

  • Mobile banking settlement method and device

    CN115511481A