CN113139174B - Identity verification method and device - Google Patents
Identity verification method and device Download PDFInfo
- Publication number
- CN113139174B CN113139174B CN202110363663.XA CN202110363663A CN113139174B CN 113139174 B CN113139174 B CN 113139174B CN 202110363663 A CN202110363663 A CN 202110363663A CN 113139174 B CN113139174 B CN 113139174B
- Authority
- CN
- China
- Prior art keywords
- password
- electronic device
- screen
- identity verification
- input
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F21/00—Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
- G06F21/30—Authentication, i.e. establishing the identity or authorisation of security principals
- G06F21/45—Structures or tools for the administration of authentication
- G06F21/46—Structures or tools for the administration of authentication by designing passwords or checking the strength of passwords
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F21/00—Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
- G06F21/30—Authentication, i.e. establishing the identity or authorisation of security principals
- G06F21/31—User authentication
Landscapes
- Engineering & Computer Science (AREA)
- Computer Security & Cryptography (AREA)
- Theoretical Computer Science (AREA)
- Computer Hardware Design (AREA)
- Software Systems (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Financial Or Insurance-Related Operations Such As Payment And Settlement (AREA)
- Storage Device Security (AREA)
- User Interface Of Digital Computer (AREA)
Abstract
Description
技术领域technical field
本申请属于通信领域,具体涉及一种身份验证方法及装置。The application belongs to the communication field, and in particular relates to an identity verification method and device.
背景技术Background technique
电子设备中的银行、金融、购物等应用为了保护用户的资金安全,一般场景下,均需要进行身份验证后,才能进行刷卡消费。Banking, finance, shopping and other applications in electronic devices, in order to protect the safety of users' funds, generally require identity verification before they can swipe their cards for consumption.
现有技术中,在指纹识别、人脸识别等身份验证方式存在失效或不方便使用的情况下,需要用户在主屏幕输入密码。那么,用户在主屏幕输入电子设备的密码后,才能进行支付等操作,容易造成密码泄露,影响电子设备安全使用。In the prior art, when authentication methods such as fingerprint recognition and face recognition are invalid or inconvenient to use, the user is required to enter a password on the main screen. Then, the user can only perform payment and other operations after entering the password of the electronic device on the main screen, which may easily cause the password to be leaked and affect the safe use of the electronic device.
发明内容Contents of the invention
本申请实施例提供一种身份验证方法及装置,能够实现保护用户的密码在输入时不会泄露,且可以实现在其他生物识别验证方式不可用的状态下,为用户提供更安全的输入密码及身份验证方式。The embodiment of the present application provides an identity verification method and device, which can protect the user's password from being leaked during input, and can provide users with a more secure input password and password when other biometric verification methods are unavailable. Authentication method.
第一方面,本申请实施例提供了一种身份验证方法,该方法包括:In the first aspect, the embodiment of the present application provides an identity verification method, which includes:
在需要进行身份验证的情况下,在电子设备的第一屏幕显示第一密码;When identity verification is required, displaying the first password on the first screen of the electronic device;
在电子设备的第二屏幕接收用户的第一输入,所述第一输入的内容为第二密码;receiving a first input from a user on a second screen of the electronic device, where the content of the first input is a second password;
响应于所述第一输入,在确定所述第二密码与所述第一密码相匹配的情况下,确定通过身份验证。In response to the first input, if it is determined that the second password matches the first password, it is determined that the identity verification is passed.
第二方面,本申请实施例提供了一种身份验证装置,该装置包括:In the second aspect, the embodiment of the present application provides an identity verification device, which includes:
第一显示模块,用于在需要进行身份验证的情况下,在电子设备的第一屏幕显示第一密码;The first display module is used to display the first password on the first screen of the electronic device when identity verification is required;
第一接收模块,用于在电子设备的第二屏幕接收用户的第一输入,所述第一输入的内容为第二密码;The first receiving module is configured to receive a user's first input on the second screen of the electronic device, and the content of the first input is a second password;
身份验证模块,用于响应于所述第一输入,在确定所述第二密码与所述第一密码相匹配的情况下,确定通过身份验证。The identity verification module is configured to, in response to the first input, determine that the identity verification is passed when it is determined that the second password matches the first password.
第三方面,本申请实施例提供了一种电子设备,该电子设备包括处理器、存储器及存储在所述存储器上并可在所述处理器上运行的程序或指令,所述程序或指令被所述处理器执行时实现如第一方面所述的方法的步骤。In a third aspect, an embodiment of the present application provides an electronic device, the electronic device includes a processor, a memory, and a program or instruction stored in the memory and operable on the processor, and the program or instruction is The processor implements the steps of the method described in the first aspect when executed.
第四方面,本申请实施例提供了一种可读存储介质,所述可读存储介质上存储程序或指令,所述程序或指令被处理器执行时实现如第一方面所述的方法的步骤。In a fourth aspect, an embodiment of the present application provides a readable storage medium, on which a program or an instruction is stored, and when the program or instruction is executed by a processor, the steps of the method described in the first aspect are implemented .
第五方面,本申请实施例提供了一种芯片,所述芯片包括处理器和通信接口,所述通信接口和所述处理器耦合,所述处理器用于运行程序或指令,实现如第一方面所述的方法。In the fifth aspect, the embodiment of the present application provides a chip, the chip includes a processor and a communication interface, the communication interface is coupled to the processor, and the processor is used to run programs or instructions, so as to implement the first aspect the method described.
在本申请实施例中,通过在确定需要验证身份的情况下,在电子设备的第一屏幕显示第一密码,并接收用户在第二屏幕的第一输入,并将第一输入对应的第二密码与第一密码进行匹配,通过两屏幕密码相匹配的形式,可以避免用户在主屏幕输入重要的电子设备的密码,保护用户的密码在输入时不会泄露,且可以实现在其他生物识别验证方式不可用的状态下,为用户提供更安全的密码输入及身份验证方式。In the embodiment of the present application, when it is determined that identity verification is required, the first password is displayed on the first screen of the electronic device, and the first input of the user on the second screen is received, and the first input corresponds to the second password. The password is matched with the first password. By matching the passwords on the two screens, it is possible to prevent the user from entering the password of important electronic devices on the main screen, to protect the user's password from being leaked during input, and to realize authentication in other biometrics. When the method is unavailable, provide users with a more secure password input and identity verification method.
附图说明Description of drawings
图1是本申请实施例提供的身份验证方法的流程示意图;FIG. 1 is a schematic flow diagram of an identity verification method provided by an embodiment of the present application;
图2是本申请实施例提供的随机密码的示意图;Fig. 2 is a schematic diagram of a random password provided by the embodiment of the present application;
图3是本申请实施例提供的电子设备刷卡状态的示意图;Fig. 3 is a schematic diagram of the state of swiping a card of an electronic device provided by an embodiment of the present application;
图4是本申请实施例提供的第一输入的示意图;Fig. 4 is a schematic diagram of the first input provided by the embodiment of the present application;
图5是本申请实施例提供的身份验证装置的结构示意图;Fig. 5 is a schematic structural diagram of an identity verification device provided by an embodiment of the present application;
图6为本申请实施例提供的电子设备的硬件结构示意图之一;FIG. 6 is one of the schematic diagrams of the hardware structure of the electronic device provided by the embodiment of the present application;
图7为本申请实施例提供的电子设备的硬件结构示意图之二。FIG. 7 is the second schematic diagram of the hardware structure of the electronic device provided by the embodiment of the present application.
具体实施方式Detailed ways
下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚地描述,显然,所描述的实施例是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员所获得的所有其他实施例,都属于本申请保护的范围。The following will clearly describe the technical solutions in the embodiments of the present application with reference to the drawings in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, but not all of them. All other embodiments obtained by persons of ordinary skill in the art based on the embodiments in this application belong to the protection scope of this application.
本申请的说明书和权利要求书中的术语“第一”、“第二”等是用于区别类似的对象,而不用于描述特定的顺序或先后次序。应该理解这样使用的数据在适当情况下可以互换,以便本申请的实施例能够以除了在这里图示或描述的那些以外的顺序实施。此外,说明书以及权利要求中“和/或”表示所连接对象的至少其中之一,字符“/”,一般表示前后关联对象是一种“或”的关系。The terms "first", "second" and the like in the specification and claims of the present application are used to distinguish similar objects, and are not used to describe a specific sequence or sequence. It is to be understood that the data so used can be interchanged under appropriate circumstances such that the embodiments of the application can be practiced in sequences other than those illustrated or described herein. In addition, "and/or" in the specification and claims means at least one of the connected objects, and the character "/" generally means that the related objects are an "or" relationship.
下面结合附图,通过一些实施例及其应用场景对本申请实施例提供的身份验证方法及装置进行详细地说明。The identity verification method and device provided by the embodiments of the present application will be described in detail below through some embodiments and application scenarios with reference to the accompanying drawings.
图1是本申请实施例提供的身份验证方法的流程示意图,如图1所示,该方法包括如下步骤:Figure 1 is a schematic flow diagram of the identity verification method provided by the embodiment of the present application. As shown in Figure 1, the method includes the following steps:
步骤100,在需要进行身份验证的情况下,在电子设备的第一屏幕显示第一密码;Step 100, when identity verification is required, displaying the first password on the first screen of the electronic device;
步骤110,在电子设备的第二屏幕接收用户的第一输入,所述第一输入的内容为第二密码;Step 110, receiving the user's first input on the second screen of the electronic device, the content of the first input being the second password;
步骤120,响应于所述第一输入,在确定所述第二密码与所述第一密码相匹配的情况下,确定通过身份验证。Step 120, in response to the first input, if it is determined that the second password matches the first password, it is determined that the identity verification is passed.
可选地,可以设定电子设备正对用户的那一面屏幕为第一屏幕,背对用户及周围人群的那一面屏幕为第二屏幕;Optionally, the screen on the side of the electronic device facing the user can be set as the first screen, and the screen on the side facing away from the user and the surrounding crowd can be set as the second screen;
可选地,第一屏幕固定为显示第一密码,第二屏固定为接收第二密码;Optionally, the first screen is fixed to display the first password, and the second screen is fixed to receive the second password;
可选地,可以在确定需要验证身份的情况下,在电子设备的第一屏幕显示第一密码(数字密码或者其他字母密码或二者的组合),第一密码可以是随机密码或者预存储的密码;Optionally, when it is determined that identity verification is required, a first password (digital password or other alphabetic password or a combination of the two) can be displayed on the first screen of the electronic device, and the first password can be a random password or a pre-stored password. password;
以第一密码是随机密码为例,图2是本申请实施例提供的随机密码的示意图,如图2所示,在电子设备的第一屏幕显示随机确定的第一密码;Taking the first password as a random password as an example, FIG. 2 is a schematic diagram of a random password provided in the embodiment of the present application. As shown in FIG. 2 , the randomly determined first password is displayed on the first screen of the electronic device;
可选地,可以在显示第一密码后的一段时间内,监听用户在第二屏幕的第一输入,并接收用户在第二屏幕输入的第二密码。Optionally, within a period of time after the first password is displayed, the user's first input on the second screen may be monitored, and the second password input by the user on the second screen may be received.
可选地,第一密码和第二密码在设定时,是配套设置的,必须一一对应;且用户需要记住每一个第一密码对应的第二密码,以此保证接收用户的第一输入后可以将第二密码与第一密码匹配,确定身份验证通过;可选地,若确定第二密码和第一密码不匹配,则可以确定身份验证不通过,则可以再一次进行验证;Optionally, when the first password and the second password are set, they are matched and must correspond one-to-one; and the user needs to remember the second password corresponding to each first password, so as to ensure the receipt of the user's first After the input, the second password can be matched with the first password to determine that the identity verification has passed; optionally, if it is determined that the second password does not match the first password, it can be determined that the identity verification has not passed, and then the verification can be performed again;
可选地,可以预先设置最大的身份验证次数,比如三次,在连续三次身份验证失败后,可以通过锁屏或者锁上系统来取消用户身份验证以及进一步对电子设备进行操作的资格。Optionally, a maximum number of authentications can be preset, such as three times. After three consecutive authentication failures, the user can be disqualified from authentication and further operation of the electronic device by locking the screen or locking the system.
在本申请实施例中,通过在确定需要验证身份的情况下,在电子设备的第一屏幕显示第一密码,并接收用户在第二屏幕的第一输入,并将第一输入对应的第二密码与第一密码进行匹配,通过两屏幕密码相匹配的形式,可以避免用户在主屏幕输入重要的电子设备的密码,保护用户的密码在输入时不会泄露,且可以实现在其他生物识别验证方式不可用的状态下,为用户提供更安全的输入密码及身份验证方式。In the embodiment of the present application, when it is determined that identity verification is required, the first password is displayed on the first screen of the electronic device, and the first input of the user on the second screen is received, and the first input corresponds to the second password. The password is matched with the first password. By matching the passwords on the two screens, it is possible to prevent the user from entering the password of important electronic devices on the main screen, to protect the user's password from being leaked during input, and to realize authentication in other biometrics. When the method is unavailable, provide users with a more secure method of entering passwords and authentication.
所述需要进行身份验证的情况,包括:Situations where identity verification is required include:
确定电子设备处于待刷卡状态,且接收到刷卡器发送的身份验证触发信息。It is determined that the electronic device is in the state of waiting to swipe the card, and has received the identity verification trigger information sent by the card swipe device.
可选地,电子设备需要进行身份验证时,可以是在通过电子设备进行支付时,比如电子设备处于待刷卡状态时。Optionally, when the electronic device needs to perform identity verification, it may be when the electronic device is used for payment, such as when the electronic device is in a state of waiting to swipe a card.
可选地,电子设备进行刷卡时,需要与刷卡机进行无线通信,因此可以在接受到刷卡器的身份验证触发信息后,确定需要验证身份。Optionally, when the electronic device swipes a card, it needs to communicate wirelessly with the card reader, so it can be determined that identity verification is required after receiving the identity verification trigger information from the card reader.
可选地,可以在确定电子设备处于待刷卡状态,且接收到刷卡器的身份验证触发信息的情况下,确定需要验证身份。Optionally, it may be determined that identity verification is required when it is determined that the electronic device is in a state of waiting for card swiping and the trigger information of identity verification from the card reader is received.
可选地,所述确定电子设备处于待刷卡状态,包括:Optionally, the determining that the electronic device is in a state to be swiped includes:
基于电子设备中的重力传感器,确定电子设备在第一时间段内在垂直方向下降第一距离,且基于电子设备中的红外线传感器,确定电子设备的第二屏幕被遮挡。Based on the gravity sensor in the electronic device, it is determined that the electronic device has dropped a first distance in the vertical direction within the first time period, and based on the infrared sensor in the electronic device, it is determined that the second screen of the electronic device is blocked.
可选地,在电子设备处于刷卡状态时,一般会垂直下降一段距离并贴近刷卡机,因此可以在第一屏幕及第二屏幕均安装重力传感器及红外传感器。Optionally, when the electronic device is in the state of swiping the card, it will generally fall vertically for a certain distance and get close to the card swiping machine, so gravity sensors and infrared sensors can be installed on both the first screen and the second screen.
可选地,可以通过重力传感器的工作,确定电子设备第一时间段内在垂直方向下降第一距离比如识别到电子设备垂直下降一定幅度,同时基于红外传感器识别到有一面屏幕被遮挡,则可以确定出电子设备处于刷卡状态,同时还可以确定被遮挡的屏幕为第二屏幕。即第二屏幕为贴近银联Pos机的一面。Optionally, through the work of the gravity sensor, it can be determined that the electronic device has dropped the first distance in the vertical direction within the first period of time. For example, if the electronic device is recognized as falling vertically by a certain range, and at the same time, it is recognized that one side of the screen is blocked based on the infrared sensor, then it can be determined The electronic device is in the state of swiping the card, and at the same time, it can also be determined that the blocked screen is the second screen. That is, the second screen is the side close to the UnionPay POS machine.
可选地,图3是本申请实施例提供的电子设备刷卡状态的示意图,如图3所示,以该电子设备是手机为例,通过重力传感器和红外线传感器共同检测出手机第一时间段内在垂直方向下降第一距离,且确定手机的第二屏幕被遮挡,此时,可以直接确认第一屏幕和第二屏幕。Optionally, FIG. 3 is a schematic diagram of the card swiping state of the electronic device provided in the embodiment of the present application. As shown in FIG. Descending the first distance in the vertical direction, and confirming that the second screen of the mobile phone is blocked, at this time, the first screen and the second screen can be directly confirmed.
可选地,第一时间段的时长可以是预先设置的,比如1秒;本申请实施例对此不做限制。Optionally, the duration of the first time period may be preset, such as 1 second; this is not limited in this embodiment of the present application.
可选地,第一距离的长度可以是预先设置得,比如30厘米;本申请实施例对此不做限制。Optionally, the length of the first distance may be preset, such as 30 centimeters; this is not limited in this embodiment of the present application.
本申请实施例通过移动设备常用重力及红外传感器,判断当前使用屏幕的第一屏幕和第二屏幕,在接收到银联pos机信号后,触发双屏双密码模式。可以更好的保护用户的密码不会泄露,同时保护了用户的资金安全。在其他生物识别不可用状态下,可以更好的为用户提供体验更好以及更安全的输入密码方式。In the embodiment of the present application, the gravity and infrared sensors commonly used in mobile devices are used to judge the first screen and the second screen of the currently used screen, and after receiving the UnionPay POS machine signal, the dual-screen dual-password mode is triggered. It can better protect the user's password from being leaked, and at the same time protect the user's financial security. When other biometrics are not available, it can better provide users with a better and safer password input method.
可选地,所述在电子设备的第一屏幕显示第一密码,包括:Optionally, the displaying the first password on the first screen of the electronic device includes:
在第二时间段内,在电子设备的第一屏幕显示第一密码,所述第一密码包括至少一个字符,所述字符包括数字和/或字母。During the second time period, a first password is displayed on the first screen of the electronic device, the first password includes at least one character, and the character includes numbers and/or letters.
可选地,确定电子设备处于刷卡状态且确定第一屏幕和第二屏幕后,可以在第二时间段内,在电子设备的第一屏幕显示第一密码,可选地,第二时间段的时长可以是预先设置的,比如预先设置为2秒,本申请实施例对此不做限制;Optionally, after it is determined that the electronic device is in the card swiping state and the first screen and the second screen are determined, the first password may be displayed on the first screen of the electronic device within a second time period, and optionally, the The duration can be preset, for example, it is preset to 2 seconds, which is not limited in this embodiment of the present application;
可选地,在电子设备的第一屏幕显示第一密码达到第二时间段对应的时长后,第一密码则会立即消失,防止长时间显示,他人会轻易看到第一密码。Optionally, after the first password is displayed on the first screen of the electronic device for a period of time corresponding to the second time period, the first password will disappear immediately, preventing it from being displayed for a long time, and others will easily see the first password.
可选地,第一密码可以包括一个数字,比如3;Optionally, the first password may include a number, such as 3;
可选地,第一密码可以包括多个数字,比如35;Optionally, the first password may include multiple numbers, such as 35;
可选地,第一密码可以包括一个字母,比如a;Optionally, the first password may include a letter, such as a;
可选地,第一密码可以包括多个字母,比如ac;Optionally, the first password may include multiple letters, such as ac;
可选地,第一密码可以包括至少一个数字和字母的组合,比如a2c。Optionally, the first password may include at least one combination of numbers and letters, such as a2c.
可选地,在显示第一密码时可以仅显示预先设置即预先存储有对应第二密码的数字或字母或组合,以免无法完成匹配。Optionally, when displaying the first password, only the preset number or letter or combination corresponding to the second password may be displayed in advance, so as not to fail to complete the matching.
可选地,所述在电子设备的第一屏幕显示第一密码,包括:Optionally, the displaying the first password on the first screen of the electronic device includes:
随机确定第一密码,在电子设备的第一屏幕显示随机确定的所述第一密码;或randomly determine the first password, and display the randomly determined first password on the first screen of the electronic device; or
基于电子设备当前所在的场景,在电子设备的第一屏幕显示与所述场景对应的所述第一密码。Based on the current scene of the electronic device, the first password corresponding to the scene is displayed on the first screen of the electronic device.
可选地,可以随机确定第一密码并显示。Optionally, the first password may be randomly determined and displayed.
可选地,可以通过地理位置确定地理位置对应的第一密码;比如预先存储商场对应的一个第一密码,用户的家周围1公里内的便利店对应的一个第一密码,若电子设备检测到当前地理位置是在商场进行支付,则在第一屏幕显示商场对应的第一密码;若电子设备检测到当前地理位置是用户的家周围1公里内的便利店进行支付,则在第一屏幕显示家附近的便利店对应的第一密码。Optionally, the first password corresponding to the geographic location can be determined through the geographic location; for example, a first password corresponding to a shopping mall is pre-stored, and a first password corresponding to a convenience store within 1 km of the user's home is stored. If the electronic device detects If the current geographic location is payment in a shopping mall, the first password corresponding to the shopping mall will be displayed on the first screen; if the electronic device detects that the current geographic location is a convenience store within 1 km of the user's home for payment, it will be displayed on the first screen The first password corresponding to the convenience store near home.
可选地,在显示第一密码时可以仅显示预先设置即预先存储有对应第二密码的数字或字母或组合,以免无法完成匹配。Optionally, when displaying the first password, only the preset number or letter or combination corresponding to the second password may be displayed in advance, so as not to fail to complete the matching.
可选地,所述随机确定第一密码,包括:Optionally, the randomly determining the first password includes:
基于电子设备中预先存储的至少两个密码,在其中随机确定所述第一密码。Based on at least two passwords pre-stored in the electronic device, the first password is randomly determined therein.
可选地,可以直接随机确定第一密码。Optionally, the first password may be directly determined randomly.
可选地,可以预先存储至少两个密码,然后在预先存储的至少两个密码中随机确定一个密码作为第一密码。Optionally, at least two passwords may be pre-stored, and then one of the at least two pre-stored passwords is randomly determined as the first password.
可选地,所述第二密码包括至少一个图案;Optionally, the second password includes at least one pattern;
其中,所述确定所述第二密码与所述第一密码相匹配,包括:Wherein, the determining that the second password matches the first password includes:
所述至少一个图案与所述第一密码匹配;或said at least one pattern matches said first code; or
所述至少一个图案的数量与所述第一密码包括的至少一个字符的数量相同,且所述至少一个图案依次与所述第一密码包括的至少一个字符相匹配。The number of the at least one pattern is the same as the number of at least one character included in the first password, and the at least one pattern matches the at least one character included in the first password in turn.
可选地,第二密码可以包括至少一个图案,即第一输入可以是用户在第二屏幕的手绘图案的操作;Optionally, the second password may include at least one pattern, that is, the first input may be the operation of the user drawing a pattern on the second screen;
可选地,可以预先设置至少一个第一密码,以及每一个第一密码对应的不同的图案;Optionally, at least one first password and a different pattern corresponding to each first password can be preset;
可选地,可以预先设置至少一个第一密码,以及第一密码中每一个字符对应的不同的图案;相应地,第一密码包括的字符数量与第二密码包括的图案数量相同。Optionally, at least one first password and different patterns corresponding to each character in the first password can be preset; correspondingly, the number of characters included in the first password is the same as the number of patterns included in the second password.
可选地,第一密码可以包括一个数字,比如3,相应地,对应的第二密码可以是一个手绘符号,比如手写的“3”或一个三角形;相应地,可以预先设置数字0-9分别对应的十个不同的第二密码。Optionally, the first password may include a number, such as 3, and correspondingly, the corresponding second password may be a hand-drawn symbol, such as a handwritten "3" or a triangle; correspondingly, numbers 0-9 may be preset respectively Corresponding ten different second passwords.
可选地,第一密码可以包括多个数字,比如35,相应地,对应的第二密码可以是一个手绘符号,比如一个矩形;相应地,可以预先设置有限个数字组合分别对应的多个不同的第二密码,每一个第二密码包括一个符号。Optionally, the first password may include multiple numbers, such as 35, and correspondingly, the corresponding second password may be a hand-drawn symbol, such as a rectangle; correspondingly, a plurality of different numbers corresponding to a limited number of combinations may be preset. The second passwords, each second password includes a symbol.
可选地,第一密码可以包括多个数字,比如378,相应地,对应的第二密码可以是对应数量的手绘符号,比如手写的“378”;相应地,可以预先设置数字0-9分别对应的十个不同的符号。Optionally, the first password may include a plurality of numbers, such as 378. Correspondingly, the corresponding second password may be a corresponding number of hand-drawn symbols, such as handwritten "378"; correspondingly, numbers 0-9 may be preset respectively Corresponding ten different symbols.
可选地,第一密码可以包括一个字母,比如a,相应地,对应的第二密码可以是一个手绘符号,比如手写的“a”或一个圆形;相应地,可以预先设置至少两个字母分别一一对应的至少两个不同的第二密码。Optionally, the first password may include a letter, such as a, and correspondingly, the corresponding second password may be a hand-drawn symbol, such as a handwritten "a" or a circle; correspondingly, at least two letters may be preset at least two different second passwords in one-to-one correspondence.
可选地,第一密码可以包括多个字母,比如ac,相应地,对应的第二密码可以是一个手绘符号,比如一条波浪线;相应地,可以预先设置有限个字母组合分别对应的多个不同的第二密码,每一个第二密码包括一个符号。Optionally, the first password may include multiple letters, such as ac, and correspondingly, the corresponding second password may be a hand-drawn symbol, such as a wavy line; Different second passwords, each second password includes a symbol.
可选地,第一密码可以包括多个字母,比如acf,相应地,对应的第二密码可以是对应数量的手绘符号,比如手写的“acf”;相应地,可以预先设置至少两个字母分别一一对应的至少两个不同的符号。Optionally, the first password may include a plurality of letters, such as acf, and correspondingly, the corresponding second password may be a corresponding number of hand-drawn symbols, such as handwritten "acf"; correspondingly, at least two letters may be preset respectively A one-to-one correspondence of at least two different symbols.
可选地,第一密码可以包括至少一个数字和字母的组合,比如a2c,相应地,对应的第二密码可以是一个手绘符号,比如一条折现;相应地,可以预先设置有限个数字和字母的组合分别对应的多个不同的第二密码,每一个第二密码包括一个符号。Optionally, the first password can include at least a combination of numbers and letters, such as a2c, and correspondingly, the corresponding second password can be a hand-drawn symbol, such as a discount; correspondingly, a limited number of numbers and letters can be preset A plurality of different second passwords respectively corresponding to the combinations of , and each second password includes a symbol.
可选地,第一密码可以包括至少一个数字和字母的组合,比如acf789,相应地,对应的第二密码可以是对应数量的手绘符号,比如手写的“acf789”;相应地,可以预先设置至少一个数字和字母分别一一对应的至少两个不同的符号。Optionally, the first password may include at least one combination of numbers and letters, such as acf789. Correspondingly, the corresponding second password may be a corresponding number of hand-drawn symbols, such as handwritten "acf789"; correspondingly, at least A number and a letter correspond to at least two different symbols respectively.
可选地,第一密码与第二密码可以为用户可预先设置好的对应解锁密码。第一密码与第二密码完全对应后,则可以通过密码验证。同时因为第二密码在刷卡器比如银联pos机时是在第二屏幕中,第二密码的图案不会轻易被其他人监控到,保证了安全。Optionally, the first password and the second password may be corresponding unlocking passwords that can be preset by the user. After the first password is completely corresponding to the second password, the password verification can be passed. At the same time, because the second password is on the second screen when swiping the card reader such as the UnionPay POS machine, the pattern of the second password will not be easily monitored by others, ensuring safety.
可选地,第一密码显示完成后,第二屏幕可以在一段时间内比如3秒监听图案绘制,超过固定时间则中断双屏密码模式,需要重新监听银联Pos机的信号,才能重新打开双屏密码模式。Optionally, after the first password display is completed, the second screen can monitor the pattern drawing for a period of time, such as 3 seconds, and the dual-screen password mode will be interrupted if the fixed time exceeds, and the dual-screen needs to be re-monitored for the signal of the UnionPay POS machine. password mode.
可选地,在第一密码与第二密码完全对应后,即可通过身份验证。此时,则可以开始通过电子设备银联卡与银联Pos机的进行交易。Optionally, after the first password completely corresponds to the second password, the identity verification can be passed. At this time, you can start to conduct transactions with the UnionPay POS machine through the electronic device UnionPay card.
可选地,所述在电子设备的第二屏幕接收用户的第一输入,包括:Optionally, the receiving the user's first input on the second screen of the electronic device includes:
基于所述电子设备的倾斜角度,在电子设备的第二屏幕中所述倾斜角度对应的区域,接收所述用户的第一输入。Based on the tilt angle of the electronic device, a first input from the user is received in an area corresponding to the tilt angle on the second screen of the electronic device.
可选地,可以跟踪第二屏幕的水平倾斜角度,改变第二密码在第二屏的输入区域。这样可以更方便的让用户输入密码,因倾斜角度大的一边,手指也更加容易触发到。同时通过这样的特性,保证第二屏幕是背对其他人视线的状态,也可以更好的保护第二密码的安全性,防止泄露第二密码的输入方式。Optionally, the horizontal tilt angle of the second screen can be tracked to change the input area of the second password on the second screen. In this way, it is more convenient for the user to enter the password, because the side with a large tilt angle is easier to trigger with the finger. At the same time, through such a feature, it is ensured that the second screen is facing away from other people's sight, and the security of the second password can be better protected to prevent leakage of the input method of the second password.
可选地,可以基于第二屏幕的倾斜角度,实时改变输入屏幕的区域;Optionally, the area of the input screen can be changed in real time based on the tilt angle of the second screen;
比如:若检测到用户水平持电子设备,然后电子设备向下前倾,同时向右偏移。那么对于第二屏上部来说,第二密码的输入区域则在右上部分。图4是本申请实施例提供的第一输入的示意图,如图4所示,在第二屏幕上来说,第二密码的输入区域就是小框范围内。若向左偏移则相反。For example: if it is detected that the user is holding the electronic device horizontally, then the electronic device is tilted forward and shifted to the right at the same time. Then, for the upper part of the second screen, the input area of the second password is in the upper right part. FIG. 4 is a schematic diagram of the first input provided by the embodiment of the present application. As shown in FIG. 4 , on the second screen, the input area of the second password is within the range of the small box. The opposite is true if shifted to the left.
可选地,第二密码的具体输入位置可以不做任何的限制,但是可以固定在一定区域内才可触发第二密码的输入。Optionally, there is no restriction on the specific input position of the second password, but the input of the second password can only be triggered when it is fixed in a certain area.
在本申请实施例中,通过在确定需要验证身份的情况下,在电子设备的第一屏幕显示第一密码,并接收用户在第二屏幕的第一输入,并将第一输入对应的第二密码与第一密码进行匹配,通过两屏幕密码相匹配的形式,可以避免用户在主屏幕输入重要的电子设备的密码,保护用户的密码在输入时不会泄露,且可以实现在其他生物识别验证方式不可用的状态下,为用户提供更安全的输入密码及身份验证方式。In the embodiment of the present application, when it is determined that identity verification is required, the first password is displayed on the first screen of the electronic device, and the first input of the user on the second screen is received, and the first input corresponds to the second password. The password is matched with the first password. By matching the passwords on the two screens, it is possible to prevent the user from entering the password of important electronic devices on the main screen, to protect the user's password from being leaked during input, and to realize authentication in other biometrics. When the method is unavailable, provide users with a more secure method of entering passwords and authentication.
需要说明的是,本申请实施例提供的身份验证方法,执行主体可以为身份验证装置,或者该身份验证装置中的用于执行加载身份验证方法的控制模块。本申请实施例中以身份验证装置执行身份验证方法为例,说明本申请实施例提供的身份验证装置。It should be noted that, the identity verification method provided in the embodiment of the present application may be executed by the identity verification device, or a control module in the identity verification device for executing the loading of the identity verification method. In the embodiment of the present application, the identity verification device provided in the embodiment of the present application is described by taking the identity verification device executing the identity verification method as an example.
图5是本申请实施例提供的身份验证装置的结构示意图,如图5所示,该装置包括:第一显示模块510,第一接收模块520,和身份验证模块530;其中:Fig. 5 is a schematic structural diagram of an identity verification device provided by an embodiment of the present application. As shown in Fig. 5, the device includes: a first display module 510, a first receiving module 520, and an identity verification module 530; wherein:
第一显示模块510用于在需要进行身份验证的情况下,在电子设备的第一屏幕显示第一密码;The first display module 510 is configured to display the first password on the first screen of the electronic device when identity verification is required;
第一接收模块520用于在所述电子设备的第二屏幕接收用户的第一输入,所述第一输入的内容为第二密码;The first receiving module 520 is configured to receive a user's first input on the second screen of the electronic device, and the content of the first input is a second password;
身份验证模块530用于响应于所述第一输入,在确定所述第二密码与所述第一密码相匹配的情况下,确定通过身份验证。The identity verification module 530 is configured to, in response to the first input, determine that the identity verification is passed when it is determined that the second password matches the first password.
可选地,身份验证装置可以在确定需要验证身份的情况下,通过第一显示模块510在需要进行身份验证的情况下,在所述电子设备的第一屏幕显示第一密码;然后可以通过第一接收模块520在所述电子设备的第二屏幕接收用户的第一输入,所述第一输入的内容为第二密码;随后响应于所述第一输入,通过身份验证模块530在确定所述第二密码与所述第一密码相匹配的情况下,确定通过身份验证。Optionally, the identity verification device may display the first password on the first screen of the electronic device through the first display module 510 when it is determined that identity verification is required; A receiving module 520 receives a user's first input on the second screen of the electronic device, and the content of the first input is a second password; then in response to the first input, the identity verification module 530 determines the If the second password matches the first password, it is determined that the identity verification is passed.
在本申请实施例中,通过在确定需要验证身份的情况下,在电子设备的第一屏幕显示第一密码,并接收用户在第二屏幕的第一输入,并将第一输入对应的第二密码与第一密码进行匹配,通过两屏幕密码相匹配的形式,可以避免用户在主屏幕输入重要的电子设备的密码,保护用户的密码在输入时不会泄露,且可以实现在其他生物识别验证方式不可用的状态下,为用户提供更安全的输入密码及身份验证方式。In the embodiment of the present application, when it is determined that identity verification is required, the first password is displayed on the first screen of the electronic device, and the first input of the user on the second screen is received, and the first input corresponds to the second password. The password is matched with the first password. By matching the passwords on the two screens, it is possible to prevent the user from entering the password of important electronic devices on the main screen, to protect the user's password from being leaked during input, and to realize authentication in other biometrics. When the method is unavailable, provide users with a more secure method of entering passwords and authentication.
可选地,所述需要进行身份验证的情况,包括:Optionally, the situations where identity verification is required include:
确定所述电子设备处于待刷卡状态,且接收到刷卡器发送的身份验证触发信息。It is determined that the electronic device is in a state of waiting for card swiping, and the identity verification trigger information sent by the card reader is received.
可选地,所述第一显示模块还用于:Optionally, the first display module is also used for:
基于所述电子设备中的重力传感器,确定所述电子设备在第一时间段内在垂直方向下降第一距离,且基于所述电子设备中的红外线传感器,确定所述电子设备的第二屏幕被遮挡。Based on the gravity sensor in the electronic device, it is determined that the electronic device has dropped a first distance in the vertical direction within a first time period, and based on the infrared sensor in the electronic device, it is determined that the second screen of the electronic device is blocked .
可选地,所述第一显示模块还用于:Optionally, the first display module is also used for:
在第二时间段内,在所述电子设备的第一屏幕显示第一密码,所述第一密码包括至少一个字符,所述字符包括数字和/或字母。During the second time period, a first password is displayed on the first screen of the electronic device, the first password includes at least one character, and the character includes numbers and/or letters.
可选地,所述第一显示模块还用于,包括:Optionally, the first display module is also used to include:
随机确定第一密码,在所述电子设备的第一屏幕显示随机确定的所述第一密码;或randomly determining a first password, and displaying the randomly determined first password on a first screen of the electronic device; or
基于所述电子设备当前所在的场景,在所述电子设备的第一屏幕显示所述场景对应的所述第一密码。Based on the current scene of the electronic device, the first password corresponding to the scene is displayed on the first screen of the electronic device.
可选地,所述第二密码包括至少一个图案;Optionally, the second password includes at least one pattern;
其中,所述身份验证模块还用于:Wherein, the identity verification module is also used for:
所述至少一个图案与所述第一密码匹配;或said at least one pattern matches said first code; or
所述至少一个图案的数量与所述第一密码包括的至少一个字符的数量相同,且所述至少一个图案依次与所述第一密码包括的至少一个字符相匹配。The number of the at least one pattern is the same as the number of at least one character included in the first password, and the at least one pattern matches the at least one character included in the first password in sequence.
在本申请实施例中,通过在确定需要验证身份的情况下,在电子设备的第一屏幕显示第一密码,并接收用户在第二屏幕的第一输入,并将第一输入对应的第二密码与第一密码进行匹配,通过两屏幕密码相匹配的形式,可以避免用户在主屏幕输入重要的电子设备的密码,保护用户的密码在输入时不会泄露,且可以实现在其他生物识别验证方式不可用的状态下,为用户提供更安全的输入密码及身份验证方式。In the embodiment of the present application, when it is determined that identity verification is required, the first password is displayed on the first screen of the electronic device, and the first input of the user on the second screen is received, and the first input corresponds to the second password. The password is matched with the first password. By matching the passwords on the two screens, it is possible to prevent the user from entering the password of important electronic devices on the main screen, to protect the user's password from being leaked when entering it, and to realize authentication in other biometrics. When the method is unavailable, provide users with a more secure method of entering passwords and authentication.
本申请实施例中的身份验证装置可以是具有操作系统的装置或电子设备,也可以是终端中的部件、集成电路、或芯片。该电子设备可以是移动电子设备,也可以为非移动电子设备。示例性的,移动电子设备可以为手机、平板电脑、笔记本电脑、掌上电脑、车载电子设备、可穿戴设备、超级移动个人计算机(ultra-mobile personal computer,UMPC)、上网本或者个人数字助理(personal digital assistant,PDA)等,非移动电子设备可以为服务器、网络附属存储器(Network Attached Storage,NAS)、个人计算机(personal computer,PC)、电视机(television,TV)、柜员机或者自助机等,本申请实施例不作具体限定。The identity verification device in the embodiment of the present application may be a device or an electronic device with an operating system, or may be a component, an integrated circuit, or a chip in a terminal. The electronic device may be a mobile electronic device or a non-mobile electronic device. Exemplarily, the mobile electronic device may be a mobile phone, a tablet computer, a notebook computer, a palmtop computer, a vehicle electronic device, a wearable device, an ultra-mobile personal computer (UMPC), a netbook or a personal digital assistant (personal digital assistant, PDA), etc., non-mobile electronic equipment can be server, network attached storage (Network Attached Storage, NAS), personal computer (personal computer, PC), television (television, TV), teller machine or self-service machine, etc., this application Examples are not specifically limited.
本申请实施例提供的身份验证装置能够实现图1至图4方法实施例中身份验证装置实现的各个过程,为避免重复,这里不再赘述。The identity verification device provided in the embodiment of the present application can implement the various processes implemented by the identity verification device in the method embodiments shown in FIGS. 1 to 4 .
在本申请实施例中,通过在确定需要验证身份的情况下,在手机的第一屏幕显示第一密码,并接收用户在第二屏幕的第一输入,并将第一输入对应的第二密码与第一密码进行匹配,通过两屏幕密码相匹配的形式,可以避免用户在主屏幕输入重要的电子设备的密码,保护用户的密码在输入时不会泄露,且可以实现在其他生物识别验证方式不可用的状态下,为用户提供更安全的输入密码及身份验证方式。In this embodiment of the application, when it is determined that identity verification is required, the first password is displayed on the first screen of the mobile phone, and the first input of the user on the second screen is received, and the corresponding second password is input first. Matching with the first password, through the form of matching the two screen passwords, can prevent the user from entering the password of important electronic equipment on the main screen, protect the user's password from being leaked when entering, and can be implemented in other biometric verification methods In the unavailable state, provide users with a more secure way of entering passwords and authentication.
可选的,本申请实施例还提供一种电子设备,图6为本申请实施例提供的电子设备的硬件结构示意图之一。如图6所示,该电子设备包括处理器602,存储器601,存储在存储器601上并可在所述处理器602上运行的程序或指令,该程序或指令被处理器602执行时实现上述身份验证方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。Optionally, the embodiment of the present application further provides an electronic device, and FIG. 6 is one of the schematic diagrams of the hardware structure of the electronic device provided in the embodiment of the present application. As shown in Figure 6, the electronic device includes a processor 602, a memory 601, a program or instruction stored on the memory 601 and operable on the processor 602, and the above-mentioned identity is realized when the program or instruction is executed by the processor 602 Each process of the embodiment of the verification method can achieve the same technical effect, so to avoid repetition, details are not repeated here.
需要注意的是,本申请实施例中的电子设备包括上述所述的移动电子设备和非移动电子设备。It should be noted that the electronic devices in the embodiments of the present application include the above-mentioned mobile electronic devices and non-mobile electronic devices.
图7为本申请实施例提供的电子设备的硬件结构示意图之二。FIG. 7 is the second schematic diagram of the hardware structure of the electronic device provided by the embodiment of the present application.
该电子设备700包括但不限于:射频单元701、网络模块702、音频输出单元703、输入单元704、传感器705、显示单元706、用户输入单元707、接口单元708、存储器709、以及处理器710等中的至少部分部件。The electronic device 700 includes, but is not limited to: a radio frequency unit 701, a network module 702, an audio output unit 703, an input unit 704, a sensor 705, a display unit 706, a user input unit 707, an interface unit 708, a memory 709, and a processor 710, etc. at least some of the components.
本领域技术人员可以理解,电子设备700还可以包括给各个部件供电的电源(比如电池),电源可以通过电源管理系统与处理器710逻辑相连,从而通过电源管理系统实现管理充电、放电、以及功耗管理等功能。图7中示出的电子设备结构并不构成对电子设备的限定,电子设备可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置,在此不再赘述。Those skilled in the art can understand that the electronic device 700 can also include a power supply (such as a battery) for supplying power to various components, and the power supply can be logically connected to the processor 710 through the power management system, so that the management of charging, discharging, and function can be realized through the power management system. Consumption management and other functions. The structure of the electronic device shown in FIG. 7 does not constitute a limitation to the electronic device. The electronic device may include more or fewer components than shown in the figure, or combine certain components, or arrange different components, and details will not be repeated here. .
应理解的是,本申请实施例中,输入单元704可以包括图形处理器(GraphicsProcessing Unit,GPU)741和麦克风742,图形处理器741对在视频捕获模式或图像捕获模式中由图像捕获装置(如摄像头)获得的静态图片或视频的图像数据进行处理。显示单元706可包括显示面板761,可以采用液晶显示器、有机发光二极管等形式来配置显示面板761。用户输入单元707包括触控面板771以及其他输入设备772。触控面板771,也称为触摸屏。触控面板771可包括触摸检测装置和触摸控制器两个部分。其他输入设备772可以包括但不限于物理键盘、功能键(比如音量控制按键、开关按键等)、轨迹球、鼠标、操作杆,在此不再赘述。It should be understood that, in the embodiment of the present application, the input unit 704 may include a graphics processor (Graphics Processing Unit, GPU) 741 and a microphone 742, and the graphics processor 741 is compatible with the image capture device (such as Camera) to process the image data of still pictures or videos. The display unit 706 may include a display panel 761, and the display panel 761 may be configured in the form of a liquid crystal display, an organic light emitting diode, or the like. The user input unit 707 includes a touch panel 771 and other input devices 772 . The touch panel 771 is also called a touch screen. The touch panel 771 may include two parts, a touch detection device and a touch controller. Other input devices 772 may include, but are not limited to, physical keyboards, function keys (such as volume control keys, switch keys, etc.), trackballs, mice, and joysticks, which will not be repeated here.
本申请实施例中,射频单元701获取信息后给处理器710处理。通常,射频单元701包括但不限于天线、至少一个放大器、收发信机、耦合器、低噪声放大器、双工器等。In the embodiment of the present application, the radio frequency unit 701 acquires information and processes it to the processor 710. Generally, the radio frequency unit 701 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier, a duplexer, and the like.
存储器709可用于存储软件程序或指令以及各种数据。存储器709可主要包括存储程序或指令区和存储数据区,其中,存储程序或指令区可存储操作系统、至少一个功能所需的应用程序或指令(比如声音播放功能、图像播放功能等)等。此外,存储器709可以包括高速随机存取存储器,还可以包括非易失性存储器,其中,非易失性存储器可以是只读存储器(Read-Only Memory,ROM)、可编程只读存储器(Programmable ROM,PROM)、可擦除可编程只读存储器(Erasable PROM,EPROM)、电可擦除可编程只读存储器(Electrically EPROM,EEPROM)或闪存。例如至少一个磁盘存储器件、闪存器件、或其他非易失性固态存储器件。The memory 709 can be used to store software programs or instructions as well as various data. The memory 709 may mainly include a program or instruction storage area and a data storage area, wherein the program or instruction storage area may store an operating system, an application program or instructions required by at least one function (such as a sound playback function, an image playback function, etc.) and the like. In addition, the memory 709 may include a high-speed random access memory, and may also include a non-volatile memory, wherein the non-volatile memory may be a read-only memory (Read-Only Memory, ROM), a programmable read-only memory (Programmable ROM) , PROM), erasable programmable read-only memory (Erasable PROM, EPROM), electrically erasable programmable read-only memory (Electrically EPROM, EEPROM) or flash memory. For example at least one magnetic disk storage device, flash memory device, or other non-volatile solid-state storage device.
处理器710可包括一个或多个处理单元;可选的,处理器710可集成应用处理器和调制解调处理器,其中,应用处理器主要处理操作系统、用户界面和应用程序或指令等,调制解调处理器主要处理无线通信,如基带处理器。可以理解的是,上述调制解调处理器也可以不集成到处理器710中。The processor 710 may include one or more processing units; optionally, the processor 710 may integrate an application processor and a modem processor, wherein the application processor mainly processes the operating system, user interface and application programs or instructions, etc., Modem processors mainly handle wireless communications, such as baseband processors. It can be understood that the foregoing modem processor may not be integrated into the processor 710 .
其中,处理器710用于在需要进行身份验证的情况下,在电子设备的第一屏幕显示第一密码;Wherein, the processor 710 is configured to display the first password on the first screen of the electronic device when identity verification is required;
用户输入单元707用于在所述电子设备的第二屏幕接收用户的第一输入,所述第一输入的内容为第二密码;The user input unit 707 is configured to receive a user's first input on the second screen of the electronic device, and the content of the first input is a second password;
处理器710还用于响应于所述第一输入,在确定所述第二密码与所述第一密码相匹配的情况下,确定通过身份验证。The processor 710 is further configured to, in response to the first input, determine that the identity verification is passed if it is determined that the second password matches the first password.
在本申请实施例中,通过在确定需要验证身份的情况下,在所述电子设备的第一屏幕显示第一密码,并接收用户在第二屏幕的第一输入,并将第一输入对应的第二密码与第一密码进行匹配,通过两屏幕密码相匹配的形式,可以避免用户在主屏幕输入重要的电子设备的密码,保护用户的密码在输入时不会泄露,且可以实现在其他生物识别验证方式不可用的状态下,为用户提供更安全的输入密码及身份验证方式。In this embodiment of the application, when it is determined that identity verification is required, the first password is displayed on the first screen of the electronic device, and the first input from the user on the second screen is received, and the corresponding The second password is matched with the first password. By matching the passwords on the two screens, it is possible to prevent the user from entering the password of important electronic devices on the main screen, and to protect the user's password from being leaked when entering it. When the identification verification method is unavailable, provide users with a more secure input password and identity verification method.
可选地,所述需要进行身份验证的情况,包括:Optionally, the situations where identity verification is required include:
确定所述电子设备处于待刷卡状态,且接收到刷卡器发送的身份验证触发信息。It is determined that the electronic device is in a state of waiting for card swiping, and the identity verification trigger information sent by the card reader is received.
可选地,处理器710还用于:Optionally, the processor 710 is also used for:
基于所述电子设备中的重力传感器,确定所述电子设备在第一时间段内在垂直方向下降第一距离,且基于所述电子设备中的红外线传感器,确定所述电子设备的第二屏幕被遮挡。Based on the gravity sensor in the electronic device, it is determined that the electronic device has dropped a first distance in the vertical direction within a first time period, and based on the infrared sensor in the electronic device, it is determined that the second screen of the electronic device is blocked .
可选地,处理器710还用于:Optionally, the processor 710 is also used for:
在第二时间段内,在所述电子设备的第一屏幕显示第一密码,所述第一密码包括至少一个字符,所述字符包括数字和/或字母。During the second time period, a first password is displayed on the first screen of the electronic device, the first password includes at least one character, and the character includes numbers and/or letters.
可选地,处理器710还用于:Optionally, the processor 710 is also used for:
随机确定第一密码,在所述电子设备的第一屏幕显示随机确定的所述第一密码;或randomly determining a first password, and displaying the randomly determined first password on a first screen of the electronic device; or
基于所述电子设备当前所在的场景,在所述电子设备的第一屏幕显示与所述场景对应的所述第一密码。Based on the current scene where the electronic device is located, the first password corresponding to the scene is displayed on the first screen of the electronic device.
可选地,所述第二密码包括至少一个图案;Optionally, the second password includes at least one pattern;
处理器710还用于:Processor 710 is also used to:
所述至少一个图案与所述第一密码整体相匹配;或said at least one pattern matches said first code in its entirety; or
所述至少一个图案的数量与所述第一密码包括的至少一个字符的数量相同,且所述至少一个图案依次与所述第一密码包括的至少一个字符相匹配。The number of the at least one pattern is the same as the number of at least one character included in the first password, and the at least one pattern matches the at least one character included in the first password in sequence.
在本申请实施例中,通过在确定需要验证身份的情况下,在电子设备的第一屏幕显示第一密码,并接收用户在第二屏幕的第一输入,并将第一输入对应的第二密码与第一密码进行匹配,通过两屏幕密码相匹配的形式,可以避免用户在主屏幕输入重要的电子设备的密码,保护用户的密码在输入时不会泄露,且可以实现在其他生物识别验证方式不可用的状态下,为用户提供更安全的输入密码及身份验证方式。In the embodiment of the present application, when it is determined that identity verification is required, the first password is displayed on the first screen of the electronic device, and the first input of the user on the second screen is received, and the first input corresponds to the second password. The password is matched with the first password. By matching the passwords on the two screens, it is possible to prevent the user from entering the password of important electronic devices on the main screen, to protect the user's password from being leaked when entering it, and to realize authentication in other biometrics. When the method is unavailable, provide users with a more secure method of entering passwords and authentication.
本申请实施例中的电子设备实施例是与上述方法实施例对应的产品实施例,上述方法实施例中的所有实现方式均适用于该电子设备实施例,亦可达到相同或相似的技术效果,故在此不再赘述。The electronic device embodiment in the embodiment of the present application is a product embodiment corresponding to the above-mentioned method embodiment. All the implementation methods in the above-mentioned method embodiment are applicable to this electronic device embodiment, and can also achieve the same or similar technical effects. So I won't repeat them here.
本申请实施例还提供一种可读存储介质,所述可读存储介质上存储有程序或指令,该程序或指令被处理器执行时实现上述身份验证方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。The embodiment of the present application also provides a readable storage medium, on which a program or instruction is stored, and when the program or instruction is executed by a processor, each process of the above embodiment of the identity verification method can be realized, and the same can be achieved. To avoid repetition, the technical effects will not be repeated here.
其中,所述处理器为上述实施例中所述的电子设备中的处理器。所述可读存储介质,包括计算机可读存储介质,如计算机只读存储器(Read-Only Memory,ROM)、随机存取存储器(Random Access Memory,RAM)、磁碟或者光盘等。Wherein, the processor is the processor in the electronic device described in the above embodiments. The readable storage medium includes a computer readable storage medium, such as a computer read-only memory (Read-Only Memory, ROM), a random access memory (Random Access Memory, RAM), a magnetic disk or an optical disk, and the like.
本申请实施例另提供了一种芯片,所述芯片包括处理器和通信接口,所述通信接口和所述处理器耦合,所述处理器用于运行程序或指令,实现上述身份验证方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。The embodiment of the present application further provides a chip, the chip includes a processor and a communication interface, the communication interface is coupled to the processor, and the processor is used to run programs or instructions to implement the above identity verification method embodiment Each process can achieve the same technical effect, so in order to avoid repetition, it will not be repeated here.
应理解,本申请实施例提到的芯片还可以称为系统级芯片、系统芯片、芯片系统或片上系统芯片等。It should be understood that the chips mentioned in the embodiments of the present application may also be called system-on-chip, system-on-chip, system-on-a-chip, or system-on-a-chip.
需要说明的是,在本文中,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者装置不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者装置所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括该要素的过程、方法、物品或者装置中还存在另外的要素。此外,需要指出的是,本申请实施方式中的方法和装置的范围不限按示出或讨论的顺序来执行功能,还可包括根据所涉及的功能按基本同时的方式或按相反的顺序来执行,例如,可以按不同于所描述的次序来执行所描述的方法,并且还可以添加、省去、或组合各种步骤。另外,参照某些示例所描述的特征可在其他示例中被组合。It should be noted that, in this document, the term "comprising", "comprising" or any other variation thereof is intended to cover a non-exclusive inclusion such that a process, method, article or apparatus comprising a set of elements includes not only those elements, It also includes other elements not expressly listed, or elements inherent in the process, method, article, or device. Without more limitations, an element defined by the phrase "comprising a ..." does not preclude the presence of additional elements in the process, method, article, or apparatus that includes the element. In addition, it should be pointed out that the scope of the methods and devices in the embodiments of the present application is not limited to performing functions in the order shown or discussed, and may also include performing functions in a substantially simultaneous manner or in reverse order according to the functions involved. Execution, for example, the described methods may be performed in an order different from that described, and various steps may also be added, omitted, or combined. Additionally, features described with reference to certain examples may be combined in other examples.
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到上述实施例方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质(如ROM/RAM、磁碟、光盘)中,包括若干指令用以使得一台终端(可以是手机,计算机,服务器,或者网络设备等)执行本申请各个实施例所述的方法。Through the description of the above embodiments, those skilled in the art can clearly understand that the methods of the above embodiments can be implemented by means of software plus a necessary general-purpose hardware platform, and of course also by hardware, but in many cases the former is better implementation. Based on such an understanding, the technical solution of the present application can be embodied in the form of a software product in essence or the part that contributes to the prior art, and the computer software product is stored in a storage medium (such as ROM/RAM, disk, CD) contains several instructions to enable a terminal (which may be a mobile phone, a computer, a server, or a network device, etc.) to execute the methods described in various embodiments of the present application.
上面结合附图对本申请的实施例进行了描述,但是本申请并不局限于上述的具体实施方式,上述的具体实施方式仅仅是示意性的,而不是限制性的,本领域的普通技术人员在本申请的启示下,在不脱离本申请宗旨和权利要求所保护的范围情况下,还可做出很多形式,均属于本申请的保护之内。The embodiments of the present application have been described above in conjunction with the accompanying drawings, but the present application is not limited to the above-mentioned specific implementations. The above-mentioned specific implementations are only illustrative and not restrictive. Those of ordinary skill in the art will Under the inspiration of this application, without departing from the purpose of this application and the scope of protection of the claims, many forms can also be made, all of which belong to the protection of this application.
Claims (8)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110363663.XA CN113139174B (en) | 2021-04-02 | 2021-04-02 | Identity verification method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110363663.XA CN113139174B (en) | 2021-04-02 | 2021-04-02 | Identity verification method and device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN113139174A CN113139174A (en) | 2021-07-20 |
CN113139174B true CN113139174B (en) | 2023-07-28 |
Family
ID=76811409
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202110363663.XA Active CN113139174B (en) | 2021-04-02 | 2021-04-02 | Identity verification method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN113139174B (en) |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104766206A (en) * | 2015-04-22 | 2015-07-08 | 广东欧珀移动通信有限公司 | NFC payment method and device based on mobile terminal |
JP2017201441A (en) * | 2016-05-02 | 2017-11-09 | セイコーエプソン株式会社 | Wearable device, settlement system, and settlement method |
CN109544172A (en) * | 2018-11-30 | 2019-03-29 | 维沃移动通信有限公司 | A kind of display methods and terminal device |
CN110766396A (en) * | 2019-09-29 | 2020-02-07 | 维沃移动通信有限公司 | Graphic code display method and electronic equipment |
Family Cites Families (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US7644868B2 (en) * | 2006-01-05 | 2010-01-12 | Hare William D | User identity security system for computer-based account access |
CN105138874B (en) * | 2015-08-24 | 2018-05-08 | 努比亚技术有限公司 | Unlocking screen control device and method |
CN107071168A (en) * | 2017-03-31 | 2017-08-18 | 努比亚技术有限公司 | A kind of method and device of display control |
CN109446794B (en) * | 2018-10-15 | 2020-06-02 | 维沃移动通信有限公司 | A password input method and mobile terminal thereof |
-
2021
- 2021-04-02 CN CN202110363663.XA patent/CN113139174B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104766206A (en) * | 2015-04-22 | 2015-07-08 | 广东欧珀移动通信有限公司 | NFC payment method and device based on mobile terminal |
JP2017201441A (en) * | 2016-05-02 | 2017-11-09 | セイコーエプソン株式会社 | Wearable device, settlement system, and settlement method |
CN109544172A (en) * | 2018-11-30 | 2019-03-29 | 维沃移动通信有限公司 | A kind of display methods and terminal device |
CN110766396A (en) * | 2019-09-29 | 2020-02-07 | 维沃移动通信有限公司 | Graphic code display method and electronic equipment |
Also Published As
Publication number | Publication date |
---|---|
CN113139174A (en) | 2021-07-20 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US10540657B2 (en) | Secure passcode entry user interface | |
CN108352007B (en) | Method and electronic device for providing payment service | |
US9547855B2 (en) | Gesture-based device | |
US9558491B2 (en) | Scrambling passcode entry interface | |
CN106355141B (en) | Portable electronic device and operation method thereof | |
KR101576557B1 (en) | Apparatus for anti-hacking fingerprint recognition means of cell-phone and surface means and method of the same | |
US9928501B1 (en) | Secure passcode entry docking station | |
US20150332038A1 (en) | Secure entry of secrets | |
EP2713328B1 (en) | Validating a transaction with a secure input without requiring pin code entry | |
CN106991343A (en) | Safety payment device and safety payment method thereof | |
US20150006405A1 (en) | System and methods for secure entry of a personal identification number (pin) using multi-touch trackpad technologies | |
JP5685737B1 (en) | Information processing apparatus, information processing method, information processing program, and recording medium | |
CN113139174B (en) | Identity verification method and device | |
US20180239884A1 (en) | Detection System, Fingerprint Sensor, and Method of Finger Touch Authentication Thereof | |
CN114020391B (en) | Information display method, device, electronic device and readable storage medium | |
CN116301402A (en) | Password input method and device | |
CN114298709A (en) | Data processing method and device for touch screen, terminal and storage medium | |
CN104112200A (en) | Motion Protection and Field Tracking Methods | |
EP3536515A1 (en) | Money voucher | |
CN112016918B (en) | Signature writing method, signature verification method, device and storage medium | |
CN111445227B (en) | Payment method, device, electronic equipment and storage medium | |
CN115795423A (en) | Method and device for unlocking electronic equipment | |
CN113656774A (en) | Unlocking method and unlocking device of electronic equipment | |
HK40014115A (en) | Money voucher |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |