Security verification system and method, electronic equipment and storage medium
By storing the mobile phone number locally and obtaining the mobile device identification code and SIM card information in real time for encrypted verification, it solves the problem of SMS verification code login resource consumption and user experience, and achieves safe, convenient, fast and silent login.
Patent Information
- Application Number
- CN202410838233.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-26
- Publication Date
- 2024-09-03
AI Technical Summary
In the existing technology, frequent use of SMS verification codes to log in leads to excessive consumption of verification code resources, and frequent sending of verification codes in a short period of time will cause the mobile phone number to be restricted from logging in, affecting the user experience.
Store the last logged-in mobile phone number through the local mobile phone number list, obtain the current mobile device identification code and SIM card information in real time, and use the preset encryption algorithm for security verification to achieve quick and silent login and avoid repeated use of SMS verification codes.
A safe and convenient fast and silent login method is implemented, which saves the consumption of verification code resources, improves user experience, and improves login efficiency.
Smart Images

Figure CN118590301A
Abstract
Description
Technical Field
[0001] The embodiments of the present application relate to the field of security verification technology, and in particular to a security verification system, method, electronic device and storage medium. Background Art
[0002] Security verification refers to the process of identity authentication and access control in a computer system, network or application. It is a key step to ensure that only authorized users can access sensitive information and functions. Moreover, with the popularization of the Internet and the development of information technology, security verification has become increasingly important to protect personal privacy and corporate data security. Verification code technology has a wide range of applications in the field of security verification. Many network applications require verification codes when logging in, which can effectively prevent malicious users from using brute force to make continuous login attempts.
[0003] At present, the existing technical solutions use SMS verification codes as a method of security verification. When registering or logging in, the user will receive a text message containing a verification code, and then enter the verification code to verify the identity. However, frequent use of verification codes to log in will lead to excessive consumption of verification code resources. In addition, frequent sending of verification codes in a short period of time will cause the mobile phone number to be restricted from logging in, affecting the user experience. Summary of the invention
[0004] The embodiments of the present application provide a security verification system, method, electronic device and storage medium, which stores the last logged-in mobile phone number through a local mobile phone number list, obtains the current mobile device identification code, SIM card information and first user identification number in real time and performs security verification without repeatedly using SMS verification codes to log in, thereby realizing a safe and convenient fast silent login method and saving the consumption of verification code resources.
[0005] The embodiments of the present application provide the following technical solutions:
[0006] In a first aspect, an embodiment of the present application provides a security verification system, which is applied to an electronic device, and the system includes:
[0007] The front-end module is communicatively connected to the back-end module, and the front-end module is used to obtain the mobile phone number stored at the last login and the first user identification number corresponding to the mobile phone number according to the local mobile phone number list; and send the mobile phone number stored at the last login and the first user identification number corresponding to the mobile phone number to the back-end module;
[0008] The back-end module is communicatively connected to the front-end module. The back-end module is used to receive the mobile phone number stored at the last login and the first user identification number corresponding to the mobile phone number sent by the front-end module; obtain the current mobile device identification code and SIM card information, and encrypt the mobile phone number, mobile device identification code and SIM card information stored at the last login through a preset encryption algorithm to obtain a second user identification number; and perform security verification based on the first user identification number and the second user identification number.
[0009] In some embodiments, the back-end module includes an encryption module, which is used to encrypt the mobile phone number, mobile device identification code and SIM card information stored during the last login through a preset encryption algorithm to obtain a second user identification number.
[0010] In some embodiments, the back-end module also includes a server, which is communicatively connected to the front-end module. The server is used to perform security verification based on the first user identification number and the second user identification number; when the security verification is successful, the user token is sent to the front-end module to make the front-end module jump from the login page to the software homepage, or, when the security verification fails, a verification failure message is returned to the front-end module.
[0011] In a second aspect, an embodiment of the present application provides a security verification method, which is applied to the security verification system of the first aspect, and the method includes:
[0012] According to the local mobile phone number list, obtain the mobile phone number stored during the last login and the first user identification number corresponding to the mobile phone number;
[0013] Get the current mobile device identification code and SIM card information;
[0014] The mobile phone number, mobile device identification code and SIM card information stored during the last login are encrypted by a preset encryption algorithm to obtain a second user identification number;
[0015] Security verification is performed based on the first user identification number and the second user identification number.
[0016] In some embodiments, performing security verification according to the first user identification number and the second user identification number includes:
[0017] Determine whether the first user identification number and the second user identification number are the same;
[0018] If the first user identification number and the second user identification number are the same, the security verification is successful and the user automatically enters the software homepage from the login page.
[0019] In some embodiments, the method further comprises:
[0020] If the first user identification number and the second user identification number are not the same, the security verification fails and the page is redirected to the verification code login page.
[0021] In some embodiments, the method further comprises:
[0022] If the mobile phone number stored in the last login does not exist in the local mobile phone number list, jump to the verification code login page;
[0023] After successfully logging in with the verification code, the current mobile phone number is stored in the local mobile phone number list.
[0024] In some embodiments, after successfully logging in via the verification code, the method further includes:
[0025] Get the mobile device identification code and SIM card information corresponding to the current mobile phone number;
[0026] The mobile phone number, the mobile device identification code and the SIM card information are encrypted by a preset encryption algorithm to obtain a first user identification number;
[0027] The current mobile phone number and the first user identification number are stored in a local mobile phone number list.
[0028] In a third aspect, an embodiment of the present application provides an electronic device, including:
[0029] at least one processor; and
[0030] a memory communicatively connected to at least one processor; wherein,
[0031] The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can perform the security verification method as described in the second aspect.
[0032] In a fourth aspect, an embodiment of the present application provides a non-volatile computer-readable storage medium, which stores computer-executable instructions, and the computer-executable instructions are used to enable an electronic device to execute the security verification method of the second aspect.
[0033] The beneficial effects of the implementation of the present application are as follows: Different from the prior art, the implementation of the present application provides a security verification system, which is applied to electronic equipment, and the system includes: a front-end module, a back-end module for communication connection, the front-end module is used to obtain the mobile phone number stored at the last login and the first user identification number corresponding to the mobile phone number according to the local mobile phone number list; the mobile phone number stored at the last login and the first user identification number corresponding to the mobile phone number are sent to the back-end module; the back-end module is communicated and connected to the front-end module, and the back-end module is used to receive the mobile phone number stored at the last login and the first user identification number corresponding to the mobile phone number sent by the front-end module; obtain the current mobile device identification code and SIM card information, and encrypt the mobile phone number, mobile device identification code and SIM card information stored at the last login through a preset encryption algorithm to obtain a second user identification number; perform security verification according to the first user identification number and the second user identification number, and the present application can store the mobile phone number of the last login through the local mobile phone number list, obtain the current mobile device identification code, SIM card information and the first user identification number in real time and perform security verification, without the need to repeatedly use the SMS verification code to log in, thereby realizing a safe and convenient fast silent login method and saving the consumption of verification code resources. BRIEF DESCRIPTION OF THE DRAWINGS
[0034] One or more embodiments are exemplarily described by corresponding drawings, which do not constitute limitations on the embodiments. Elements with the same reference numerals in the drawings represent similar elements, and the figures in the drawings do not constitute proportional limitations unless otherwise stated.
[0035] Figure 1 It is a structural diagram of a security verification system provided by an embodiment of the present application;
[0036] Figure 2 This is a schematic diagram of the connection relationship between a front-end module and a back-end module provided in an embodiment of the present application;
[0037] Figure 3 It is a flowchart of a security verification method provided by an embodiment of the present application;
[0038] Figure 4 It is a flowchart of determining whether there is a mobile phone number stored at the last login in a local mobile phone number list provided by an embodiment of the present application;
[0039] Figure 5 yes Figure 3 A detailed flow chart of step S304 in FIG.
[0040] Figure 6 It is a flow chart of storing the current mobile phone number and the first user identification number in a local mobile phone number list provided by an embodiment of the present application;
[0041] Figure 7 It is a structural schematic diagram of an electronic device provided in an embodiment of the present application.
[0042] Description of Figure Numbers:
[0043]
[0044] DETAILED DESCRIPTION
[0045] In order to facilitate the understanding of the present application, the present application is described in more detail below in conjunction with the accompanying drawings and specific embodiments. It should be noted that when an element is described as "fixed to" another element, it can be directly on the other element, or there can be one or more centered elements therebetween. When an element is described as "connected to" another element, it can be directly connected to the other element, or there can be one or more centered elements therebetween. The terms "vertical", "horizontal", "left", "right" and similar expressions used in this specification are for illustrative purposes only.
[0046] Unless otherwise defined, all technical and scientific terms used in this specification have the same meaning as those commonly understood by those skilled in the art to which this application belongs. The terms used in this specification and in the specification of this application are only for the purpose of describing specific embodiments and are not intended to limit this application. The term "and / or" used in this specification includes any and all combinations of one or more of the related listed items.
[0047] The technical solution of the present application is described in detail below in conjunction with the accompanying drawings:
[0048] See also Figure 1 , Figure 1 It is a structural diagram of a security verification system provided by an embodiment of the present application;
[0049] like Figure 1 As shown, the security verification system 100 is applied to an electronic device, and the system includes: a front-end module 101 and a back-end module 102, wherein the front-end module 101 and the back-end module 102 are connected via a transmission control protocol (TCP), wherein TCP is a reliable two-way communication protocol, which performs a three-way handshake before establishing a connection to confirm that both parties are ready to send and receive data.
[0050] In an embodiment of the present application, the front-end module 101 is an electronic device, which includes a screen for displaying web pages in a browser to interact with a user. Specifically, the front-end module includes a website foreground portion of the electronic device, which runs on a browser of the electronic device and displays web pages to users for browsing. It is the part where the website interacts directly with users. The front-end module is used to obtain the current mobile phone number, and based on a local mobile phone number list, obtain a mobile device identification code, SIM card information, and a first user identification number corresponding to the current mobile phone number; and send the current mobile phone number and the mobile device identification code, SIM card information, and first user identification number corresponding to the current mobile phone number to the back-end module.
[0051] In the embodiment of the present application, the back-end module refers to the server side of the security verification system. In the security verification system, the back-end module is responsible for handling data storage, business logic processing and interaction with the front-end. The back-end module 102 is communicatively connected to the front-end module 101, and is used to receive the mobile phone number, mobile device identification code, SIM card information and first user identification number sent by the front-end module, and encrypt the mobile phone number, mobile device identification code and SIM card information through a preset encryption algorithm to obtain a second user identification number; security verification is performed based on the first user identification number and the second user identification number.
[0052] In the embodiment of the present application, the electronic device refers to a mobile phone, and the electronic device includes a controller, which can be a general-purpose processor, a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field programmable gate array (FPGA), a single-chip microcomputer, an ARM (Acorn RISC Machine) or other programmable logic device, a discrete gate or transistor logic, a discrete hardware component, or any combination of these components. The controller can also be any traditional processor, controller, microcontroller or state machine. The controller can also be implemented as a combination of computing devices, for example, a combination of a DSP and a microprocessor, a plurality of microprocessors, one or more microprocessors combined with a DSP and / or any other such configuration, or a combination of one or more of a microcontroller unit (MCU), a field programmable gate array (FPGA), and a system on chip (SoC).
[0053] It can be understood that the electronic device in the embodiment of the present application also includes a storage module, which is used to store a local mobile phone number list. It should be noted that the storage module includes but is not limited to: FLASH flash memory, NAND flash memory, vertical NAND flash memory (VNAND), NOR flash memory, resistive random access memory (RRAM), magnetoresistive random access memory (MRAM), ferroelectric random access memory (FRAM), spin transfer torque random access memory (STT-RAM) and other devices. One or more.
[0054] See also Figure 2 , Figure 2 This is a schematic diagram of the connection relationship between a front-end module and a back-end module provided in an embodiment of the present application;
[0055] The back-end module includes an encryption module 121. Specifically, the encryption module includes a microcontroller unit (MCU). The encryption module 121 is used to encrypt the mobile phone number, mobile device identification code and SIM card information through a preset encryption algorithm to obtain a second user identification number, wherein the preset encryption algorithm includes a message digest encryption algorithm.
[0056] The back-end module also includes a server 122, which is communicatively connected to the front-end module, and the server is used to perform security verification according to the first user identification number and the second user identification number; when the security verification is successful, a user token is sent to the front-end module so that the front-end module jumps from the login page to the software homepage, or, when the security verification fails, a message of verification failure is returned to the front-end module. The number of the server 122 can be multiple, and multiple servers can constitute a server cluster, for example: the server cluster includes: a first server, a second server, ..., an Nth server, or the server cluster can be a cloud computing service center, and the cloud computing service center includes several servers. The servers in the embodiments of the present application include but are not limited to: tower servers, rack servers, blade servers, and cloud servers. Preferably, the server is a cloud server (Elastic Compute Service, ECS).
[0057] In an embodiment of the present application, the implementation method of the present application provides a security verification system, which is applied to an electronic device, and the system includes: a front-end module, a back-end module for communication connection, the front-end module is used to obtain the current mobile phone number, and according to the local mobile phone number list, obtain the mobile device identification code, SIM card information and the first user identification number corresponding to the current mobile phone number; send the current mobile phone number and the mobile device identification code, SIM card information and the first user identification number corresponding to the current mobile phone number to the back-end module; the back-end module is communicated and connected to the front-end module, the back-end module is used to receive the mobile phone number, mobile device identification code, SIM card information and the first user identification number sent by the front-end module, and encrypt the mobile phone number, mobile device identification code and SIM card information through a preset encryption algorithm to obtain a second user identification number; perform security verification according to the first user identification number and the second user identification number, the present application can store the mobile phone number of historical login through the local mobile phone number list, obtain the mobile device identification code, SIM card information and the first user identification number corresponding to the current mobile phone number in real time and perform security verification, without the need to repeatedly use the SMS verification code to log in, to achieve a safe and convenient fast silent login method, saving the consumption of verification code resources.
[0058] See also Figure 3 , Figure 3 It is a flowchart of a security verification method provided by an embodiment of the present application;
[0059] In an embodiment of the present application, the security verification method is applied to the above-mentioned security verification system. Specifically, the execution subject of the security verification method is one or more processors of the electronic device.
[0060] like Figure 3 As shown, the security verification method includes:
[0061] Step S301: According to the local mobile phone number list, obtain the mobile phone number stored during the last login and the first user identification number corresponding to the mobile phone number;
[0062] Specifically, the electronic device locally stores a local mobile phone number list, and the electronic device obtains the local mobile phone number list, and obtains the mobile phone number stored during the last login and the first user identification number corresponding to the mobile phone number based on the local mobile phone number list.
[0063] Please refer to Figure 4 , Figure 4 It is a flowchart of determining whether there is a mobile phone number stored at the last login in a local mobile phone number list provided by an embodiment of the present application;
[0064] like Figure 4 As shown, the process of determining whether there is a mobile phone number stored at the last login in the local mobile phone number list includes:
[0065] Step S401: Obtain a local mobile phone number list;
[0066] Specifically, the electronic device locally stores a local mobile phone number list, which is obtained by the electronic device, wherein the mobile phone number is a unique number assigned to a mobile device in a mobile phone network, which is used to identify the device and communicate. The local mobile phone number list stores the last logged-in mobile phone number and the first user identification number corresponding to the last logged-in mobile phone number.
[0067] Step S402: Determine whether there is a mobile phone number stored during the last login in the local mobile phone number list;
[0068] Specifically, after obtaining the local mobile phone number list, it is determined whether the mobile phone number stored at the last login is in the local mobile phone number list. If the mobile phone number stored at the last login is in the local mobile phone number list, the process proceeds to step S403; if the mobile phone number stored at the last login is not in the local mobile phone number list, the process proceeds to step S404. It is understandable that if the user logs in for the first time, the mobile phone number stored at the last login is not recorded in the local mobile phone number list; if the user does not log in for the first time, the mobile phone number stored at the last login is recorded in the local mobile phone number list.
[0069] Step S403: According to the local mobile phone number list, obtain the mobile phone number stored during the last login and the first user identification number corresponding to the mobile phone number;
[0070] Specifically, if the local mobile phone number list contains the mobile phone number stored at the last login, the mobile phone number stored at the last login and the first user identification number corresponding to the mobile phone number are obtained according to the local mobile phone number list, wherein the first user identification number is an identification number in the form of a string obtained by encrypting the mobile phone number, mobile device identification code and SIM card information obtained by the electronic device when the user last logged in through a preset encryption algorithm, wherein the preset encryption algorithm includes a message digest encryption algorithm, it should be noted that the main feature of the message digest algorithm is that the encryption process does not require a key, and the encrypted data cannot be decrypted, and the only algorithm that can be decrypted in reverse is the CRC32 algorithm, and only by inputting the same plaintext data and passing through the same message digest algorithm can the same ciphertext be obtained, therefore, the first user identification number is unique, that is, as long as one of the three data of the mobile phone number, mobile device identification code and SIM card information is different, the user identification number obtained by encryption is also different.
[0071] Step S404: Jump to the verification code login page;
[0072] Specifically, if the mobile phone number stored during the last login does not exist in the local mobile phone number list, the front-end module jumps to the verification code login page. It can be understood that this is the user's first login, so he needs to log in by receiving a text message verification code through an electronic device.
[0073] Step S405: Determine whether the verification code login is successful;
[0074] Specifically, after the electronic device receives the SMS verification code, the user inputs the SMS verification code into the front-end module, and the back-end module determines whether the verification code login is successful, that is, whether the SMS verification code entered by the user in the front-end module is the same as the SMS verification code in the back-end module. If they are the same, it means that the verification code login is successful, and the process goes to step S407; if they are not the same, it means that the verification code login fails, and the process goes to step S406.
[0075] Step S406: Do not store the current mobile phone number in the local mobile phone number list;
[0076] Specifically, if the verification code login fails, the current mobile phone number will not be stored in the local mobile phone number list, and a pop-up window will be displayed on the front-end module to prompt the user that the SMS verification code is wrong, so that the user can re-enter the SMS verification code or obtain the SMS verification code again.
[0077] Step S407: storing the current mobile phone number in a local mobile phone number list;
[0078] Specifically, if the verification code login is successful, the current mobile phone number is stored in the local mobile phone number list.
[0079] Step S302: Obtain the current mobile device identification code and SIM card information;
[0080] Specifically, obtain the current mobile device identification code and SIM card information. It should be noted that the current mobile device identification code and SIM card information are not pre-stored, but acquired by the electronic device in real time. Among them, the mobile device identification code includes the International Mobile Equipment Identity code. IMEI (International Mobile Equipment Identity) is the abbreviation of the International Mobile Equipment Identity code. Each mobile phone has a unique 15-digit IMEI number for identifying the device. The IMEI is usually preset in the mobile phone and can be used to lock the device, track lost or stolen mobile phones, etc.; the SIM card information includes the International Mobile Subscriber Identity code. IMSI (International Mobile Subscriber Identity) is the abbreviation of the International Mobile Subscriber Identity code. It is a unique digital code used to identify the mobile network operator and user to which the mobile device belongs. IMSI is usually stored in the SIM card and used for identity authentication during mobile communications.
[0081] Step S303: Encrypt the mobile phone number, mobile device identification code and SIM card information stored during the last login using a preset encryption algorithm to obtain a second user identification number;
[0082] Specifically, the mobile phone number, mobile device identification code and SIM card information stored at the time of the last login are encrypted by a preset encryption algorithm to obtain a second user identification number, wherein the second user identification number is in the form of a character string, and the preset encryption algorithm includes a message digest encryption algorithm. The main feature of the message digest algorithm is that the encryption process does not require a key, and the encrypted data cannot be decrypted. Only the CRC32 algorithm can be decrypted in reverse. Only by inputting the same plaintext data and passing through the same message digest algorithm can the same ciphertext be obtained.
[0083] Step S304: Perform security verification according to the first user identification number and the second user identification number;
[0084] Please refer to Figure 5 , Figure 5 yes Figure 3 A detailed flow chart of step S304 in FIG.
[0085] like Figure 5 As shown, step S304: performing security verification according to the first user identification number and the second user identification number, including:
[0086] Step S341: Obtain the first user identification number and the second user identification number;
[0087] Specifically, the first user identification number is obtained according to the local mobile phone number list, and the mobile phone number, mobile device identification code and SIM card information stored at the last login are encrypted by a preset encryption algorithm to obtain the second user identification number.
[0088] Step S342: Determine whether the first user identification number and the second user identification number are the same;
[0089] Specifically, determine whether the first user identification number and the second user identification number are the same. If the first user identification number and the second user identification number are the same, it means that the security verification is successful, and then enter step S344; if the first user identification number and the second user identification number are not the same, it means that the security verification fails, and then enter step S343.
[0090] Step S343: If the security verification fails, jump to the verification code login page;
[0091] Specifically, if the first user identification number and the second user identification number are not the same, the security verification fails, and the page is redirected to the verification code login page, so that the user can log in by receiving a verification code via SMS.
[0092] Step S344: If the security verification is successful, the software homepage will be automatically entered from the login page;
[0093] Specifically, if the first user identification number and the second user identification number are the same, the security verification is successful. After the security verification is successful, the back-end module will return the user token to the front-end module, so that the front-end module will automatically enter the software homepage from the login page, where the user token is an encrypted string used for identity authentication and authorization, usually used for user identity authentication across networks.
[0094] Please refer to Figure 6 , Figure 6 It is a flow chart of storing the current mobile phone number and the first user identification number in a local mobile phone number list provided by an embodiment of the present application;
[0095] like Figure 6 As shown, the process of storing the current mobile phone number and the first user identification number in the local mobile phone number list includes:
[0096] Step S601: Obtain the mobile device identification code and SIM card information corresponding to the current mobile phone number;
[0097] Specifically, when a user logs in for the first time, after successfully logging in through the verification code, the backend module automatically obtains the current logged-in mobile phone number, as well as the mobile device identification code and SIM card information corresponding to the current mobile phone number.
[0098] Step S602: Encrypt the mobile phone number, mobile device identification code and SIM card information using a preset encryption algorithm to obtain a first user identification number;
[0099] Specifically, the back-end module encrypts the acquired mobile phone number, mobile device identification code and SIM card information through a preset encryption algorithm to obtain a first user identification number, wherein the preset encryption algorithm includes a message digest encryption algorithm.
[0100] Step S603: storing the current mobile phone number and the first user identification number in a local mobile phone number list;
[0101] Specifically, after obtaining the first user identification number, the current mobile phone number and the first user identification number are stored in a local mobile phone number list.
[0102] In the embodiment of the present application, the advantages of the present application are: first, compared with the usual method of caching a large amount of user information to ensure automatic login next time, the solution of the present application is to only store the mobile phone number and the first user identification number used last time, and the acquisition of the mobile device identification code (IMEI) and SIM card information (IMSI) for this login are all acquired in real time. Therefore, the present application can save storage space; second, due to the uniqueness of the mobile device identification code (IMEI), SIM card information (IMSI) and the user's registered mobile phone number, the present application can ensure that the method of combining the three is effective and safe, and the method of acquiring the three is simple and direct, which can improve the efficiency of data acquisition; third, the solution of the present application allows users to quickly and automatically log in to the software homepage under non-first login conditions, thereby improving the efficiency of users' non-first login.
[0103] In an embodiment of the present application, a security verification method is provided and applied to a security verification system, and the security verification method includes: obtaining the current mobile phone number; determining whether the current mobile phone number exists in a local mobile phone number list; if the current mobile phone number exists in the local mobile phone number list, obtaining the mobile device identification code, SIM card information and first user identification number corresponding to the mobile phone number according to the local mobile phone number list; encrypting the mobile phone number, mobile device identification code and SIM card information through a preset encryption algorithm to obtain a second user identification number; performing security verification based on the first user identification number and the second user identification number. The present application can store historically logged-in mobile phone numbers through a local mobile phone number list, obtain the mobile device identification code, SIM card information and first user identification number corresponding to the current mobile phone number in real time and perform security verification without repeatedly using SMS verification codes to log in, thereby achieving a safe and convenient fast silent login method and saving the consumption of verification code resources.
[0104] Please refer to Figure 7 , Figure 7 It is a structural schematic diagram of an electronic device provided in an embodiment of the present application;
[0105] like Figure 7 As shown, the electronic device 70 includes one or more processors 701 and a memory 702. Figure 7 A processor 701 is taken as an example.
[0106] The processor 701 and the memory 702 may be connected via a bus or other means. Figure 7 The example of connecting through bus is taken in the following.
[0107] Processor 701 is used to provide computing and control capabilities to control the electronic device 70 to perform corresponding tasks, for example, controlling the electronic device 70 to perform the security verification method in any of the above method embodiments, including: obtaining the mobile phone number stored at the last login and the first user identification number corresponding to the mobile phone number based on the local mobile phone number list; obtaining the current mobile device identification code and SIM card information; encrypting the mobile phone number, mobile device identification code and SIM card information stored at the last login through a preset encryption algorithm to obtain a second user identification number; and performing security verification based on the first user identification number and the second user identification number.
[0108] The last logged-in mobile phone number is stored in the local mobile phone number list, and the current mobile device identification code, SIM card information and first user identification number are obtained in real time for security verification. There is no need to repeatedly use the SMS verification code to log in, thus achieving a safe and convenient fast silent login method and saving the consumption of verification code resources.
[0109] The processor 701 may be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), a hardware chip or any combination thereof; it may also be a digital signal processor (DSP), an application specific integrated circuit (ASIC), a programmable logic device (PLD) or a combination thereof. The above-mentioned PLD may be a complex programmable logic device (CPLD), a field-programmable gate array (FPGA), a generic array logic (GAL) or any combination thereof.
[0110] The memory 702, as a non-transitory computer-readable storage medium, can be used to store non-transitory software programs, non-transitory computer executable programs and modules, such as program instructions / modules corresponding to the security verification method in the embodiment of the present application. The processor 701 can implement the security verification method in any of the following method embodiments by running the non-transitory software programs, instructions and modules stored in the memory 702. Specifically, the memory 702 may include a volatile memory (VM), such as a random access memory (RAM); the memory 702 may also include a non-volatile memory (NVM), such as a read-only memory (ROM), a flash memory, a hard disk drive (HDD) or a solid-state drive (SSD) or other non-transitory solid-state storage device; the memory 702 may also include a combination of the above-mentioned types of memory.
[0111] The memory 702 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other non-volatile solid-state storage device. In some embodiments, the memory 702 may optionally include a memory remotely arranged relative to the processor 701, and these remote memories may be connected to the processor 701 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.
[0112] One or more modules are stored in the memory 702, and when executed by one or more processors 701, the security verification method in any of the above method embodiments is executed, for example, the security verification method described above is executed. Figure 3 The steps shown can also be implemented Figure 1 The functions of each module or unit.
[0113] In the embodiment of the present application, the electronic device 70 may also have components such as a wired or wireless network interface, a keyboard, and an input / output interface for input and output. The electronic device 70 may also include other components for realizing the functions of the device, which will not be elaborated here.
[0114] The present application also provides a computer-readable storage medium, such as a memory including a program code, and the program code can be executed by a processor to complete the security verification method in the above embodiment. For example, the computer-readable storage medium can be a read-only memory (ROM), a random access memory (RAM), a compact disc read-only memory (CDROM), a magnetic tape, a floppy disk, and an optical data storage device.
[0115] The present application also provides a computer program product, which includes one or more program codes stored in a computer-readable storage medium. The processor of the electronic device reads the program code from the computer-readable storage medium, and the processor executes the program code to complete the method steps of the security verification method provided in the above embodiment.
[0116] A person skilled in the art will appreciate that all or part of the steps for implementing the above embodiments may be accomplished by hardware or by hardware associated with a program code, and the program may be stored in a computer-readable storage medium, and the above-mentioned storage medium may be a read-only memory, a disk or an optical disk, etc.
[0117] Through the description of the above implementation methods, ordinary technicians in this field can clearly understand that each implementation method can be implemented by means of software plus a general hardware platform, and of course, it can also be implemented by hardware. Ordinary technicians in this field can understand that all or part of the processes in the above-mentioned embodiment method can be completed by instructing related hardware through a computer program, and the program can be stored in a computer-readable storage medium. When the program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, the storage medium can be a disk, an optical disk, a read-only memory (ROM) or a random access memory (RAM), etc.
[0118] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit them. Under the concept of the present application, the technical features in the above embodiments or different embodiments can also be combined, the steps can be implemented in any order, and there are many other changes in different aspects of the present application as mentioned above, which are not provided in detail for the sake of simplicity. Although the present application has been described in detail with reference to the aforementioned embodiments, a person of ordinary skill in the art should understand that the technical solutions described in the aforementioned embodiments can still be modified, or some of the technical features can be replaced by equivalents. These modifications or replacements do not deviate the essence of the corresponding technical solutions from the scope of the technical solutions of the embodiments of the present application.
Claims
1. A security verification system, characterized in that: The system is applied to electronic equipment, and the system comprises: A front-end module is communicatively connected to a back-end module, wherein the front-end module is used to obtain the mobile phone number stored at the last login and the first user identification number corresponding to the mobile phone number according to a local mobile phone number list; and send the mobile phone number stored at the last login and the first user identification number corresponding to the mobile phone number to the back-end module; A back-end module is communicatively connected to the front-end module, and is used to receive the mobile phone number stored at the last login and the first user identification number corresponding to the mobile phone number sent by the front-end module; obtain the current mobile device identification code and SIM card information, and encrypt the mobile phone number, the mobile device identification code and the SIM card information stored at the last login through a preset encryption algorithm to obtain a second user identification number; and perform security verification based on the first user identification number and the second user identification number.
2. The system according to claim 1, characterized in that The back-end module includes an encryption module, which is used to encrypt the mobile phone number, the mobile device identification code and the SIM card information stored during the last login through a preset encryption algorithm to obtain a second user identification number.
3. The system according to claim 1, characterized in that The back-end module further comprises a server, the server is communicatively connected to the front-end module, and the server is used for performing security verification according to the first user identification number and the second user identification number; When the security verification succeeds, a user token is sent to the front-end module so that the front-end module jumps from the login page to the software homepage, or, when the security verification fails, a verification failure message is returned to the front-end module.
4. A security verification method, characterized in that: Applied to the security verification system according to any one of claims 1 to 3, the method comprises: According to the local mobile phone number list, obtain the mobile phone number stored at the last login and the first user identification number corresponding to the mobile phone number; Get the current mobile device identification code and SIM card information; The mobile phone number, the mobile device identification code and the SIM card information stored during the last login are encrypted by a preset encryption algorithm to obtain a second user identification number; Security verification is performed based on the first user identification number and the second user identification number.
5. The method according to claim 4, characterized in that The performing security verification according to the first user identification number and the second user identification number includes: Determining whether the first user identification number and the second user identification number are the same; If the first user identification number and the second user identification number are the same, the security verification is successful and the user automatically enters the software homepage from the login page.
6. The method according to claim 5, characterized in that The method further comprises: If the first user identification number and the second user identification number are not the same, the security verification fails and the page is redirected to the verification code login page.
7. The method according to claim 4, characterized in that The method further comprises: If the mobile phone number stored in the last login does not exist in the local mobile phone number list, jump to the verification code login page; After successfully logging in with the verification code, the current mobile phone number is stored in the local mobile phone number list.
8. The method according to claim 7, characterized in that After successfully logging in through the verification code, the method further includes: Obtain the mobile device identification code and SIM card information corresponding to the current mobile phone number; The mobile phone number, the mobile device identification code and the SIM card information are encrypted by the preset encryption algorithm to obtain a first user identification number; The current mobile phone number and the first user identification number are stored in the local mobile phone number list.
9. An electronic device, characterized in that: include: at least one processor; and a memory communicatively connected to the at least one processor; wherein, The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the security verification method as described in any one of claims 4-8.
10. A computer-readable storage medium, characterized in that: The storage medium stores a computer program or instruction, and when the computer program or instruction is executed, the security verification method as described in any one of claims 4 to 8 is implemented.
