Mobile terminal PIN input method, computer storage medium and terminal device

文档序号:935842 发布日期:2021-03-05 浏览:17次 中文

阅读说明:本技术 移动终端pin输入方法、计算机存储介质及终端设备 (Mobile terminal PIN input method, computer storage medium and terminal device ) 是由 江沣 李伟 于 2020-12-15 设计创作,主要内容包括:本发明提供了移动终端PIN输入方法,所述终端设备包括触摸屏、第一芯片和第二芯片,所述触摸屏的控制指令输入端与所述第一芯片连接,所述触摸屏的信号输出端预设与所述第一芯片连接,本发明通过设置第一芯片和第二芯片,初始状态下触摸屏的信号输出端与第一芯片连接,通过按压触摸屏产生的电平变化信号只会被第一芯片获取,当进入PIN输入模式时,切换触摸屏的信号输出端以通过第二芯片获取信号,避免第一芯片连接和控制的其他程序、功能或者应用监控获取PIN,保证了PIN的安全性。(The invention provides a PIN input method of a mobile terminal, wherein terminal equipment comprises a touch screen, a first chip and a second chip, a control instruction input end of the touch screen is connected with the first chip, and a signal output end of the touch screen is connected with the first chip in a preset mode.)

1. A PIN input method of a mobile terminal is characterized in that terminal equipment comprises a touch screen, a first chip and a second chip, a control instruction input end of the touch screen is connected with the first chip, a signal output end of the touch screen is connected with the first chip in a preset mode, and the method comprises the following steps:

detecting an instruction input by a pin, and switching a signal output end of the touch screen to connect the signal output end with the second chip;

generating a random sequence keyboard through the second chip, and sending the random sequence keyboard information to the first chip;

controlling the touch screen to display the random sequence keyboard through the first chip;

sending keyboard attributes to the second chip through the first chip, wherein the keyboard attributes comprise a number layout mode;

detecting a touch instruction acting on the touch screen, wherein the touch instruction is acquired through the second chip;

determining a key position corresponding to the touch instruction according to the touch instruction and the keyboard attribute through the second chip;

and when the PIN input is detected to be finished, switching a signal output end of the touch screen to be connected with the first chip.

2. The input method of claim 1, wherein the random sequence keyboard comprises a first key for inputting a PIN, the method further comprising:

when detecting that the key position corresponding to the touch instruction is the first key position, storing the key position value of the first key position and sending PIN input information to the first chip;

and after the first chip receives the PIN input information, controlling the touch screen to display an identification number, wherein the number of the identification numbers corresponds to the received PIN input information.

3. The input method according to claim 2, wherein the random sequence keyboard further comprises a second key for confirming completion of the PIN input, the method further comprising:

and outputting the stored key position value combination when the key position information corresponding to the touch instruction is detected as the second key position.

4. The input method according to claim 3, wherein after the "instruction to detect PIN input, switch the signal output terminal of the touch screen to connect with the second chip", a PIN specification parameter is sent to the second chip through the first chip, wherein the PIN specification parameter includes a PIN minimum length and/or a PIN maximum length, the method further comprising:

when detecting that the key position information corresponding to the touch instruction is a second key position, acquiring the length of the stored key position value combination;

and when the length of the key bit value combination is detected to be smaller than the minimum length of the PIN or larger than the maximum length of the PIN, outputting an error reporting instruction.

5. The input method according to claim 3, characterized in that the method further comprises:

and when the key position information corresponding to the touch instruction is detected to be a second key position, encrypting the stored key position value combination to generate the PINBLock, and outputting the PINBLock.

6. The input method according to claim 4, wherein after the "detecting the instruction input by PIN, switching the signal output terminal of the touch screen to connect with the second chip", a PIN encryption algorithm is sent to the second chip through the first chip, and when it is detected that the key position information corresponding to the touch instruction is the second key position, the stored key position value combination is encrypted through the PIN encryption algorithm to generate pinlock, and pinlock is output.

7. The input method according to claim 1, wherein after the "instruction to detect pin input, switching the signal output terminal of the touch screen to connect with the second chip", sending a preset time threshold parameter to the second chip through the first chip; the step of "when the end of the PIN input is detected" specifically includes:

and when the PIN input state of the terminal is detected to exceed the preset time threshold, the PIN input is considered to be finished.

8. The input method according to claim 1, wherein the random keyboard sequence comprises a first key and a second key, the first key is used for inputting the PIN, and the second key is used for confirming that the PIN is completely input; the step of "when the end of the PIN input is detected" specifically includes:

and when the key position information corresponding to the touch instruction is detected to be the second key position, the PIN input is considered to be finished.

9. A computer storage medium having stored thereon a computer program, characterized in that the program, when processed and executed, implements a mobile terminal PIN entry method according to any of claims 1-8.

10. A terminal device, comprising:

one or more processors;

storage means for storing one or more programs which, when executed by the one or more processors, cause the one or more processors to implement the mobile terminal PIN entry method as claimed in any of claims 1-8.

Technical Field

The invention relates to the technical field of PIN safety, in particular to a mobile terminal PIN input method, a computer storage medium and terminal equipment.

Background

Based on the consideration of security design, terminal devices (such as mobile phones, POS machines, computers, tablet computers and the like) need to ensure that PIN input is not stolen when the PIN is input. At present, most of terminal equipment with a touch screen adopts ways such as generating a random keyboard and adopting authority control to protect PIN input when the PIN is input so as to prevent the PIN from being stolen.

However, the generated random keyboard is easily monitored by other APPs or functions in the terminal during input, the forbidden function is troublesome and has a leak, potential safety hazards exist, the corresponding software development cost is high, and on the other hand, the safety of the permission control is limited, and a good protection effect cannot be achieved. In order to solve the above problems, a PIN input method for a mobile terminal capable of ensuring security is required.

Disclosure of Invention

The invention provides a mobile terminal PIN input method, a computer storage medium and a terminal device, aiming at solving the technical problems mentioned in the background technology.

The invention firstly provides a PIN input method of a mobile terminal, wherein the terminal equipment comprises a touch screen, a first chip and a second chip, the control instruction input end of the touch screen is connected with the first chip, the signal output end of the touch screen is preset to be connected with the first chip, and the method comprises the following steps:

detecting an instruction input by a pin, and switching a signal output end of the touch screen to connect the signal output end with the second chip;

generating a random sequence keyboard through the second chip, and sending the random sequence keyboard information to the first chip;

controlling the touch screen to display the random sequence keyboard through the first chip;

sending keyboard attributes to the second chip through the first chip, wherein the keyboard attributes comprise a number layout mode;

detecting a touch instruction acting on the touch screen, wherein the touch instruction is acquired through the second chip;

determining a key position corresponding to the touch instruction according to the touch instruction and the keyboard attribute through the second chip;

and when the PIN input is detected to be finished, switching a signal output end of the touch screen to be connected with the first chip.

Further, the random sequence keyboard comprises a first key for inputting the PIN, and the method further comprises:

when detecting that the key position corresponding to the touch instruction is the first key position, storing the key position value of the first key position and sending PIN input information to the first chip;

and after the first chip receives the PIN input information, controlling the touch screen to display an identification number, wherein the number of the identification numbers corresponds to the received PIN input information.

Further, the random sequence keyboard further comprises a second key for confirming that the PIN input is completed, and the method further comprises:

and outputting the stored key position value combination when the key position information corresponding to the touch instruction is detected as the second key position.

Further, after the "detecting the instruction of PIN input, switching the signal output terminal of the touch screen to connect with the second chip", sending a PIN specification parameter to the second chip through the first chip, wherein the PIN specification parameter includes a PIN minimum length and/or a PIN maximum length, and the method further includes:

when detecting that the key position information corresponding to the touch instruction is a second key position, acquiring the length of the stored key position value combination;

and when the length of the key bit value combination is detected to be smaller than the minimum length of the PIN or larger than the maximum length of the PIN, outputting an error reporting instruction.

Further, the method further comprises:

and when the key position information corresponding to the touch instruction is detected to be a second key position, encrypting the stored key position value combination to generate the PINBLock, and outputting the PINBLock.

Further, after the instruction input by the PIN is detected and the signal output end of the touch screen is switched to be connected with the second chip, the PIN encryption algorithm is sent to the second chip through the first chip, and when the key position information corresponding to the touch instruction is detected to be a second key position, the stored key position value combination is encrypted through the PIN encryption algorithm to generate PINCLOCK, and the PINCLOCK is output.

Further, after the signal output end of the touch screen is switched to be connected with the second chip by the instruction input by the detection pin, a preset time threshold parameter is sent to the second chip through the first chip; the step of "when the end of the PIN input is detected" specifically includes:

and when the PIN input state of the terminal is detected to exceed the preset time threshold, the PIN input is considered to be finished.

Further, the random keyboard sequence comprises a first key and a second key, the first key is used for inputting the PIN, and the second key is used for confirming that the PIN is input completely; the step of "when the end of the PIN input is detected" specifically includes:

and when the key position information corresponding to the touch instruction is detected to be the second key position, the PIN input is considered to be finished.

The invention also provides a computer storage medium on which a computer program is stored, which when executed by a processor implements the above-mentioned mobile terminal PIN input method.

The present invention also provides a terminal device, including:

one or more processors;

a storage device for storing one or more programs which, when executed by the one or more processors, cause the one or more processors to implement the above-described mobile terminal PIN entry method.

The technical scheme provided by the embodiment of the disclosure can have the following beneficial effects: according to the invention, the first chip and the second chip are arranged, the signal output end of the touch screen is connected with the first chip in an initial state, the level change signal generated by pressing the touch screen can be only acquired by the first chip, and when the PIN input mode is entered, the signal output end of the touch screen is switched to acquire the signal through the second chip, so that other programs, functions or application monitoring of connection and control of the first chip are avoided, and the PIN safety is ensured.

It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.

Drawings

Fig. 1 is a flowchart illustrating steps of a PIN entry method of a mobile terminal according to an embodiment of the present invention.

Fig. 2 is a schematic diagram of a partial structure of a terminal device according to an embodiment of the present invention.

Detailed Description

Reference will now be made in detail to embodiments of the present invention, examples of which are illustrated in the accompanying drawings, wherein like or similar reference numerals refer to the same or similar elements or elements having the same or similar function throughout. The embodiments described below with reference to the drawings are illustrative only and should not be construed as limiting the invention.

As used herein, the singular forms "a", "an", "the" and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. It will be further understood that the terms "comprises" and/or "comprising," when used in this specification, specify the presence of stated features, integers, steps, or operations, but do not preclude the presence or addition of one or more other features, integers, steps, operations, or groups thereof.

It will be understood by those skilled in the art that, unless otherwise defined, all terms (including technical and scientific terms) used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this invention belongs. It will be further understood that terms, such as those defined in commonly used dictionaries, should be interpreted as having a meaning that is consistent with their meaning in the context of the prior art and will not be interpreted in an idealized or overly formal sense unless expressly so defined herein.

It will be appreciated by those skilled in the art that the terms "application," "application program," "application software," and the like, as used herein, are intended to refer to a computer software product electronically-adapted to be electronically-constructed, from a collection of computer instructions and associated data resources, in accordance with the principles of the present invention. Unless otherwise specified, such nomenclature is not itself limited by the programming language class, level, or operating system or platform upon which it depends. Of course, such concepts are not limited to any type of terminal.

It should be understood by those skilled in the art that the user interface and the display interface referred to in the present invention generally refer to a display interface capable of being used to send the control instruction to the intelligent terminal, and for example, may be an option (or a button, added by the application program, the same applies hereinafter) in a setup page of an Android/IOS/Windows Phone system, an option in a notification bar or an interaction page called from a desktop, or an option in a page constructed by an active component of the application program.

Referring to fig. 1, the present invention first provides a PIN entry method for a mobile terminal. The method comprises the following steps:

and S100, detecting an instruction input by a pin, and switching a signal output end of the touch screen to connect the signal output end with the second chip.

The terminal equipment comprises a touch screen, a first chip and a second chip, wherein the control instruction input end of the touch screen is connected with the first chip, and the signal output end of the touch screen is preset to be connected with the first chip. The first chip is a main chip of the terminal equipment and is used for processing affairs and functions of the terminal equipment except PIN input; the second chip is a secure chip of the terminal device and is only used for processing transactions and functions related to PIN input.

In this embodiment, after detecting a PIN input instruction (which may be when a user clicks an input box of a PIN, or when a user needs to input a PIN code in a transaction order generated when the user performs online shopping or places an order by swiping a card), the signal output end of the touch screen is switched to connect the signal output end with the second chip, that is, in a PIN input mode, information acting on the touch screen can only be acquired through the second chip without passing through the first chip, so that the security of the PIN is ensured.

Specifically, the touch screen may be a resistive touch screen, and the level change signal is generated by pressing any position on the touch screen. When the user presses the touch screen in the PIN input mode, the generated level change signal is directly transmitted to the second chip, and the second chip identifies and confirms a corresponding instruction (possibly an input PIN value, and also possibly an instruction for quitting PIN input or completing PIN input).

And S200, generating a random sequence keyboard through the second chip, and sending the random sequence keyboard information to the first chip.

And when the touch screen is in a PIN input mode, namely the signal output end of the touch screen is switched to be connected with the second chip, generating a random sequence keyboard through the second chip, and sending the generated random sequence keyboard to the first chip.

In this embodiment, the random sequence keyboard is generated by the second chip, so that the generation of the random sequence keyboard is not interfered by the first chip and other applications in communication connection with the first chip, and the PIN is better ensured not to be intercepted.

Specifically, the random sequence keyboard comprises a first key for representing a PIN value, such as a numeric key, a letter key, a symbol key and the like, and when a user presses the corresponding first key, the random sequence keyboard represents that corresponding key information is input as the PIN; the random sequence keyboard can also comprise a second key position, the second key position is used for confirming that the PIN input is finished, and when the user presses the second key position, the PIN input is finished.

And S300, controlling the touch screen to display the random sequence keyboard through the first chip.

In this embodiment, a control instruction input end of the touch screen is connected to the first chip, that is, a display interface of the touch screen is controlled by the first chip, and the random sequence keyboard generated by the second chip needs to be displayed on the touch screen only through the first chip. On one hand, because the touch screen also contains elements of other applications or programs besides PIN input, if the control instruction input end is also connected and controlled through the second chip, the second chip is inevitably associated with other applications and/or programs, and the security of the PIN cannot be ensured.

And S400, sending keyboard attributes to the second chip through the first chip, wherein the keyboard attributes comprise a number layout mode.

And S500, detecting a touch instruction acting on the touch screen, wherein the touch instruction is acquired through the second chip.

S600, determining a key position corresponding to the touch instruction according to the touch instruction and the keyboard attribute through the second chip.

In this embodiment, the control instruction input end of the touch screen is connected to the first chip, that is, the display interface of the touch screen is controlled by the first chip, so that the second chip cannot know the keyboard attributes at this time, such as the number layout, the key size, the keyboard position, the current number layout of the terminal (full screen display, half screen display, partial screen display, etc.), the size of the random sequence keyboard keys, and the corresponding positions of the random sequence keyboard keys on the display interface, which are necessary attributes for assisting in judging which key to press, and sends the key size to the second chip through the first chip, so that the second chip can judge the key size according to the keyboard attributes and the acquired touch instruction.

And S700, when the PIN input is detected to be finished, switching a signal output end of the touch screen to be connected with the first chip.

And when the PIN input mode is finished, switching the signal output end of the touch screen to be connected with the first chip so as to complete a cycle and ensure that the second chip cannot be involved in terminal control in a non-PIN input state.

It should be noted that S100, S200, and S300 are only described in the present invention to facilitate distinguishing the identification steps, and the reference numerals of S100, S200, and the like are not limiting features of the method implementation sequence except that other steps are specifically mentioned as the implementation conditions.

Further, in an embodiment of the present invention, the S600 specifically further includes:

s601: and when the key position corresponding to the touch instruction is detected to be the first key position, storing the key position value of the first key position and sending PIN input information to the first chip.

S602: and after the first chip receives the PIN input information, controlling the touch screen to display an identification number, wherein the number of the identification numbers corresponds to the received PIN input information.

In this embodiment, when the second chip detects that the key corresponding to the touch instruction is the first key, the key value of the first key is saved and PIN input information is sent to the first chip, where the PIN input information is used as state information and does not include substantial content, such as specific key value information. After the first chip receives the PIN input information, the touch screen is controlled to display an identification number, which can be an identification symbol such as "+", "·" and the like, so as to remind a user of the PIN length which is input.

Further, in an embodiment of the present invention, the S600 specifically further includes:

and S603, outputting the stored key position value combination when the key position information corresponding to the touch instruction is detected as a second key position.

Specifically, in this embodiment, after determining the key position corresponding to the touch instruction according to the touch instruction and the keyboard attribute by the second chip, further detection is performed, whether the touch instruction corresponds to the first key position is determined first, and when the key position corresponding to the touch instruction is not the first key position, whether the touch instruction corresponds to the second key position is determined, and if not, that is, the touch instruction is a null instruction, other steps are not performed to wait for information of a next touch instruction.

Preferably, after step S100, an embodiment of the present invention sends, by the first chip, a PIN specification parameter to the second chip, where the PIN specification parameter includes a PIN minimum length and/or a PIN maximum length, and the method further includes:

and when the key position information corresponding to the touch instruction is detected to be the second key position, acquiring the length of the stored key position value combination.

And when the length of the key bit value combination is detected to be smaller than the minimum length of the PIN or larger than the maximum length of the PIN, outputting an error reporting instruction.

In this embodiment, the PIN specification parameters based on different applications, programs, or software are different, and even the PIN specification parameters based on different operators or clients are different, so that the PIN specification parameters are set in the first chip to facilitate modification and adjustment of the parameters, and the risk that the second chip is tampered with due to intervention can be avoided.

Preferably, in an embodiment of the present invention, the method further includes:

and when the key position information corresponding to the touch instruction is detected to be a second key position, encrypting the stored key position value combination to generate the PINBLock, and outputting the PINBLock.

In this embodiment, the encryption algorithm of pinlock belongs to the prior art by encrypting the obtained key position combination (for example, after the user sequentially presses 1, 2, and 3 keys, the user presses the second key to complete PIN input, at this time, PIN is 123, but there is a security problem in directly outputting "123"), and the encryption algorithm of pinlock is based on the stored key position combination and other information (including time, state details, etc.) combination, and is not specifically described in the present invention.

Further, after the instruction input by the PIN is detected and the signal output end of the touch screen is switched to be connected with the second chip, the PIN encryption algorithm is sent to the second chip through the first chip, and when the key position information corresponding to the touch instruction is detected to be a second key position, the stored key position value combination is encrypted through the PIN encryption algorithm to generate PINCLOCK, and the PINCLOCK is output.

Specifically, in an embodiment of the present invention, the "when the end of the PIN entry is detected" specifically includes:

and when the key position information corresponding to the touch instruction is detected to be the second key position, the PIN input is considered to be finished.

Specifically, in an embodiment of the present invention, after S100, a preset time threshold parameter is sent to the second chip through the first chip; the step of "when the end of the PIN input is detected" specifically includes:

and when the PIN input state of the terminal is detected to exceed the preset time threshold, the PIN input is considered to be finished.

In this embodiment, the preset time threshold is set to avoid inputting the PIN overtime, so that on one hand, idle running is avoided to generate power consumption, and on the other hand, long-time stagnation in the PIN input state is avoided to cause reduction of the input environment safety.

The invention also provides a computer storage medium on which a computer program is stored, which when executed by a processor implements the above-mentioned mobile terminal PIN input method.

Referring to fig. 2, the present invention further provides a terminal device 100, configured to implement an input method for inputting a PIN of the terminal device 100, where the terminal device 100 includes one or more processors;

a storage device for storing one or more programs which, when executed by the one or more processors, cause the one or more processors to implement the above-described mobile terminal PIN entry method.

Specifically, the terminal device 100 includes a touch screen 10, a first chip 20 and a second chip 30, a control instruction input end of the touch screen 30 is connected to the first chip 10, and a signal output end of the touch screen 0 is preset to be connected to the first chip 10.

The technical scheme provided by the embodiment of the disclosure 3 can have the following beneficial effects: according to the invention, the first chip and the second chip are arranged, the signal output end of the touch screen is connected with the first chip in an initial state, the level change signal generated by pressing the touch screen can be only acquired by the first chip, and when the PIN input mode is entered, the signal output end of the touch screen is switched to acquire the signal through the second chip, so that other programs, functions or application monitoring of connection and control of the first chip are avoided, and the PIN safety is ensured.

Throughout the description and claims of this application, the words "comprise/comprises" and the words "have/includes" and variations of these are used to specify the presence of stated features, values, steps or components but do not preclude the presence or addition of one or more other features, values, steps, components or groups thereof.

Some features of the invention, which are, for clarity, described in the context of separate embodiments, may also be provided in combination in a single embodiment. Conversely, certain features of the invention, which are, for brevity, described in the context of a single embodiment, may also be provided separately or in any suitable combination in different embodiments.

The above has described in detail various embodiments of the PIN input method of a mobile terminal of the present invention. Finally, it should be noted that the above embodiments are only used for illustrating the technical solutions of the present invention and not for limiting the same. Although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those skilled in the art that various changes in form and details may be made therein without departing from the spirit and scope of the invention as defined by the appended claims.

11页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:基于控制流隐藏的轻量级密码芯片总线防护系统及方法

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!

技术分类