Verification code encryption processing method and system

By dynamically encrypting and automatically encrypting the SMS verification code received by smart devices, the risk of third parties obtaining verification codes is solved, and the security protection of user property and privacy is achieved. Users do not need to contact the real verification code when operating.

CN120263472APending Publication Date: 2025-07-04SHENZHEN QIKAI ELECTRONIC CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510409343.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-04-02
Publication Date
2025-07-04

AI Technical Summary

Technical Problem

In the prior art, third parties are prone to obtaining SMS verification codes from users’ mobile phones through technical means, resulting in the risk of fraud and privacy leakage, and lack of effective protective measures.

Method used

By monitoring the text messages received by the smart device, determine whether it contains a verification code, use dynamic encryption algorithm to encrypt the verification code, and automatically call the encryption keyboard in the verification code input scenario to input the encrypted verification code, and then decrypt it and transmit it to the application receiver.

Benefits of technology

Effectively prevent third parties from obtaining verification codes, improve user property and privacy security, and avoid fraud and privacy leakage. The entire user operation is a black box operation, which improves security.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120263472A_ABST
    Figure CN120263472A_ABST
Patent Text Reader

Abstract

The invention provides a verification code encryption processing method and system, and belongs to the technical field of verification code processing. The verification code encryption processing method comprises the following steps: judging whether a short message contains a verification code or not when monitoring that the intelligent equipment receives the short message, if not, ending, and if so, executing the next step; obtaining the content of the verification code, encrypting the verification code by adopting an encryption algorithm, and then sending the encrypted verification code to the short message application component; the short message application component displays the short message containing the encrypted verification code; monitoring that the intelligent equipment calls an input keyboard within a certain time when receiving the short message, judging whether the scene is a verification code input scene, and if so, automatically calling an encryption keyboard; the input module is used for inputting an encrypted verification code; and the input verification code is decrypted, and then the encrypted correct verification code is transmitted to the corresponding application receiving end. The method has the advantages that the third party is effectively prevented from obtaining the verification code, and the safety of user operation is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of verification code processing received by intelligent devices, and particularly relates to a verification code encryption processing method and system. Background Art

[0002] With the development of mobile communication technology, people increasingly rely on smart phones for daily communication and transactions. However, fraud means are becoming increasingly sophisticated, especially for middle-aged and elderly users who may have insufficient awareness of risks and are easily deceived. One common fraud means is to obtain the SMS verification code of the user's mobile phone through technical means and then perform illegal operations, bringing risks of property loss and privacy leakage to the user. Therefore, there is an urgent need for a method for processing verification codes to avoid property losses caused by third parties obtaining verification codes. Summary of the Invention

[0003] To solve the problems in the prior art, the present invention provides a verification code encryption processing method and system, which can avoid third parties from obtaining the user's verification code and improve the security in aspects such as the user's property.

[0004] The verification code encryption processing method of the present invention includes the following steps:

[0005] S1: When it is detected that the intelligent device receives a short message, it is judged whether the short message contains a verification code. If not, the process ends; if so, the next step is executed;

[0006] S2: Obtain the verification code content, encrypt the verification code using an encryption algorithm, and then send the encrypted verification code to the SMS application component;

[0007] S3: The SMS application component displays the short message containing the encrypted verification code;

[0008] S4: Monitor whether the input keyboard is called within a certain period of time after the intelligent device receives the short message in step S3, and judge whether it is a verification code input scenario. If so, automatically call the encrypted keyboard;

[0009] S5: Used to input the encrypted verification code;

[0010] S6: Decrypt the input verification code, and then transmit the encrypted correct verification code to the corresponding application receiving end.

[0011] Further, after step S1 is executed, a judgment step is further included: judge whether the sending source of the verification code is an application that needs to monitor the verification code. If so, then execute step S2.

[0012] Further, before step S1 is executed, a verification code encryption function is further included for turning on or off the verification code encryption function. After the verification code encryption function is turned on, step S1 is executed.

[0013] Furthermore, in step S1, when the operator base station sends the text message to the mobile phone wirelessly, the baseband processor on the mobile phone will receive the text message data packet, and then decode the data packet and pass it to the text message service component in the system. The text message service component will notify the text message application of new messages in the form of broadcast. After monitoring the text message broadcast, the received text message will be intercepted, and then the information content will be semantically analyzed to determine whether it contains a verification code. If not, it will be sent to the text message application for display. If so, step S2 will be executed.

[0014] Furthermore, the verification code analysis method is: determine whether there is a verification code, if so, determine it to be a verification code, if not, detect whether the current SMS content contains 4 or 6 consecutive digital SMS verification code related features, and combine the sender information to determine whether it is a verification code.

[0015] Furthermore, the encryption algorithm adopts a dynamic encryption algorithm, and the encryption formula is:

[0016] A(i)=C(i)+G

[0017] Among them, i is the number of digits in the verification code, C(i) is the original verification code number, A(i) is the encrypted verification code number, and G is the encrypted dynamic variable.

[0018] Furthermore, the encrypted dynamic variable G is a dynamic number formed by a device number and a timestamp.

[0019] Further, in step S4, the method for identifying the verification code input scenario is: using OCR technology to detect whether there are keywords about the verification code on the page, if it is detected that the current verification code input scenario requires entering a verification code, then determining whether a verification code SMS has been received within a set time.

[0020] The present invention also provides a verification code encryption processing system, which is used to implement the verification code encryption processing method, comprising:

[0021] The first judgment module is used to determine whether the text message contains a verification code when the smart device receives the text message;

[0022] Encryption module: used to obtain the verification code content, encrypt the verification code using an encryption algorithm, and then send the encrypted verification code to the SMS application component;

[0023] Display module: used to enable the SMS application component to display the SMS containing the encrypted verification code;

[0024] Detection module: used to monitor the smart device calling the input keyboard within a certain period of time after receiving a text message, and determine whether it is a verification code input scenario. If so, the encryption keyboard is automatically called;

[0025] Input module: used for inputting the encrypted verification code;

[0026] Decryption module: used for decrypting the input verification code, and then transmitting the encrypted correct verification code to the corresponding application receiving end.

[0027] Furthermore, the verification code encryption processing system further includes:

[0028] Second judgment module: used for judging whether the sending source of the sent verification code is an application that needs to monitor the verification code;

[0029] Switch setting module: used for turning on or off the verification code encryption function.

[0030] Compared with the prior art, the beneficial effects of the present invention are: by encrypting the verification code and displaying the encrypted verification code, it can effectively prevent third-party applications from obtaining the verification code to achieve fraud or obtain privacy data, and others cannot obtain the real verification code content of the user through screen peeping or screenshotting methods.

[0031] The user of the verification code is also not aware of the real verification code, thus being able to avoid the situation where a third party obtains the verification code through illegal means. And when inputting the verification code, it can be automatically transformed into the real verification code internally, and the whole process is a black-box operation, without the user having to contact the real verification code, improving the security of user operations. Brief Description of the Drawings

[0032] In order to more clearly illustrate the solutions in the present invention or the prior art, the following will briefly introduce the drawings required for use in the description of the embodiments or the prior art. Obviously, the following drawings are some embodiments of the present invention. For those of ordinary skill in the art, other drawings can be obtained based on these drawings without creative efforts.

[0033] Figure 1 It is the flowchart of the method of the present invention;

[0034] Figure 2 It is the flowchart of the operation method for the encryption part of the verification code;

[0035] Figure 3 It is the flowchart of the operation method for the decryption input part of the verification code. Detailed Embodiments

[0036] Unless otherwise defined, all technical and scientific terms used in the present invention have the same meanings as those commonly understood by those skilled in the technical field to which the present invention belongs; the terms used in the description of the present invention are only for the purpose of describing specific embodiments, and are not intended to limit the present invention; the terms "comprising" and "having" and any variations thereof in the description and claims of the present invention and the above drawings are intended to cover non-exclusive inclusion. The terms "first", "second", etc. in the description and claims of the present invention or the above drawings are used to distinguish different objects, rather than to describe a specific order.

[0037] Reference to "embodiments" in the present invention means that specific features, structures, or characteristics described in connection with the embodiments can be included in at least one embodiment of the present invention. The phrase appears in various places in the specification does not necessarily refer to the same embodiment, nor is it an exclusive, independent, or alternative embodiment to other embodiments. Those skilled in the art will explicitly and implicitly understand that the embodiments described in the present invention can be combined with other embodiments.

[0038] In order to enable those skilled in the technical field to better understand the solution of the present invention, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings.

[0039] As Figure 1 shown, the verification code encryption processing method of the present invention includes the following steps:

[0040] S1: When it is monitored that the intelligent device receives a short message, it is judged whether the short message contains a verification code. If not, the process ends. If so, the next step is executed;

[0041] S2: Obtain the verification code content, encrypt the verification code using an encryption algorithm, and then send the encrypted verification code to the short message application component;

[0042] S3: The short message application component displays the short message containing the encrypted verification code;

[0043] S4: Monitor whether the input keyboard is called within a certain period of time after the intelligent device receives the short message in step S3, and judge whether it is a verification code input scenario. If so, the encrypted keyboard is automatically called;

[0044] S5: Used to input the encrypted verification code;

[0045] S6: Decrypt the input verification code, and then transmit the encrypted correct verification code to the corresponding application receiving end.

[0046] Preferably, after executing step S1, this example further includes a determination step: determining whether the source of the verification code is an application that needs to monitor the verification code, and if so, executing step S2. This can effectively distinguish the applications that need to be monitored from ordinary applications, and improve the convenience of user operation.

[0047] Furthermore, before executing step S1, this example also includes setting a verification code encryption function to turn on or off the verification code encryption function. Step S1 is executed only after the verification code encryption function is turned on.

[0048] The user can manually turn on and off the verification code encryption function. Specifically, in this example, this setting item can be added in the settings. If the user manually turns off the switch, the text message will not be automatically encrypted. This ensures that when a verification code is required, a normal verification code can be displayed.

[0049] The operation in this example is mainly divided into two parts. The first part is the steps to operate the SMS application, and the second part is the connection with the application that requires entering a verification code. The following are detailed explanations of each.

[0050] 1. Encrypt the received verification code and display the encrypted text message.

[0051] like Figure 2 As shown, when the operator base station sends a text message to the mobile phone in wireless form, the baseband processor on the mobile phone will receive the text message data packet, then decode the data packet and pass it to the SMS service component in the system. The SMS service component will broadcast a new message to the SMS application. In step S1 of this example, a monitoring interface is set for the SMS application. When the SMS is monitored, the received SMS is intercepted, and then the information content is semantically analyzed to determine whether it contains a verification code. If not, the SMS application is notified, and the SMS application displays the received message. If the SMS contains a verification code, step S2 is executed.

[0052] In this example, semantic analysis can be used to determine whether the current message is a verification code. The verification code analysis method in this example is: determine whether there is a verification code. If so, determine it as a verification code. If not, detect whether the current SMS content contains 4 or 6 consecutive digital SMS verification code related features, and combine the sender information to determine whether it is a verification code. For example, monitor whether the current SMS content contains 4 or 6 consecutive digital SMS verification code related features, and then combine whether the sender is a bank, operator, or other official number SMS content (official numbers can be preset in the mobile phone database). If more than two of the above conditions can be detected, it can be determined that the current message is a verification code SMS.

[0053] SMS encryption:

[0054] The encryption algorithm in this example uses a dynamic encryption algorithm, and the encryption formula is as follows:

[0055] A(i) = C(i) + G

[0056] Where i is the digit position in the verification code, C(i) is the original verification code digit, A(i) is the encrypted verification code digit, and G is the encryption dynamic variable.

[0057] As an embodiment of the present invention, the encryption dynamic variable G in this example is a one-digit dynamic number formed by the device number and the timestamp. For example: the device ID is xxxx, taking the last digit as 2, and the current time is 12:27, taking the last digit 7. After adding them, taking the last digit 9, and then adding the current true value of the verification code to 9 to obtain the encrypted verification code.

[0058] After encryption, the SMS application obtains the encrypted digital content, then replaces the digits of the original verification code SMS, and notifies the user. After encryption, the values in the encryption formula will be saved currently and automatically deleted after 5 minutes.

[0059] II. After encrypting the SMS, the user inputs the decryption by himself

[0060] As Figure 3 shown, the system will detect whether it is an input scenario. If so, it will judge whether it is the verification code information received within 5 minutes. If so, it will automatically call the encrypted keyboard to receive the user input, and the value input by the user will be automatically decrypted and passed to the corresponding application.

[0061] 1. Monitor the input scenario

[0062] When the user inputs, they will rely on the input method for input. The system can monitor whether there is an input box property currently and whether the input method application is called.

[0063] If the input method is called, the system will detect whether keywords such as "verification code" exist on the page through OCR technology. If it detects the scenario where the verification code needs to be input currently, it will judge whether a verification code SMS has been received within 5 minutes.

[0064] 2. Encrypted keyboard:

[0065] Suppose when the input scenario is monitored to be valid, the secure encrypted keyboard will be automatically called. Of course, the user can also switch to the secure encrypted keyboard through a button click on the ordinary keyboard, and click again to switch back to the normal keyboard.

[0066] The display of the encrypted keyboard numbers is no different from that of the ordinary keyboard. When the user clicks on a number, the actual input value of the system will be decrypted through relevant decryption algorithms.

[0067] The encryption formula in this example is: A(i) = C(i) + G. Correspondingly, the decryption formula in this example is: C(i) = A(i) - G. Therefore, when the user enters relevant numbers on the keyboard, the numbers displayed in the input box are the same as the user's input, but the actual transmitted numbers are the decrypted digital content. And there will be relevant decryption prompts "The verification code has been encrypted and decrypted. Please feel free to enter" (for example, when clicking "5", "5" is displayed but actually "2" is transmitted).

[0068] This example is not limited to dynamic encryption algorithms. Other existing encryption algorithms can also be used. The encrypted content is mainly numbers. If the user has requirements, it can also be extended to encrypt other content of the verification code.

[0069] In this example, for other applications such as banking applications, when entering relevant verification codes and passwords, the system input method will not be called, but its own keyboard will be called. If the user enables the verification code encryption function, in the verification code input scenario, the system can, through permission control, force third-party applications to call the system input method, or force the top-level system input method to pop up, so as to avoid the problem that third-party applications cannot decrypt when using their own keyboards.

[0070] The present invention also provides a verification code encryption processing system for implementing the verification code encryption processing method, including:

[0071] The first judgment module: used to judge whether the short message contains a verification code when it is detected that the intelligent device receives a short message;

[0072] The encryption module: used to obtain the verification code content, encrypt the verification code using an encryption algorithm, and then send the encrypted verification code to the short message application component;

[0073] The display module: used to enable the short message application component to display the short message containing the encrypted verification code;

[0074] The detection module: used to monitor whether the input keyboard is called within a certain time after the intelligent device receives a short message, judge whether it is a verification code input scenario, and if so, automatically call the encrypted keyboard;

[0075] The input module: used to input the encrypted verification code;

[0076] The decryption module: used to decrypt the input verification code, and then transmit the correct encrypted verification code to the corresponding application receiving end.

[0077] Furthermore, the verification code encryption processing system further includes:

[0078] The second judgment module: used to judge whether the sending source of the verification code is an application that needs to monitor the verification code;

[0079] Switch setting module: used to turn on or off the verification code encryption function.

[0080] As can be seen from the above, the beneficial effects of the present invention are as follows: By encrypting the verification code and displaying the encrypted verification code, the present invention can effectively prevent third-party applications from obtaining the verification code to achieve fraud or obtain privacy data, and others cannot obtain the real verification code content of the user through screen peeping or screenshotting.

[0081] The user of the verification code is also unaware of the real verification code, thus avoiding the situation where a third party obtains the verification code through illegal means. Moreover, when the verification code is input, it can be automatically converted into the real verification code internally. The whole process is a black-box operation, and the user does not need to contact the real verification code, improving the security of user operations.

[0082] The above-described specific implementation manners are the preferred implementation manners of the present invention, and do not limit the specific implementation scope of the present invention. The scope of the present invention includes but is not limited to the present specific implementation manners. All equivalent changes made in accordance with the present invention are within the protection scope of the present invention.

Claims

1. A method for encrypting verification codes, characterized in that, The steps include: S1: When the smart device receives a text message, determine whether the text message contains a verification code. If not, end. If yes, proceed to the next step. S2: Obtain the verification code content, encrypt the verification code using an encryption algorithm, and then send the encrypted verification code to the SMS application component; S3: The SMS application component displays the SMS message containing the encrypted verification code; S4: monitoring the smart device to call the input keyboard within a certain period of time after receiving the SMS in step S3, and determine whether it is a verification code input scenario. If so, automatically call the encryption keyboard to input the encrypted verification code; S5: Decrypt the input verification code, and then transmit the encrypted correct verification code to the corresponding application receiving end.

2. The verification code encryption processing method according to claim 1, wherein: After step S1 is executed, a judgment step is also included: judging whether the source of sending the verification code is an application that needs to monitor the verification code, and if so, executing step S2.

3. The verification code encryption processing method according to claim 2, characterized in that: Before executing step S1, the method further includes setting a verification code encryption function to turn on or off the verification code encryption function. Step S1 is executed after the verification code encryption function is turned on.

4. The verification code encryption processing method according to any one of claims 1-3, characterized in that: In step S1, when the operator base station sends the text message to the mobile phone wirelessly, the baseband processor on the mobile phone will receive the text message data packet, then decode the data packet and pass it to the text message service component in the system. The text message service component will broadcast the text message application to notify the text message application of new messages. After monitoring the text message broadcast, the received text message will be intercepted, and then the information content will be semantically analyzed to determine whether it contains a verification code. If not, it will be sent to the text message application for display. If so, execute step S2.

5. The verification code encryption processing method according to claim 4, wherein: The verification code analysis method is: determine whether there is a verification code. If so, determine it as a verification code. If not, detect whether the current SMS content contains 4 or 6 consecutive digital SMS verification code related features, and combine the sender information to determine whether it is a verification code.

6. The verification code encryption processing method according to any one of claims 1-3, characterized in that: The encryption algorithm adopts a dynamic encryption algorithm, and the encryption formula is: A(i)=C(i)+G Among them, i is the number of digits in the verification code, C(i) is the original verification code number, A(i) is the encrypted verification code number, and G is the encrypted dynamic variable.

7. The verification code encryption processing method according to claim 6, wherein: The encrypted dynamic variable G is a dynamic number formed by the device number and the timestamp.

8. The verification code encryption processing method according to any one of claims 1-3, characterized in that: In step S4, the method for identifying the verification code input scenario is: using OCR technology to detect whether there are keywords about the verification code on the page, if it is detected that the current verification code input scenario requires entering a verification code, then determining whether a verification code SMS has been received within a set time.

9. A verification code encryption processing system for implementing the verification code encryption processing method according to any one of claims 1-8, characterized in that, include: The first judgment module is used to determine whether the text message contains a verification code when the smart device receives the text message; Encryption module: used to obtain the verification code content, encrypt the verification code using an encryption algorithm, and then send the encrypted verification code to the SMS application component; Display module: used to enable the SMS application component to display the SMS containing the encrypted verification code; Detection module: used to monitor the smart device calling the input keyboard within a certain period of time after receiving a text message, and determine whether it is a verification code input scenario. If so, the encryption keyboard is automatically called; Input module: used to input the encrypted verification code; Decryption module: used to decrypt the input verification code, and then transmit the encrypted correct verification code to the corresponding application receiver.

10. The verification code encryption processing system according to claim 9, wherein The verification code encryption processing system further includes: Second judgment module: used to judge whether the sending source of the verification code is an application that needs to monitor the verification code; Switch setting module: used to turn on or off the verification code encryption function.