CN115529174A - Short message verification method, device, server and medium - Google Patents

Short message verification method, device, server and medium Download PDF

Info

Publication number
CN115529174A
CN115529174A CN202211131361.0A CN202211131361A CN115529174A CN 115529174 A CN115529174 A CN 115529174A CN 202211131361 A CN202211131361 A CN 202211131361A CN 115529174 A CN115529174 A CN 115529174A
Authority
CN
China
Prior art keywords
information
verification
account
user
short message
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202211131361.0A
Other languages
Chinese (zh)
Other versions
CN115529174B (en
Inventor
钱亮
梁光明
夏继存
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Ronghe Communication Technology Tianjin Co ltd
Original Assignee
Ronghe Communication Technology Tianjin Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Ronghe Communication Technology Tianjin Co ltd filed Critical Ronghe Communication Technology Tianjin Co ltd
Priority to CN202211131361.0A priority Critical patent/CN115529174B/en
Priority claimed from CN202211131361.0A external-priority patent/CN115529174B/en
Publication of CN115529174A publication Critical patent/CN115529174A/en
Application granted granted Critical
Publication of CN115529174B publication Critical patent/CN115529174B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/08Network architectures or network communication protocols for network security for authentication of entities
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/08Network architectures or network communication protocols for network security for authentication of entities
    • H04L63/083Network architectures or network communication protocols for network security for authentication of entities using passwords
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/08Network architectures or network communication protocols for network security for authentication of entities
    • H04L63/0861Network architectures or network communication protocols for network security for authentication of entities using biometrical features, e.g. fingerprint, retina-scan

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Computer Security & Cryptography (AREA)
  • Computing Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Health & Medical Sciences (AREA)
  • Biomedical Technology (AREA)
  • General Health & Medical Sciences (AREA)
  • Collating Specific Patterns (AREA)

Abstract

The application relates to the field of communication technology, in particular to a short message verification method, a device, a server and a medium, wherein the method comprises the steps of obtaining verification request information sent by a user terminal, wherein the verification request information comprises user account information; determining at least one associated universal account according to the user account information; generating a corresponding verification code according to the verification request information, and binding the verification code with at least one associated universal account; splitting the verification code according to a preset rule to generate at least two sub-verification codes, wherein all the sub-verification codes form the verification code; and based on the user account information, sending the at least two sub-verification codes, the preset rule and the at least one associated universal account to the user terminal according to the preset frequency. The method and the device have the effect of improving the safety in the short message acquisition verification process.

Description

Short message verification method, device, server and medium
Technical Field
The present application relates to the field of communications technologies, and in particular, to a short message verification method, apparatus, server, and medium.
Background
With the continuous development of information technology, the types of application software faced by people in daily life are more and more, and currently, account numbers and short message verification are mostly adopted to log in and use corresponding software.
When the verification code is acquired, a user needs to send a verification request to the server through the user side, and the server sends the corresponding verification code to the user side after receiving the verification request sent by the user side, so that the user can conveniently log in the corresponding software.
Disclosure of Invention
In order to improve the safety in the process of obtaining the short message verification, the application provides a short message verification method, a short message verification device, a short message verification server and a short message verification medium.
In a first aspect, the present application provides a short message verification method, which adopts the following technical scheme:
a short message verification method comprises the following steps:
acquiring verification request information sent by a user terminal, wherein the verification request information comprises user account information;
determining at least one associated universal account according to the user account information;
generating a corresponding verification code according to the verification request information, and binding the verification code with the at least one associated universal account;
splitting the verification code according to a preset rule to generate at least two sub-verification codes, wherein all the sub-verification codes form the verification code;
and sending the at least two sub-verification codes, the preset rule and the at least one associated universal account to the user terminal based on the user account information.
By adopting the technical scheme, after the verification request information sent by the user terminal is obtained, at least one associated universal account is determined according to the user account information contained in the verification request information, the corresponding verification code is generated according to the obtained verification request information, the generated verification code is bound with the at least one associated universal account, the generated verification code is split according to the preset rule to form at least two sub-verification codes, the at least two character verification codes, the preset rule and the at least one associated universal account are sent to the user terminal according to the preset frequency, the generated verification codes are split and sent to the user terminal in batches, and the safety in the process of obtaining the short message verification codes is improved.
In a possible implementation manner, the determining at least one associated universal account according to the user account information includes any one of:
acquiring at least one associated universal account corresponding to the user account information from an alternative library, wherein the associated universal account is generated during registration of the user terminal and is bound with the user account information;
when the verification request information is acquired, determining at least one corresponding associated universal account based on the user account information, and binding the user account information and the associated universal account.
By adopting the technical scheme, the at least one associated universal account corresponding to the user account can be determined according to the user account information in two ways, one is to acquire the at least one associated universal account corresponding to the user account information from the alternative library, wherein the at least one associated universal account is generated when the user account registration is completed and is bound with the user account information; the other mode is that when the verification request information is acquired, at least one associated universal account corresponding to the user account information is determined based on the user account information, the at least one associated universal account is generated and then bound with the user account, and when the user logs in through the at least one associated universal account corresponding to the user account information, the data security of the user is improved conveniently.
In one possible implementation manner, the determining, based on the user account information, the corresponding at least one associated universal account includes:
determining a plurality of supplementary digits according to the user account information,
determining at least one candidate bit according to the plurality of complementary bits;
filling the at least one candidate position based on a preset candidate character set to generate a plurality of prepared account numbers;
based on all the preliminary account numbers, at least one associated universal account number is determined.
By adopting the technical scheme, the plurality of complementary positions are determined through the user account information, at least one candidate position is filled based on the preset character set after the at least one candidate position is determined from the plurality of complementary positions, a plurality of prepared accounts are generated, at least one associated universal account is determined from the plurality of prepared accounts, at least one associated universal account is randomly generated through the user account, and the safety of a user in the process of verifying codes is improved.
In a possible implementation manner, the sending the at least two sub-verification codes, the preset rule, and the at least one associated universal account to the user terminal according to a preset frequency includes:
determining the number of short messages according to the number of the at least two sub verification codes, wherein one sub verification code corresponds to one short message;
determining the sending sequence of each short message according to the sequence corresponding to the preset rule, and writing each sub-verification code into the corresponding short message;
writing a preset rule and the at least one associated universal account number into the last short message;
and sending each short message to the user terminal according to the sending sequence and the preset frequency.
By adopting the technical scheme, the number of the short messages is determined according to the number of at least two sub-verification codes, the number of the sub-verification codes corresponds to the number of the short messages, the sending sequence of each short message is determined according to the preset rule, each sub-verification code is written into the short message, one short message comprises one sub-verification code, the last short message comprises the corresponding sub-verification code, the preset rule and at least one associated general account number, all the short messages are sent to the user terminal in batches according to the preset frequency, and the safety in the sending process of the verification codes is improved by sending at least one sub-verification code in batches.
In a possible implementation manner, the sending, according to the sending sequence, each short message to the user terminal according to a preset frequency further includes:
when receiving the biological verification confirmation, acquiring the biological characteristic information of the user;
matching the user biological characteristic information with registered biological characteristic information corresponding to the user account information to generate biological similarity;
and if the biological similarity is higher than the preset standard similarity, the characterization matching is successful.
By adopting the technical scheme, when the biological verification confirmation is received, the biological characteristic information of the user is obtained, the obtained biological characteristic information of the user is matched with the registered biological characteristic information corresponding to the information of the user account number to obtain the corresponding biological similarity, when the biological similarity is not higher than the preset standard similarity, the representation biological verification fails, when the biological similarity is higher than the preset standard similarity, the representation biological verification succeeds, and after the user obtains the verification code, the safety of the user in the login process is further improved through the biological verification.
In one possible implementation manner, the method further includes:
if the biological similarity is lower than the preset standard similarity, acquiring image information, wherein the image information is an area shot by a front camera of the equipment;
extracting at least one face feature information according to the image information;
judging whether registered face feature information corresponding to the user account information exists or not according to the face feature information;
if yes, finishing final login;
if not, generating a screen locking signal and storing the image information.
By adopting the technical scheme, when the biological similarity is lower than the preset standard similarity, image information is obtained, at least one piece of face feature information is extracted according to the obtained image information, whether the registered face feature information corresponding to the user account information exists or not is judged according to the at least one piece of face feature information, and when the registered face feature information corresponding to the user account information exists in the at least one piece of face feature information, final login is completed; when at least one face feature information does not have the registered face feature information corresponding to the user account information, a screen locking signal is generated and the image information is stored, whether login is completed or not is judged by acquiring the image information of a front camera shooting area of the user terminal, and therefore the practicability of the user in login is improved.
In a possible implementation manner, after the generating a screen lock signal and saving the image information, the method further includes:
when an unlocking signal is detected, unlocking image information is obtained;
and when the similarity between the unlocking face feature information corresponding to the unlocking image information and the registered face feature information is higher than the preset standard similarity, generating pop-up window information, wherein the pop-up window information comprises the image information and the acquisition time corresponding to the image information.
By adopting the technical scheme, after the unlocking signal is detected, the unlocking image information is acquired, the unlocking image information is subjected to unlocking human face feature recognition, the recognized unlocking human face feature information is compared with the registered human face feature information to generate the similarity, when the similarity is higher than the preset standard similarity, the popup window information is generated, and the user is prompted to check the condition that the biological verification is unsuccessful through the popup window information.
In a second aspect, the present application provides a short message verification apparatus, which adopts the following technical scheme:
a short message verification device comprises:
the information acquisition module is used for acquiring verification request information sent by a user terminal, wherein the verification request information comprises user account information;
a related communication account determining module used for determining at least one related universal account according to the user account information;
the verification code generation module is used for generating a corresponding verification code according to the verification request information and binding the verification code with the at least one associated universal account;
the verification code splitting module is used for splitting the verification code according to a preset rule to generate at least two sub-verification codes, and all the sub-verification codes form the verification code;
and the verification code sending module is used for sending the at least two sub-verification codes, the preset rule and the at least one associated universal account to the user terminal according to a preset frequency based on the user account information.
By adopting the technical scheme, after the verification request information sent by the user terminal is obtained, at least one associated universal account is determined according to the user account information contained in the verification request information, the corresponding verification code is generated according to the obtained verification request information, the generated verification code is bound with the at least one associated universal account, the generated verification code is split according to the preset rule to form at least two sub-verification codes, the at least two character verification codes, the preset rule and the at least one associated universal account are sent to the user terminal according to the preset frequency, the generated verification codes are split and sent to the user terminal in batches, and the safety in the process of obtaining the short message verification codes is improved.
In a third aspect, the present application provides a server, which adopts the following technical solutions:
a server, the server comprising:
at least one processor;
a memory;
at least one application, wherein the at least one application is stored in the memory and configured to be executed by the at least one processor, the at least one application configured to: and executing the short message verification method.
In a fourth aspect, the present application provides a computer-readable storage medium, which adopts the following technical solutions:
a computer-readable storage medium, comprising: a computer program capable of being loaded by a processor and executing the short message authentication method is stored.
In summary, the present application includes at least one of the following beneficial technical effects:
1. after verification request information sent by a user terminal is acquired, at least one associated universal account is determined according to user account information contained in the verification information request information, corresponding verification codes are generated according to the acquired verification request information, the generated verification codes and the at least one associated universal account are bound, the generated verification codes are split according to preset rules to form at least two sub-verification codes, the at least two character verification codes, the preset rules and the at least one associated universal account are sent to the user terminal according to preset frequency, the generated verification codes are split and sent to the user terminal in batches, and safety in the process of obtaining short message verification codes is improved.
2. The method comprises the steps of determining the number of short messages according to the number of at least two sub-verification codes, wherein the number of the sub-verification codes corresponds to the number of the short messages, determining the sending sequence of each short message according to a preset rule, writing each sub-verification code into the short message, wherein one short message comprises one sub-verification code, the last short message comprises the corresponding sub-verification code, the preset rule and at least one associated general account number, and finally sending all the short messages to a user terminal in batches according to a preset frequency.
Drawings
Fig. 1 is a schematic flow chart of a short message verification method in an embodiment of the present application;
fig. 2 is a schematic structural diagram of a short message verification apparatus in an embodiment of the present application;
fig. 3 is a schematic structural diagram of a server in an embodiment of the present application.
Detailed Description
The present application is described in further detail below with reference to figures 1-3.
A person skilled in the art, after reading the present description, may make modifications as required without inventive contribution to the present embodiments, but shall be protected by the patent laws within the scope of the claims of the present application.
In order to make the objects, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some embodiments of the present application, but not all embodiments. All other embodiments obtained by a person of ordinary skill in the art based on the embodiments in the present application without making any creative effort belong to the protection scope of the present application.
The method for verifying by using the short message is convenient and quick, the service opening and payment of corresponding software can be completed only by a user operating a user terminal, but in the process of receiving the short message verification, the short message verification code is easy to intercept and tamper, information of the user may be leaked, in order to improve the safety in the process of obtaining the short message verification code, in the embodiment of the application, after the verification request information sent by the user terminal is obtained, at least one associated universal account is determined according to the user account information contained in the verification information request information, then the corresponding verification code is generated according to the obtained verification request information, the generated verification code is bound with at least one associated universal account, then the generated verification code is split according to the preset rule to form at least two sub-verification codes, and finally the at least two word verification codes, the preset rule and the at least one associated universal account are all sent to the user terminal, and the safety in the process of obtaining the short message verification code is improved by splitting the generated verification code.
Specifically, the embodiment of the application provides a short message verification method, which is executed by a server, where the server may be an independent physical server, a server cluster or a distributed system formed by multiple physical servers, or a cloud server providing cloud computing services. The terminal device may be a smart phone, a tablet computer, a notebook computer, a desktop computer, or the like, but is not limited thereto, and the terminal device and the server may be directly or indirectly connected through wired or wireless communication, and the embodiment of the present application is not limited herein.
Referring to fig. 1, fig. 1 is a schematic flow chart diagram of a short message verification method in an embodiment of the present application, where the method includes step S110, step S120, step S130, step S140, and step S150, where:
step S110: and acquiring verification request information sent by the user terminal, wherein the verification request information comprises user account information.
Specifically, the verification request information is sent by the user terminal and used for acquiring the verification code from the server side, and the verification request information includes request information and user account information, wherein the user account information includes a user name and a user account.
Step S120: and determining at least one associated universal account according to the user account information.
Specifically, the associated universal account is a substitute account of the user account, and when the user logs in at the user terminal, the user can log in through the user account or the associated universal account. The number of the associated universal accounts of the user account can be one or more. The associated universal account of the user account may be automatically generated when the user account is registered, or may be randomly generated by the server after receiving the authentication request information sent by the user terminal.
Step S130: and generating a corresponding verification code according to the verification request information, and binding the verification code with at least one associated universal account.
Specifically, since the types of the corresponding verification codes may be different when the user terminal logs in different software, for example, the number of bits of some verification codes is 4 bits, and the number of bits of some verification codes is 6 bits, the request information in the verification request information includes software information to be logged in, and the server may generate the verification code corresponding to the software to be logged in according to the software information. After the generated verification code is bound with at least one associated universal account, login can be completed only by utilizing the associated universal account and the corresponding verification code which are bound with each other, and in the embodiment of the application, the default user account and the generated verification code are also bound with each other.
Step S140: and splitting the verification code according to a preset rule to generate at least two sub-verification codes, wherein all the sub-verification codes form the verification code, and all the sub-verification codes form the verification code.
Specifically, the generated verification code may be split by a preset rule to obtain a plurality of sub-verification codes, for example, the generated verification code is 365824, and the preset rule is two-by-two split and is divided into 3 groups, then after the verification code 365824 is split by the preset rule, the obtained plurality of sub-verification codes are 36, 58 and 24, respectively, and the generated plurality of sub-verification codes 36, 58 and 24 are combined to obtain the complete verification code 365824.
The preset rule may be modified according to a user requirement, for example, the preset rule may also be that the generated verification code is incrementally divided into 3 groups, that is, 365824 is divided into 3 groups, 65 groups, and 824 groups, and the specific preset rule for dividing the verification code is not specifically limited in this embodiment, as long as the verification code can be divided.
Step S150: and based on the user account information, sending the at least two sub-verification codes, the preset rule and the at least one associated general account to the user terminal according to a preset frequency.
Specifically, a communication channel between the user terminal and the server is conveniently determined through the user account information, and after the server determines the corresponding verification code and the at least one associated general account, the at least two sub-verification codes, the preset rule and the at least one associated general account are sent to the user terminal through the communication channel according to different frequencies.
After the preset rule is sent to the user terminal, the user can conveniently sort and combine the received at least two sub-verification codes according to the preset rule to obtain the corresponding verification codes. The preset frequency is a frequency when the server sends data information to the user terminal, and the specific preset frequency may be modified according to a requirement of the user, which is not specifically limited in the embodiment of the present application.
In the embodiment of the application, after verification request information sent by a user terminal is obtained, at least one associated universal account is determined according to user account information contained in the verification request information, a corresponding verification code is generated according to the obtained verification request information, the generated verification code is bound with the at least one associated universal account, the generated verification code is split according to a preset rule to form at least two sub-verification codes, the at least two character verification codes, the preset rule and the at least one associated universal account are sent to the user terminal according to a preset frequency, the generated verification codes are split and sent to the user terminal in batches, and safety in the process of obtaining short message verification codes is improved.
Further, in step S120, at least one associated general account is determined according to the user account information, which includes any one of step S1201 (not shown in the drawings) and step S1202 (not shown in the drawings), wherein:
step S1201: and acquiring at least one associated universal account corresponding to the user account information from the alternative library, wherein the associated universal account is generated when the user terminal is registered and is bound with the user account information.
Specifically, at least one associated general account corresponding to the user account is stored in the alternative library, and the at least one associated general account corresponding to the user account can be determined from the alternative library through the user account. The associated universal account is bound with the user account information, namely the associated universal account is bound with the user account, and after the user account is registered, at least one generated associated universal account is convenient for the user account to finish binding. The associated universal account may be logged in as a user account. For example, if the user account is 123456, when the user account is successfully registered, at least one associated common account corresponding to the user account may be 123456a, 123456b, or 123456c, and the user may use the user account 123456 when logging in the user account, or may use 123456a, 123456b, or 123456c that is mutually bound to 123456.
Step S1202: when the verification request information is acquired, determining at least one corresponding associated universal account based on the user account information, and binding the user account information and the associated universal account.
Specifically, at least one associated universal account of the user account can be randomly generated through the user account, and after the at least one associated universal account is randomly generated, the at least one associated universal account is bound with the user account. When the corresponding associated universal account is determined based on the user account information, a random character can be inserted into the user account.
According to the embodiment of the application, at least one associated universal account corresponding to the user account can be determined in two ways according to the user account information, wherein one way is to acquire the at least one associated universal account corresponding to the user account information from an alternative library, and the at least one associated universal account is generated when the user account registration is completed and is bound with the user account information; the other mode is that when the verification request information is acquired, at least one associated universal account corresponding to the user account information is determined based on the user account information, the at least one associated universal account is generated and then bound with the user account, and when the user logs in through the at least one associated universal account corresponding to the user account information, the data security of the user is improved conveniently.
Further, when the verification request information is acquired in step S1202, determining at least one corresponding associated universal account based on the user account information, and binding the user account information and the associated universal account, which may specifically include step S1202a (not shown in the drawings), step S1202b (not shown in the drawings), step S1202c (not shown in the drawings), and step S1202d (not shown in the drawings), wherein:
step S1202a: and determining a plurality of supplementary bits according to the user account information.
Specifically, the user account information includes a user account, the user account may be a mobile phone number of the user or a mailbox account, the supplementary position is a position between adjacent characters in the user account, and one user account has a plurality of supplementary positions. For example, when the user account number is 123456, the position between 1 and 2 is a supplementary position, the position before 1 is a supplementary position, and the position after 6 is a supplementary position.
Step S1202b: at least one candidate bit is determined based on the plurality of complementary bits.
Step S1202c: and filling at least one candidate position based on a preset candidate character set to generate a plurality of prepared account numbers.
Specifically, the plurality of complementary bits are randomly selected to determine a candidate bit, and the mode of randomly determining the candidate bit may be that the generated plurality of complementary bits are numbered, then the random number selector is used to determine at least one number from all the generated numbers, and the complementary bit corresponding to the determined at least one number is determined as the candidate bit.
The preset candidate character set comprises numbers, letters and characters, specific contents are not specifically limited in the embodiment of the application, a user can modify the preset candidate character set according to requirements, and at least one candidate character is determined from the preset candidate character set, wherein the number of the candidate characters and the number of the candidate positions can be the same or different, but the number of the candidate characters is not less than the number of the candidate positions. The determined at least one candidate character may be filled in at least one candidate bit according to an order in which the at least one candidate character is generated, or the determined at least one candidate character may be rearranged first, and then the at least one candidate bit is filled in the at least one candidate character in which the rearrangement is completed. When at least one candidate position is filled according to at least one candidate character, one candidate position can be filled with one candidate character, and a plurality of candidate characters can also be filled in, and when a plurality of candidate characters are filled in one candidate position, the positions corresponding to the plurality of candidate characters are randomly generated. And if at least one randomly generated candidate digit is the same as at least one randomly generated candidate character and the generated preliminary account number is the same, discarding the preliminary account number generated at this time and performing random selection on the candidate digit again.
Step S1202d: based on all the preliminary account numbers, at least one associated universal account number is determined.
Specifically, the associated universal account numbers are randomly selected and determined from a plurality of generated preliminary account numbers, and after at least one associated universal account number is determined from the plurality of preliminary account numbers, the remaining preliminary account numbers may be saved for the next login.
In the embodiment of the application, a plurality of complementary positions are determined through user account information, at least one candidate position is filled based on a preset character set after the at least one candidate position is determined from the plurality of complementary positions, a plurality of prepared accounts are generated, at least one associated universal account is determined from the plurality of prepared accounts, and the at least one associated universal account is randomly generated through the user account, so that the safety of a user in the process of verifying a code is improved.
Further, in step S150, based on the user account information, at least two sub-verification codes, a preset rule, and at least one associated general account are sent to the user terminal according to a preset frequency, which may specifically include step S1501 (not shown in the drawings), step S1502 (not shown in the drawings), step S1503 (not shown in the drawings), and step S1504 (not shown in the drawings), wherein:
step S1501: and determining the number of the short messages according to the number of at least two sub verification codes, wherein one sub verification code corresponds to one short message.
Specifically, the server sends the generated verification code to the user terminal through a short message, and each short message comprises a sub-verification code when the short message is sent. The number of the at least two sub-verification codes is recorded, and the number of the short messages is determined according to the generated record.
Step S1502: and determining the sending sequence of each short message according to the sequence corresponding to the preset rule, and writing each sub-verification code into the corresponding short message.
Step S1503: and writing the preset rule and at least one associated universal account into the last short message.
Specifically, the preset rule may be modified according to a user requirement, and is not specifically limited in the embodiment of the present application, as long as the sending sequence of each short message can be determined according to the preset rule. For example, the verification code to be sent is 283654, the preset rule is that every two short messages are divided into 3 groups, and the short messages are sent sequentially, the generated sub-verifications are 28, 36 and 54, the number of the short messages is determined to be 3 according to the number of the sub-verification codes, the sending sequence of each short message is determined to be sent sequentially according to the preset rule, in the generated three short messages, the content stored in the first short message is 28, the content stored in the second short message is 36, the content stored in the third short message is 54, the preset rule and at least one associated universal account number. After the corresponding sub-verification code is put into the last short message, the short message further comprises a preset rule and at least one associated universal account number, so that a user can conveniently splice the at least one sub-verification code according to the preset rule to form a final verification code, and login is carried out according to the at least one associated universal account number and the final verification code.
Step S1504: and sending each short message to the user terminal according to the sending sequence and the preset frequency.
Specifically, the preset frequency may be that the short message is sent once after the same time period, until all the short messages are sent, for example, the short message is sent once every 5 seconds; all short messages can be sent according to different time intervals until the sending is finished, for example, a second short message is sent at an interval of 5 seconds after the first short message is sent, and a third short message is sent at an interval of 10 seconds after the second short message is sent, the preset frequency can be modified according to the user requirements, and the method is not specifically limited in the embodiment of the application, and only needs to send at least one short message in batches.
In the embodiment of the application, the number of the short messages is determined according to the number of at least two sub-verification codes, the number of the sub-verification codes corresponds to the number of the short messages, the sending sequence of each short message is determined according to a preset rule, each sub-verification code is written into the short message, one short message comprises one sub-verification code, the last short message comprises the corresponding sub-verification code, the preset rule and at least one associated universal account number, all the short messages are sent to a user terminal in batches according to a preset frequency, and the safety in the sending process of the verification codes is improved by sending at least one sub-verification code in batches.
Further, after step S1504 sends each short message to the user terminal according to the sending sequence and the preset frequency, step S1504a (not shown in the drawings), step S1504b (not shown in the drawings), and step S1504c (not shown in the drawings) are included, wherein:
step S1504a: when receiving the biometric authentication confirmation, the user biometric information is acquired.
Specifically, the biometric authentication types include iris recognition, face recognition and voice print recognition, the specific biometric authentication types can be determined according to the requirements of the user, and when the biometric authentication confirmation is received, the biometric authentication types can be sent to the user terminal for the user to select. For example, the biometric authentication type selected by the user is voiceprint recognition, and then after the biometric authentication type is confirmed, the recording device is started to collect voiceprints of the user, for example, the user can read the preset sentences, the content of the preset sentences can be modified according to the user requirements, no specific limitation is made in the embodiment of the application, and then the collected voiceprints are subjected to voice recognition to form voiceprint features.
There are various ways of voiceprint feature extraction, which are not specifically limited in the embodiment of the present application as long as the collected voiceprint can be subjected to voiceprint feature extraction. For example, the frequency spectrum parameter of each frame of voiceprint data can be calculated by performing Fast Fourier Transform (FFT) on the preprocessed voiceprint data, then performing convolution operation on the frequency spectrum parameter of each frame of voiceprint data through a mel-frequency filter composed of a set of triangular band-pass filters, then taking logarithm of the output of each frequency band, finally calculating the logarithm energy of each output, and finally performing discrete cosine transform on the N logarithm energies to obtain mel cepstrum coefficients, namely the sound characteristic parameters corresponding to the voiceprint data.
Step S1504b: and matching the biological characteristic information of the user with the registered biological characteristic information corresponding to the account information of the user to generate biological similarity.
Specifically, the biometric similarity is generated after matching the user biometric information with the registered biometric information, the registered biometric information is collected and stored when the user account is registered, and the registered biometric information includes registered iris feature information, registered facial feature information and registered voiceprint feature information. When the user biological characteristic information is matched with the registered biological characteristic information corresponding to the user account information, the user biological characteristic parameter of the user biological characteristic information can be matched with the registered biological characteristic parameter of the corresponding registered biological characteristic information.
Step S1504c: and if the biological similarity is higher than the preset standard similarity, the characterization matching is successful.
Specifically, the preset standard similarity may be modified according to the requirement of the user, and is not specifically limited in the embodiment of the present application.
In the embodiment of the application, when receiving the biological verification confirmation, the biological feature information of the user is obtained, the obtained biological feature information of the user is matched with the registered biological feature information corresponding to the information of the user account number to obtain the corresponding biological similarity, when the biological similarity is not higher than the preset standard similarity, the biological verification is represented to fail, when the biological similarity is higher than the preset standard similarity, the biological verification is represented to succeed, and after the user obtains the verification code, the safety of the user in the login process is further improved through the biological verification.
Further, the method further includes a step Sa (not shown in the drawings), a step Sb (not shown in the drawings), a step Sc (not shown in the drawings), and a step Sd (not shown in the drawings), wherein:
step Sa: and if the biological similarity is lower than the preset standard similarity, acquiring image information, and extracting at least one face characteristic information according to the image information, wherein the image information is the image information of the front-facing shooting area.
Specifically, when it is detected that the unmatching is successful, image information of a front camera shooting area of the user terminal is obtained, one face feature or a plurality of face features may exist in the image information of the front camera shooting area, and after the image information of the front camera shooting area is obtained, the image information is input into a face feature recognition model to recognize at least one face feature which may appear in the image information.
Step Sb: and judging whether registered face feature information corresponding to the user account information exists or not according to the at least one face feature information.
Step Sc: and if the registered face feature information corresponding to the user account information exists, generating a verification completion instruction, and completing final login.
Specifically, when at least one face feature identified according to the image information contains registered face feature information, a verification completion instruction is generated so that the user completes login. For example, when two persons log in the user terminal at the same time, if the biological similarity between the acquired user biological characteristics and the registered user characteristics is lower than the preset standard similarity through the acquired biological verification mode, whether the biological verification is finished or not is automatically judged according to the face characteristics in the image information.
Step Sd: and if the registered face characteristic information corresponding to the user account information does not exist, generating a screen locking signal and storing the image information.
Specifically, the screen locking signal is used for controlling the user terminal to lock the screen, and the acquired image information can be stored in the temporary buffer area after the screen locking signal is generated.
In the embodiment of the application, when the biological similarity is lower than the preset standard similarity, image information is obtained, at least one piece of face feature information is extracted according to the obtained image information, whether registered face feature information corresponding to user account information exists or not is judged according to the at least one piece of face feature information, and when the registered face feature information corresponding to the user account information exists in the at least one piece of face feature information, final login is completed; when at least one face feature information does not have the registered face feature information corresponding to the user account information, a screen locking signal is generated and the image information is stored, whether login is completed or not is judged by acquiring the image information of a front camera shooting area of the user terminal, and therefore the practicability of the user in login is improved.
Further, after generating a screen locking signal and saving image information if there is no registered face feature information corresponding to the user account information in step Sd, the method further includes step Sd1 (not shown in the drawings) and step Sd2 (not shown in the drawings), where:
step Sd1: and acquiring unlocking image information after the unlocking signal is detected.
Specifically, the unlocking signal is formed after a user triggers a user terminal unlocking program, the user terminal unlocking program can be fingerprint identification unlocking, face identification unlocking and password identification unlocking, and the unlocking image information is the image information of a front camera shooting area obtained after the unlocking signal is detected.
Step Sd2: and when the similarity between the unlocking face characteristic information corresponding to the unlocking image information and the registered face characteristic information is higher than the similarity of a preset standard, generating pop-up window information, wherein the pop-up window information comprises the image information and the acquisition time corresponding to the image information.
Specifically, the unlocking image information is input into the face feature recognition model, and the unlocking face features determined by the unlocking image information are determined. The pop-up window information includes image information acquired when the biometric authentication is not completed and corresponding acquisition time, and the form of the pop-up window is not specifically limited in the embodiment of the present application as long as the image information and the corresponding acquisition time can be displayed, for example, the pop-up window may be a floating window.
When the biometric verification is not successfully performed, the situation that the user terminal is stolen by others may exist, and the popup information is popped up only when a registered user at the time of registering the user account, namely the registered user corresponding to the registered face feature information stored at the time of registering the user account, is unlocked.
In the embodiment of the application, after an unlocking signal is detected, unlocking image information is acquired, unlocking facial feature recognition is performed on the unlocking image information, the recognized unlocking facial feature information is compared with registered facial feature information to generate the similarity, when the similarity is higher than the preset standard similarity, pop-up window information is generated, and a user is reminded of checking the condition that the biological verification is unsuccessful through the pop-up window information.
The above embodiment introduces a short message verification method from the perspective of a method flow, and the following embodiment introduces a short message verification apparatus from the perspective of a virtual module or a virtual unit, which is described in detail in the following embodiment.
An embodiment of the present application provides a short message verification apparatus, as shown in fig. 2, the apparatus may specifically include an information obtaining module 210, an association communication account determining module 220, a verification code generating module 230, a verification code splitting module 240, and a verification code sending module 250, where:
the information obtaining module 210 is configured to obtain authentication request information sent by a user terminal, where the authentication request information includes user account information;
a determine associated communication account module 220, configured to determine at least one associated universal account according to the user account information;
a verification code generation module 230, configured to generate a corresponding verification code according to the verification request information, and bind the verification code with at least one associated universal account;
the verification code splitting module 240 is configured to split the verification code according to a preset rule to generate at least two sub-verification codes, where all the sub-verification codes form the verification code;
the verification code sending module 250 is configured to send the at least two sub-verification codes, the preset rule, and the at least one associated universal account to the user terminal according to a preset frequency based on the user account information.
In one possible implementation, the determining the associated communication account module 220 includes:
the acquisition associated communication account submodule is used for acquiring at least one associated universal account corresponding to the user account information from the alternative library, and the associated universal account is generated when the user terminal is registered and is bound with the user account information;
and the generation of the associated communication account submodule is used for determining at least one corresponding associated universal account based on the user account information and binding the user account information with the associated universal account when the verification request information is obtained.
In one possible implementation manner, the sub-module for generating the associated communication account number includes:
a supplemental bit determining unit for determining a plurality of supplemental bits based on the user account information,
determining a candidate bit cell for determining at least one candidate bit from the plurality of supplemental bits;
a prepared account generation unit, configured to fill at least one candidate bit based on a preset candidate character set, and generate a plurality of prepared accounts;
and the associated universal account number determining unit is used for determining at least one associated universal account number based on all the prepared account numbers.
In one possible implementation, the captcha splitting module 240 includes:
the short message quantity determining submodule is used for determining the quantity of the short messages according to the quantity of at least two sub-verification codes, and one sub-verification code corresponds to one short message;
the sending order determining submodule is used for determining the sending order of each short message according to the order corresponding to the preset rule and writing each sub-verification code into the corresponding short message;
the information writing sub-module is used for writing the preset rule and at least one associated universal account into the last short message;
and the information sending submodule is used for sending each short message to the user terminal according to the sending sequence and the preset frequency.
In one possible implementation, the apparatus further includes:
the biometric obtaining module is used for obtaining the biometric information of the user when receiving the biometric verification confirmation;
the biological characteristic matching module is used for matching the biological characteristic information of the user with the registered biological characteristic information corresponding to the account information of the user to generate biological similarity;
and the matching result determining module is used for representing that the matching is successful when the biological similarity is higher than the preset standard similarity.
In one possible implementation, the apparatus further includes:
the image information acquisition module is used for acquiring image information when the biological similarity is lower than the preset standard similarity, wherein the image information is an area shot by a front camera of the equipment;
the facial feature extraction module is used for extracting at least one piece of facial feature information according to the image information;
the characteristic judging module is used for judging whether registered face characteristic information corresponding to the user account information exists or not according to the face characteristic information;
the first execution module is used for finishing final login when registered face feature information corresponding to the user account information exists;
and the second execution module is used for generating a screen locking signal and storing image information when the registered face characteristic information corresponding to the user account information does not exist.
In one possible implementation, the apparatus further includes:
the unlocking image obtaining module is used for obtaining unlocking image information after an unlocking signal is detected;
and the pop-up window information generating module is used for generating pop-up window information when the similarity between the unlocking human face feature information corresponding to the unlocking image information and the registered human face feature information is higher than the preset standard similarity, wherein the pop-up window information comprises the image information and the acquisition time corresponding to the image information.
In the embodiment of the present application, there is provided a server, as shown in fig. 3, a server 300 shown in fig. 3 includes: a processor 301 and a memory 303. Wherein processor 301 is coupled to memory 303, such as via bus 302. Optionally, the server 300 may also include a transceiver 304. It should be noted that the transceiver 304 is not limited to one in practical applications, and the structure of the server 300 is not limited to the embodiment of the present application.
The Processor 301 may be a CPU (Central Processing Unit), a general-purpose Processor, a DSP (Digital Signal Processor), an ASIC (Application Specific Integrated Circuit), an FPGA (Field Programmable Gate Array) or other Programmable logic device, a transistor logic device, a hardware component, or any combination thereof. Which may implement or perform the various illustrative logical blocks, modules, and circuits described in connection with the disclosure. The processor 301 may also be a combination of computing functions, e.g., comprising one or more microprocessors, a combination of a DSP and a microprocessor, or the like.
Bus 302 may include a path that transfers information between the above components. The bus 302 may be a PCI (Peripheral Component Interconnect) bus, an EISA (Extended Industry Standard Architecture) bus, or the like. The bus 302 may be divided into an address bus, a data bus, a control bus, and the like. For ease of illustration, only one thick line is shown in FIG. 3, but this does not mean only one bus or one type of bus.
The Memory 303 may be a ROM (Read Only Memory) or other type of static storage device that can store static information and instructions, a RAM (Random Access Memory) or other type of dynamic storage device that can store information and instructions, an EEPROM (Electrically Erasable Programmable Read Only Memory), a CD-ROM (Compact Disc Read Only Memory) or other optical Disc storage, optical Disc storage (including Compact Disc, laser Disc, optical Disc, digital versatile Disc, blu-ray Disc, etc.), a magnetic disk storage medium or other magnetic storage device, or any other medium that can be used to carry or store desired program code in the form of instructions or data structures and that can be accessed by a computer, but is not limited to these.
The memory 303 is used for storing application program codes for executing the scheme of the application, and the processor 301 controls the execution. The processor 301 is configured to execute application program code stored in the memory 303 to implement the aspects illustrated in the foregoing method embodiments.
The embodiment of the present application provides a computer readable storage medium, on which a computer program is stored, and when the computer program runs on a computer, the computer is enabled to execute the corresponding content in the foregoing method embodiment. Compared with the related technology, in the embodiment of the application, after the verification request information sent by the user terminal is obtained, at least one associated universal account is determined according to the user account information contained in the verification request information, then the corresponding verification code is generated according to the obtained verification request information, the generated verification code is bound with the at least one associated universal account, then the generated verification code is split according to the preset rule to form at least two sub-verification codes, finally the at least two word verification codes, the preset rule and the at least one associated universal account are sent to the user terminal according to the preset frequency, the generated verification codes are split and sent to the user terminal in batches, and the safety in the short message verification code obtaining process is improved.
It should be understood that, although the steps in the flowcharts of the figures are shown in order as indicated by the arrows, the steps are not necessarily performed in order as indicated by the arrows. The steps are not performed in the exact order shown and may be performed in other orders unless explicitly stated herein. Moreover, at least a portion of the steps in the flow chart of the figure may include multiple sub-steps or multiple stages, which are not necessarily performed at the same time, but may be performed at different times, which are not necessarily performed in sequence, but may be performed alternately or alternately with other steps or at least a portion of the sub-steps or stages of other steps.
The foregoing is only a partial embodiment of the present application, and it should be noted that, for those skilled in the art, several modifications and decorations can be made without departing from the principle of the present application, and these modifications and decorations should also be regarded as the protection scope of the present application.

Claims (10)

1. A short message verification method is characterized by comprising the following steps:
acquiring verification request information sent by a user terminal, wherein the verification request information comprises user account information;
determining at least one associated universal account according to the user account information;
generating a corresponding verification code according to the verification request information, and binding the verification code with the at least one associated universal account;
splitting the verification code according to a preset rule to generate at least two sub-verification codes, wherein all the sub-verification codes form the verification code;
and based on the user account information, sending the at least two sub-verification codes, a preset rule and the at least one associated universal account to the user terminal according to a preset frequency.
2. The short message verification method of claim 1, wherein the determining at least one associated universal account according to the user account information comprises any one of:
acquiring at least one associated universal account corresponding to the user account information from an alternative library, wherein the associated universal account is generated during the registration of the user terminal and is bound with the user account information;
when the verification request information is acquired, determining at least one corresponding associated universal account based on the user account information, and binding the user account information and the associated universal account.
3. The short message verification method of claim 2, wherein the determining of the corresponding at least one associated universal account based on the user account information comprises:
determining a plurality of supplementary digits according to the user account information,
determining at least one candidate bit according to the plurality of complementary bits;
filling the at least one candidate position based on a preset candidate character set to generate a plurality of prepared account numbers;
based on all the preliminary account numbers, at least one associated universal account number is determined.
4. The short message verification method according to claim 1, wherein the sending the at least two sub-verification codes, the preset rule and the at least one associated universal account to the user terminal according to a preset frequency comprises:
determining the number of short messages according to the number of the at least two sub verification codes, wherein one sub verification code corresponds to one short message;
determining the sending sequence of each short message according to the sequence corresponding to the preset rule, and writing each sub-verification code into the corresponding short message;
writing a preset rule and the at least one associated universal account number into the last short message;
and sending each short message to the user terminal according to the sending sequence and the preset frequency.
5. The method of claim 4, wherein the sending each short message to the user terminal according to the sending sequence and the preset frequency further comprises:
when receiving the biological verification confirmation, acquiring the biological characteristic information of the user;
matching the user biological characteristic information with registered biological characteristic information corresponding to the user account information to generate biological similarity;
and if the biological similarity is higher than the preset standard similarity, the characterization matching is successful.
6. The short message authentication method as claimed in claim 5, further comprising:
if the biological similarity is lower than the preset standard similarity, acquiring image information, wherein the image information is an area shot by a front camera of the equipment;
extracting at least one piece of face feature information according to the image information;
judging whether registered face feature information corresponding to the user account information exists or not according to the face feature information;
if yes, finishing final login;
and if not, generating a screen locking signal and storing the image information.
7. The short message authentication method as claimed in claim 6, wherein after generating the screen locking signal and storing the image information, the method further comprises:
when an unlocking signal is detected, unlocking image information is obtained;
and when the similarity between the unlocking face feature information corresponding to the unlocking image information and the registered face feature information is higher than the preset standard similarity, generating pop-up window information, wherein the pop-up window information comprises the image information and the acquisition time corresponding to the image information.
8. A short message verification device is characterized by comprising:
the information acquisition module is used for acquiring verification request information sent by a user terminal, wherein the verification request information comprises user account information;
a related communication account determining module used for determining at least one related universal account according to the user account information;
the verification code generation module is used for generating a corresponding verification code according to the verification request information and binding the verification code with the at least one associated universal account;
the verification code splitting module is used for splitting the verification code according to a preset rule to generate at least two sub-verification codes, and all the sub-verification codes form the verification code;
and the verification code sending module is used for sending the at least two sub-verification codes, the preset rule and the at least one associated universal account to the user terminal according to preset frequency based on the user account information.
9. A server, comprising:
at least one processor;
a memory;
at least one application, wherein the at least one application is stored in the memory and configured to be executed by the at least one processor, the at least one application configured to: the method of performing short message authentication as claimed in any one of claims 1-7.
10. A computer-readable storage medium, comprising: a computer program which can be loaded by a processor and which performs the method according to any of claims 1-7.
CN202211131361.0A 2022-09-16 Short message verification method, device, server and medium Active CN115529174B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211131361.0A CN115529174B (en) 2022-09-16 Short message verification method, device, server and medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211131361.0A CN115529174B (en) 2022-09-16 Short message verification method, device, server and medium

Publications (2)

Publication Number Publication Date
CN115529174A true CN115529174A (en) 2022-12-27
CN115529174B CN115529174B (en) 2024-06-21

Family

ID=

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104038502A (en) * 2014-06-24 2014-09-10 五八同城信息技术有限公司 Verification method and system
CN105263126A (en) * 2015-08-31 2016-01-20 小米科技有限责任公司 Method, device and system for short message verification
CN106230597A (en) * 2016-07-28 2016-12-14 努比亚技术有限公司 Short message verification code checking device and method
CN107426711A (en) * 2017-07-10 2017-12-01 广州视源电子科技股份有限公司 Bind or unbind the method, apparatus and system of cell-phone number
CN110768925A (en) * 2018-07-25 2020-02-07 中兴通讯股份有限公司 Verification method and device for verification code short message
CN111709007A (en) * 2020-06-10 2020-09-25 中国建设银行股份有限公司 User authentication method, device and equipment
CN114817896A (en) * 2022-04-20 2022-07-29 殷庆 Method for editing and sending discontinuous verification codes
CN115001843A (en) * 2022-06-24 2022-09-02 咪咕文化科技有限公司 Identity verification method and device, electronic equipment and computer readable storage medium

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104038502A (en) * 2014-06-24 2014-09-10 五八同城信息技术有限公司 Verification method and system
CN105263126A (en) * 2015-08-31 2016-01-20 小米科技有限责任公司 Method, device and system for short message verification
CN106230597A (en) * 2016-07-28 2016-12-14 努比亚技术有限公司 Short message verification code checking device and method
CN107426711A (en) * 2017-07-10 2017-12-01 广州视源电子科技股份有限公司 Bind or unbind the method, apparatus and system of cell-phone number
CN110768925A (en) * 2018-07-25 2020-02-07 中兴通讯股份有限公司 Verification method and device for verification code short message
CN111709007A (en) * 2020-06-10 2020-09-25 中国建设银行股份有限公司 User authentication method, device and equipment
CN114817896A (en) * 2022-04-20 2022-07-29 殷庆 Method for editing and sending discontinuous verification codes
CN115001843A (en) * 2022-06-24 2022-09-02 咪咕文化科技有限公司 Identity verification method and device, electronic equipment and computer readable storage medium

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
方发家; 胡泽民: "基于SM2/3/4密码算法的网上银行系统应用实践", 《中国新通信》, 20 June 2020 (2020-06-20), pages 75 - 77 *

Similar Documents

Publication Publication Date Title
WO2019153982A1 (en) Payment processing method and device, computer apparatus, and storage medium
US6580814B1 (en) System and method for compressing biometric models
RU2406163C2 (en) User authentication by combining speaker verification and reverse turing test
US8396711B2 (en) Voice authentication system and method
JP2007004796A (en) Method, system and program for sequential authentication using one or more error rates, which characterize each security challenge
CN109005104B (en) Instant messaging method, device, server and storage medium
CN112671806B (en) User authentication method, user authentication equipment and user authentication system
CN106878344A (en) A kind of biological characteristic authentication, register method and device
CN111160928A (en) Identity verification method and device
CN107517180A (en) Login method and device
US11868453B2 (en) Systems and methods for customer authentication based on audio-of-interest
CN112381513A (en) Information approval method and device, electronic equipment and storage medium
CN109067767B (en) Face recognition authentication method and system
CN111711523B (en) Item handling authority authorization method and device, computer equipment and storage medium
KR102302952B1 (en) Integrated financial transaction platform apparatus performing a differential login authentication process based on user login security level and operating method thereof
CN115529174B (en) Short message verification method, device, server and medium
CN115529174A (en) Short message verification method, device, server and medium
CN111914228A (en) Online opening method and device of security shield, terminal equipment, server and medium
CN114467283B (en) Identity authentication method, device, terminal, storage medium and program product
CN113242551A (en) Mobile banking login verification method and device
CN111324879A (en) Login state control method, device and equipment
CN115033924B (en) Information auditing method and system based on data security
CN1655501A (en) Identification apparatus and method employing biological statistic data
CN117395079B (en) Identity authentication system based on big data information management
RU2799096C2 (en) Method and device for authentication of personal information and server

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant