WO2019019717A1 - Password setting method and apparatus, terminal and computer readable storage medium - Google Patents

Password setting method and apparatus, terminal and computer readable storage medium Download PDF

Info

Publication number
WO2019019717A1
WO2019019717A1 PCT/CN2018/083853 CN2018083853W WO2019019717A1 WO 2019019717 A1 WO2019019717 A1 WO 2019019717A1 CN 2018083853 W CN2018083853 W CN 2018083853W WO 2019019717 A1 WO2019019717 A1 WO 2019019717A1
Authority
WO
WIPO (PCT)
Prior art keywords
password
duration
information
timing information
determining
Prior art date
Application number
PCT/CN2018/083853
Other languages
French (fr)
Chinese (zh)
Inventor
曲瑞鹏
Original Assignee
平安科技(深圳)有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 平安科技(深圳)有限公司 filed Critical 平安科技(深圳)有限公司
Publication of WO2019019717A1 publication Critical patent/WO2019019717A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/30Authentication, i.e. establishing the identity or authorisation of security principals
    • G06F21/31User authentication
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/30Authentication, i.e. establishing the identity or authorisation of security principals
    • G06F21/31User authentication
    • G06F21/36User authentication by graphic or iconic representation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/30Authentication, i.e. establishing the identity or authorisation of security principals
    • G06F21/45Structures or tools for the administration of authentication
    • G06F21/46Structures or tools for the administration of authentication by designing passwords or checking the strength of passwords

Definitions

  • the present application relates to the field of communications technologies, and in particular, to a password setting method, apparatus, and computer readable storage medium.
  • the current password input is mostly a numeric password, or a combination of numbers and letters.
  • the input of numbers and letters is to guide the user to enter the password by corresponding the user-set password to the corresponding button position.
  • such numbers or letters correspond to click input at the button position, and the visibility is high, that is, it is easy to be seen by the person around when the password is input, resulting in password leakage and poor encryption.
  • the embodiment of the present invention provides a password setting method, device, and computer readable storage medium, which are intended to solve the problem of easy leakage when the existing password is input.
  • an embodiment of the present application provides a password setting method, where the method includes:
  • the password information includes a password element and timing information generated when the password element is input;
  • the password information is set as an unlock password based on the duration level.
  • an embodiment of the present application provides a password setting apparatus, where the apparatus includes:
  • An obtaining unit configured to obtain password information input by a user, where the password information includes a password element and timing information generated when the password element is input;
  • a determining unit configured to determine, according to the timing information, whether the password information is valid
  • a determining unit configured to determine, according to a preset rule, a duration level corresponding to the timing information, if the password information is valid;
  • a setting unit configured to set the password information as an unlock password based on the duration level.
  • an embodiment of the present application provides a terminal, including a processor, an input device, an output device, and a memory, where the processor, the input device, the output device, and the memory are connected to each other, wherein the memory is used to store an application.
  • an embodiment of the present application provides a computer readable storage medium, where the computer storage medium stores a computer program, and the computer program is executed by a processor to implement the method of the first aspect.
  • the embodiment of the present application not only overcomes the problem that the user is easily seen by the person around when the password is input, but also causes the password to be leaked. At the same time, the duration level is increased, the complexity of the unlocking password is increased, and the security of the unlocking password is improved.
  • FIG. 1 is a schematic flowchart of a password setting method according to an embodiment of the present application.
  • FIG. 2 is a schematic flow chart of sub-steps of the password setting method of FIG. 1;
  • FIG. 3 is a schematic flow chart of sub-steps of the password setting method of FIG. 1;
  • FIG. 4 is another schematic flowchart of a password setting method according to an embodiment of the present application.
  • FIG. 5 is a schematic diagram of a cryptographic element provided by an embodiment of the present application as a pattern cryptographic element
  • FIG. 6 is a schematic diagram of a user setting pattern type password element provided by an embodiment of the present application.
  • FIG. 7 is a schematic block diagram of a password setting apparatus according to an embodiment of the present application.
  • FIG. 8 is another schematic block diagram of a password setting apparatus according to an embodiment of the present application.
  • FIG. 9 is a schematic block diagram of a terminal provided by an embodiment of the present application.
  • FIG. 1 is a schematic flowchart of a method for setting a password according to an embodiment of the present application.
  • the password setting method may be implemented in a password setting device including a processor, such as a mobile terminal, a tablet computer, or the like. Or a password input device, such as a counter password keypad.
  • the password setting method may include steps S101 to S104.
  • the password information includes a password element and timing information, wherein the timing information is time information that is generated by the user to wait for a button or a virtual button corresponding to the password element to enter the password element for a period of time.
  • the timing information mainly includes a duration value and the like.
  • the password element includes a character, a number, a combination thereof, or the like, such as a password of “1, 2, 3, 4, 5, and 6”, and the 1, 2, 3, 4, 5, and 6 are six password elements. Numbers can also be represented by letters.
  • the password element further includes a pattern class element for the user to draw a graphic of a specific shape as a setting password, and the graphic of the specific shape is a pattern class element. For example, the nine-square grid graphics commonly used in mobile phones or applications.
  • the timing information generated when the password element is input is obtained, specifically, the duration of the operation on the password element due to pressing or the like when the user inputs the password element.
  • the duration of pressing the password element "3" is 1 second
  • the duration of pressing the password element "4" is 2 seconds
  • the duration of 1 second and 2 seconds is the timing information.
  • the unit of the timing information can also be expressed by other units, such as ms (milliseconds) and the like.
  • the password information is valid according to the timing information, and it is determined whether the duration value corresponding to the password element is valid according to the timing information.
  • the duration value in the timing information is used to determine whether the password information is valid.
  • the determining, by the timing information, whether the password information is valid includes: sub-steps S102a and S102b.
  • S102a Determine whether the duration value is in a preset duration range;
  • S102b if the duration value is in the preset duration range, determine that the password information is valid. It can be seen that steps S102a and S102B determine whether the timing information is valid according to the duration value falling within the preset duration range, and further determine whether the password information corresponding to the timing information is valid.
  • the preset duration range is obtained by counting a habit of pressing a password element by a plurality of users to obtain a duration range. If the method is applied to a mobile terminal such as a mobile phone or a tablet computer, the user's habit of using the mobile terminal may be counted to generate a preset preset duration range of the user.
  • the range of the duration may also be set by the user, and the specific value of the range is not limited herein.
  • the duration level corresponding to the duration value in the timing information is further determined according to a preset rule.
  • the threshold duration is a preset duration threshold, and the preset duration threshold is divided into two duration levels by the preset duration threshold. They are respectively represented as: a first preset duration level and a second preset duration level, specifically corresponding to short pressing and long pressing.
  • the preset duration range may be divided into multiple duration levels.
  • the determining the duration level corresponding to the timing information according to the preset rule includes: sub-steps S103a-S103c.
  • S103a determining whether the duration value is less than a preset duration threshold
  • S103b if the duration value is less than the preset duration threshold, determining that the duration level corresponding to the timing information is a first duration level
  • S103c if If the duration value is not less than the preset duration threshold, it is determined that the duration level corresponding to the timing information is the second duration level.
  • the preset duration is in the range of 20 to 40
  • the preset duration threshold is 30, and the duration value is 25, so that the duration level corresponding to the duration value 25 can be determined to be the first duration level
  • the number unit can be milliseconds, or Other time units.
  • the unlock password includes not only a plurality of password elements; at the same time, different password elements also correspond to different duration levels.
  • the complexity of the unlock password is increased by the duration level. Therefore, in the process of the user inputting the password, even if someone sees the input password element, for example, the password element input is "1, 4, 5, 2, 3, and 6", the duration level corresponding to the password element cannot be seen. Therefore, the method improves the security of the unlock password.
  • the method of the above embodiment obtains the password information input by the user, wherein the password information includes a password element and timing information generated when the password element is input; determining whether the password information is valid according to the timing information, and determining a valid timing
  • the duration level corresponding to the information, the password element and the timing information are set as the unlock password based on the duration level.
  • the method not only overcomes the problem that the user is easily seen by the person around when the password is input, but also causes the password to leak; at the same time, the length of the time is increased, the complexity of the unlocking password is increased, and the security of the unlocking password is improved.
  • FIG. 4 is another schematic flowchart of a method for setting a password according to an embodiment of the present application.
  • the password setting method may be implemented in a password setting device including a processor, such as a mobile terminal, a tablet computer, or the like; or It is a password input device, wherein the password input device is provided with a component for measuring pressure, a timer, etc., and the component for measuring pressure can be, for example, a pressure sensor.
  • the password setting method may include steps S201 to S209.
  • the password information includes a password element, timing information, and pressure information, wherein the timing information and the pressure information are generated when the password element is input.
  • the password element includes characters, numbers, a combination thereof, and the like.
  • the password element also includes pattern elements, such as nine-square grid graphics commonly used in mobile phones or applications.
  • the timing information includes a duration value.
  • the timing information specifically refers to obtaining a duration of operation on the password element due to pressing or the like when the user inputs the password element. For example, the duration of pressing the password element "3" is 1 second, and the duration of pressing the password element "4" is 2 seconds, and the duration of 1 second and 2 seconds is the timing information.
  • the unit of the timing information can also be expressed by other units, such as ms (milliseconds) and the like.
  • the pressure information specifically refers to obtaining pressure information generated by pressing when the user inputs the password element.
  • the pressure information includes a pressure value, a pressure area, and the like, and may include other types of information, which are not limited herein.
  • the category of the password element is identified, specifically: whether the category of the password element is a character class or a pattern class. Perform different steps based on different recognition results.
  • step S203 is performed; if the password element is a pattern class, step S204 is performed.
  • the password element is a character class, obtain timing information and pressure information generated when the password element is input.
  • the password that the user wants to set is a text type password, such as inputting a number or a letter, directly obtaining the pressure information and duration of the button or virtual button that the user clicks on the text type password element that he wants to set,
  • the duration is the timing information.
  • the display type password element is displayed on the display screen of the mobile terminal 10, specifically the commonly used nine-square grid, and the user only needs to A password can be set by drawing a pattern on the nine squares.
  • a "Z" shaped cryptographic element is drawn, but this cryptographic element is also easily seen by people around it and causes a password leak.
  • the nine-square grid does not constitute a limitation on the pattern-like cryptographic elements.
  • the password element is a pattern type password element
  • the password element needs to be further processed to obtain timing information generated when the user draws the pattern. Therefore, in this embodiment, the cipher element is divided into a plurality of sub-patterns, and the cipher element division method can be processed according to an actual pattern.
  • the cryptographic element can be divided according to nine grid points, and the plurality of sub-patterns can be a grid point portion or a grid portion.
  • the user draws a "Z"-shaped cryptographic element. If multiple sub-patterns take a lattice point, the Z-shaped cryptographic element is divided into 7 grid points; if multiple sub-patterns take the inter-point portion, that is, The Z" font password element is divided into six grid points.
  • the timing information generated on the plurality of sub-patterns when the password element is input is obtained, specifically: when the user draws the pattern-like password element, a certain pressure is generated in the process of drawing the graphic, according to the above
  • the method divides the cryptographic element into a plurality of sub-patterns to obtain timing information generated on the sub-pattern. For example, if the user draws a "Z"-shaped cryptographic element on the nine-square grid, the user can obtain the duration value of the "Z"-shaped cryptographic element corresponding to the seven grid points, and can also obtain the "Z"-shaped cryptographic element corresponding to the portion between the six grid points.
  • the duration value, if the pressure value, the pressure value of the portion between the grid points may be an average of a plurality of pressures generated between the grid points.
  • timing information generated on the plurality of sub-patterns together constitutes timing information of the pattern-like cryptographic element.
  • the pressure information can also be similarly divided by referring to the timing information on the plurality of sub-patterns, and will not be described in detail herein.
  • whether the password information is valid according to the timing information is determined according to the timing information, and the acquired password element and the duration value and the timing information corresponding to the password element are valid.
  • the duration value in the timing information is used to determine whether the password information is valid. It is determined whether the duration value is valid according to the duration value falling within the preset duration range, and further determining whether the password information corresponding to the duration value is valid.
  • whether the password information is valid may be determined based on the pressure information, and the determination method refers to the method for determining the timing information.
  • step S207 is performed; if the password information is valid, step S208 is performed.
  • the password information is invalid, it indicates that the duration value in the timing information is too long or too short, and the specific length or too short may be determined according to whether the preset duration threshold is used, thereby specifically outputting the prompting user to increase the pressing. Time or a message to reduce the pressing time.
  • the prompt information may be a voice prompt information or a text prompt information.
  • the duration level includes a first duration level and a second duration level, respectively corresponding to the short press and the long press
  • the pressure threshold is a preset duration threshold in the preset duration range, and the preset duration is adopted.
  • the threshold is used to divide the preset duration range into two duration levels. If the duration value is less than the preset duration threshold, the determination is that the short press is performed, and the duration value is not less than the preset duration threshold, and the long-press is determined.
  • the password element and the pressure information are set as the unlock password based on the duration level.
  • the duration level is a duration level corresponding to each sub-pattern of the pattern type password element.
  • the unlock password includes not only a plurality of password elements; at the same time, different password elements also correspond to different duration levels and pressure information, such as pressure values.
  • the complexity of unlocking the password is increased. Therefore, in the process of the user inputting the password, even if someone sees the input password element, for example, the pattern-type password element that is input is “Z”, the duration level corresponding to each part of the pattern type password element is not known, and the pattern is The timing information corresponding to the class password element, thus improving the security of the unlock password.
  • the unlock password may include pressure information in addition to the password element and the timing information.
  • the pressure information and its corresponding pressure level such as light pressure and heavy pressure, may also be added.
  • the complexity of the unlock password is increased to improve the security of the unlock password.
  • FIG. 7 is a schematic block diagram of a password setting apparatus according to an embodiment of the present application.
  • the password setting apparatus 300 includes an acquisition unit 301, a determination unit 302, a determination unit 303, and a setting unit 304.
  • the obtaining unit 301 is configured to obtain password information input by the user, where the password information includes a password element and timing information generated when the password element is input.
  • the determining unit 302 is configured to determine, according to the timing information, whether the password information is valid.
  • the determining unit 303 is configured to determine, according to a preset rule, a duration level corresponding to the timing information, if the password information is valid.
  • the duration level corresponding to the timing information is determined according to a preset rule.
  • the determining unit 303 includes a second judging subunit 3031, a second judging subunit 3032, and a third judging subunit 3033.
  • the second determining sub-unit 3031 is configured to determine whether the duration value is less than a preset duration threshold; the second determining sub-unit 3032 is configured to determine that the timing information corresponds to the duration value is less than the preset duration threshold
  • the duration level is a first duration level; the third determining sub-unit 3033 is configured to determine that the duration level corresponding to the timing information is a second duration level if the duration value is not less than the preset duration threshold.
  • the setting unit 304 is configured to set the password information as an unlock password based on the duration level.
  • FIG. 8 is a schematic block diagram of a password setting apparatus according to an embodiment of the present application.
  • the password setting apparatus 400 includes an acquisition unit 401, an identification unit 402, an information acquisition unit 403, a division unit 404, a first acquisition unit 405, a determination unit 406, an output unit 407, a determination unit 408, and a setting unit. 409.
  • the obtaining unit 401 is configured to obtain password information input by the user, where the password information includes a password element and timing information and pressure information generated when the password element is input.
  • the identifying unit 402 is configured to identify a category of the password element.
  • the information obtaining unit 403 is configured to obtain timing information generated when the password element is input if the password element is a character class.
  • the dividing unit 404 is configured to divide the password element into a plurality of sub-patterns if the password element is a pattern class.
  • the first obtaining unit 405 is configured to acquire timing information generated on each of the sub-patterns when the user inputs the password element.
  • the determining unit 406 is configured to determine, according to the timing information, whether the password information is valid.
  • the output unit 407 outputs prompt information for prompting the user to extend or decrease the pressing time.
  • the determining unit 408 is configured to determine a duration level corresponding to the timing information according to a preset rule.
  • the setting unit 409 is configured to set the password element and the pressure information as an unlock password based on the duration level.
  • the above apparatus can be implemented in the form of a computer program which can be run on a terminal as shown in FIG.
  • FIG. 9 is a schematic block diagram of a terminal according to an embodiment of the present application.
  • the terminal in this embodiment as shown in FIG. 9 may include one or more processors 801; one or more input devices 802, one or more output devices 803, and a memory 804.
  • the above processor 801, input device 802, output device 803, and memory 804 are connected by a bus 805.
  • the memory 802 is for storing instructions
  • the processor 801 is for executing instructions stored by the memory 802.
  • the processor 801 is configured to perform the steps corresponding to the password setting method provided by the foregoing embodiment.
  • the processor 801 may be a central processing unit (CPU), and the processor may also be another general-purpose processor, a digital signal processor (DSP). , Application Specific Integrated Circuit (ASIC), Field-Programmable Gate Array (FPGA) or other programmable logic device, discrete gate or transistor logic device, discrete hardware component, etc.
  • the general purpose processor may be a microprocessor or the processor or any conventional processor or the like.
  • the input device 802 can include a touchpad or the like
  • the output device 803 can include a display (LCD or the like), a speaker, and the like.
  • the memory 804 can include a non-volatile storage medium and an internal memory.
  • the non-volatile storage medium can store an operating system and store program instructions for implementing a data processing method.
  • the internal memory provides an environment for the operation of program instructions in a non-volatile storage medium.
  • the processor 801 is used to provide computing and control capabilities to support the operation of the entire data processing device.
  • the terminal in this embodiment in addition to the processor 801, the input device 802, the output device 803, and the memory 804, may also include other components, such as sensors.
  • the pressure sensor is especially used. To measure the pressure generated when pressed.
  • the processor 801, the input device 802, and the output device 803, which are described in the embodiments of the present application, may be implemented in the first embodiment and the second embodiment in the password setting method provided by the embodiment of the present application.
  • the implementation of the apparatus described in the embodiments of the present application may also be implemented, and details are not described herein again.
  • a computer readable storage medium is stored, where the computer readable storage medium stores a computer program, and when the computer program is executed by the processor, the password setting method provided by the foregoing embodiment is implemented. step.
  • the computer readable storage medium may be an internal storage unit of the terminal described in any of the foregoing embodiments, such as a hard disk of the terminal.
  • the computer readable storage medium may also be an external storage device of the terminal, such as a plug-in hard disk equipped on the terminal, a smart memory card (SMC), and a Secure Digital (SD) card. , Flash Card, etc.
  • the computer readable storage medium may also include both an internal storage unit of the terminal and an external storage device.
  • the computer readable storage medium is for storing the computer program and other programs and data required by the terminal.
  • the computer readable storage medium can also be used to temporarily store data that has been output or is about to be output.
  • the disclosed apparatus and method may be implemented in other manners.
  • the device embodiments described above are merely illustrative.
  • the division of the unit is only a logical function division.
  • there may be another division manner for example, multiple units or components may be combined or Can be integrated into another system, or some features can be ignored or not executed.
  • the mutual coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection through some interface, device or unit, or an electrical, mechanical or other form of connection.
  • the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, may be located in one place, or may be distributed to multiple network units. Some or all of the units may be selected according to actual needs to achieve the objectives of the embodiments of the present application.
  • each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.
  • the above integrated unit can be implemented in the form of hardware or in the form of a software functional unit.
  • the integrated unit if implemented in the form of a software functional unit and sold or used as a standalone product, may be stored in a computer readable storage medium.
  • the technical solution of the present application may be in essence or part of the contribution to the prior art, or all or part of the technical solution may be embodied in the form of a software product stored in a storage medium.
  • a number of instructions are included to cause a computer device (which may be a personal computer, server, or network device, etc.) to perform all or part of the steps of the methods described in various embodiments of the present application.
  • the foregoing storage medium includes: a U disk, a removable hard disk, a read-only memory (ROM), a magnetic disk, or an optical disk, and the like, which can store program codes.

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)
  • Storage Device Security (AREA)
  • Telephone Function (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

Disclosed are a password setting method and apparatus, and a computer readable storage medium. The password setting method comprises: acquiring password information input by a user, wherein the password information comprises password elements and timing information generated when the password elements are input; determining, according to the timing information, whether the password information is valid; if the password information is valid, determining, according to a pre-set rule, a duration level corresponding to the timing information; and based on the duration level, setting the password information as an unlocking password.

Description

一种密码设置方法、装置、终端及计算机可读存储介质Password setting method, device, terminal and computer readable storage medium
本申请要求于2017年7月24日提交中国专利局、申请号为201710607663.3、发明名称为“密码设置方法、装置及计算机可读存储介质”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。The present application claims priority to Chinese Patent Application No. JP-A No. No. No. No. No. No. No. No. No. No. No. No. No. No. No. No. No. In this application.
技术领域Technical field
本申请涉及通信技术领域,尤其涉及一种密码设置方法、装置及计算机可读存储介质。The present application relates to the field of communications technologies, and in particular, to a password setting method, apparatus, and computer readable storage medium.
背景技术Background technique
目前的密码输入多为数字密码,或者是数字和字母组合式密码,其中数字和字母的输入都是通过将用户预设置的密码对应在相应的按键位置,来指引用户进行密码输入。但是,这种数字或字母对应在按键位置的点击输入,其可视性较高,即在输入密码时容易被身边人员看到,从而导致密码泄露,加密性较差。The current password input is mostly a numeric password, or a combination of numbers and letters. The input of numbers and letters is to guide the user to enter the password by corresponding the user-set password to the corresponding button position. However, such numbers or letters correspond to click input at the button position, and the visibility is high, that is, it is easy to be seen by the person around when the password is input, resulting in password leakage and poor encryption.
发明内容Summary of the invention
本申请实施例提供一种密码设置方法、装置及计算机可读存储介质,旨在解决现有的密码输入时存在易泄露的问题。The embodiment of the present invention provides a password setting method, device, and computer readable storage medium, which are intended to solve the problem of easy leakage when the existing password is input.
第一方面,本申请实施例提供了一种密码设置方法,该方法包括:In a first aspect, an embodiment of the present application provides a password setting method, where the method includes:
获取用户输入的密码信息,其中,所述密码信息包括密码元素以及输入所述密码元素时产生的计时信息;Obtaining password information input by the user, where the password information includes a password element and timing information generated when the password element is input;
根据所述计时信息判断所述密码信息是否有效;Determining, according to the timing information, whether the password information is valid;
若所述密码信息有效,根据预设规则确定所述计时信息对应的时长等级;If the password information is valid, determining a duration level corresponding to the timing information according to a preset rule;
基于所述时长等级,将所述密码信息设置为解锁密码。The password information is set as an unlock password based on the duration level.
第二方面,本申请实施例提供了一种密码设置装置,该装置包括:In a second aspect, an embodiment of the present application provides a password setting apparatus, where the apparatus includes:
获取单元,用于获取用户输入的密码信息,其中,所述密码信息包括密码 元素以及输入所述密码元素时产生的计时信息;An obtaining unit, configured to obtain password information input by a user, where the password information includes a password element and timing information generated when the password element is input;
判断单元,用于根据所述计时信息判断所述密码信息是否有效;a determining unit, configured to determine, according to the timing information, whether the password information is valid;
确定单元,用于若所述密码信息有效,根据预设规则确定所述计时信息对应的时长等级;a determining unit, configured to determine, according to a preset rule, a duration level corresponding to the timing information, if the password information is valid;
设置单元,用于基于所述时长等级,将所述密码信息设置为解锁密码。And a setting unit configured to set the password information as an unlock password based on the duration level.
第三方面,本申请实施例提供了一种终端,包括处理器、输入设备、输出设备和存储器,所述处理器、输入设备、输出设备和存储器相互连接,其中,所述存储器用于存储应用程序代码,所述处理器用于执行所述程序代码,以实现上述第一方面的方法。In a third aspect, an embodiment of the present application provides a terminal, including a processor, an input device, an output device, and a memory, where the processor, the input device, the output device, and the memory are connected to each other, wherein the memory is used to store an application. Program code for executing the program code to implement the method of the first aspect above.
第四方面,本申请实施例提供了一种计算机可读存储介质,所述计算机存储介质存储有计算机程序,所述计算机程序被处理器执行,以实现上述第一方面的方法。In a fourth aspect, an embodiment of the present application provides a computer readable storage medium, where the computer storage medium stores a computer program, and the computer program is executed by a processor to implement the method of the first aspect.
本申请实施例不仅克服了用户在输入密码时,容易被身边人员看到而导致密码泄露的问题;同时还增加时长等级,增加了该解锁密码复杂度,提高了解锁密码的安全性。The embodiment of the present application not only overcomes the problem that the user is easily seen by the person around when the password is input, but also causes the password to be leaked. At the same time, the duration level is increased, the complexity of the unlocking password is increased, and the security of the unlocking password is improved.
附图说明DRAWINGS
为了更清楚地说明本申请实施例技术方案,下面将对实施例描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings used in the description of the embodiments will be briefly described below. It is obvious that the drawings in the following description are some embodiments of the present application. For the ordinary technicians, other drawings can be obtained based on these drawings without paying creative labor.
图1是本申请实施例提供的一种密码设置方法的示意流程图;1 is a schematic flowchart of a password setting method according to an embodiment of the present application;
图2是图1中密码设置方法的子步骤的示意流程图;2 is a schematic flow chart of sub-steps of the password setting method of FIG. 1;
图3是图1中密码设置方法的子步骤的示意流程图;3 is a schematic flow chart of sub-steps of the password setting method of FIG. 1;
图4是本申请实施例提供的一种密码设置方法的另一示意流程图;4 is another schematic flowchart of a password setting method according to an embodiment of the present application;
图5是本申请实施例提供的密码元素为图案类密码元素的示意图;5 is a schematic diagram of a cryptographic element provided by an embodiment of the present application as a pattern cryptographic element;
图6是本申请实施例提供的用户设置图案类密码元素的示意图;6 is a schematic diagram of a user setting pattern type password element provided by an embodiment of the present application;
图7是本申请实施例提供的一种密码设置装置的示意性框图;FIG. 7 is a schematic block diagram of a password setting apparatus according to an embodiment of the present application; FIG.
图8是本申请实施例提供的一种密码设置装置的另一示意性框图;FIG. 8 is another schematic block diagram of a password setting apparatus according to an embodiment of the present application; FIG.
图9是本申请实施例提供的一种终端的示意性框图。FIG. 9 is a schematic block diagram of a terminal provided by an embodiment of the present application.
具体实施方式Detailed ways
下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。The technical solutions in the embodiments of the present application are clearly and completely described in the following with reference to the drawings in the embodiments of the present application. It is obvious that the described embodiments are a part of the embodiments of the present application, and not all of the embodiments. All other embodiments obtained by a person of ordinary skill in the art based on the embodiments of the present application without departing from the inventive scope are the scope of the present application.
应当理解,当在本说明书和所附权利要求书中使用时,术语“包括”和“包含”指示所描述特征、整体、步骤、操作、元素和/或组件的存在,但并不排除一个或多个其它特征、整体、步骤、操作、元素、组件和/或其集合的存在或添加。The use of the terms "comprising", "comprising", "","," The presence or addition of a plurality of other features, integers, steps, operations, elements, components, and/or collections thereof.
还应当理解,在此本申请说明书中所使用的术语仅仅是出于描述特定实施例的目的而并不意在限制本申请。如在本申请说明书和所附权利要求书中所使用的那样,除非上下文清楚地指明其它情况,否则单数形式的“一”、“一个”及“该”意在包括复数形式。The terminology used herein is for the purpose of describing particular embodiments and is not intended to be limiting. As used in the specification and the appended claims, the claims
还应当进一步理解,在本申请说明书和所附权利要求书中使用的术语“和/或”是指相关联列出的项中的一个或多个的任何组合以及所有可能组合,并且包括这些组合。It is further understood that the term "and/or" used in the specification and the appended claims means any combination of one or more of the associated listed items and all possible combinations, and includes the combinations .
参阅图1,图1是本申请实施例提供一种密码设置方法的示意流程图,该密码设置方法可以运行在包括处理器的密码设置装置中,该装置比如为:手机、平板电脑等移动终端;或者是密码输入器,比如为柜台密码小键盘。如图1所示,该密码设置方法可包括步骤S101至S104。Referring to FIG. 1 , FIG. 1 is a schematic flowchart of a method for setting a password according to an embodiment of the present application. The password setting method may be implemented in a password setting device including a processor, such as a mobile terminal, a tablet computer, or the like. Or a password input device, such as a counter password keypad. As shown in FIG. 1, the password setting method may include steps S101 to S104.
S101、获取用户输入的密码信息,其中,所述密码信息包括密码元素以及输入所述密码元素时产生的计时信息。S101. Acquire password information input by a user, where the password information includes a password element and timing information generated when the password element is input.
在本实施例中,该密码信息包括密码元素和计时信息,其中该计时信息为输入该密码元素需要用户在该密码元素对应的按键或虚拟按键停留一段时间进而产生的时间信息。该计时信息主要包括时长值等。In this embodiment, the password information includes a password element and timing information, wherein the timing information is time information that is generated by the user to wait for a button or a virtual button corresponding to the password element to enter the password element for a period of time. The timing information mainly includes a duration value and the like.
具体地,该密码元素包括字符、数字或其组合等,比如密码为“1、2、3、4、5和6”,该1、2、3、4、5和6为六个密码元素,数字也可以用字母表示。此外,该密码元素还包括图案类元素,该图案类元素为用户绘制特定形状的图形作为设置密码,该特定形状的图形即为图案类元素。比如手机或应用常用的 九宫格图形等。Specifically, the password element includes a character, a number, a combination thereof, or the like, such as a password of “1, 2, 3, 4, 5, and 6”, and the 1, 2, 3, 4, 5, and 6 are six password elements. Numbers can also be represented by letters. In addition, the password element further includes a pattern class element for the user to draw a graphic of a specific shape as a setting password, and the graphic of the specific shape is a pattern class element. For example, the nine-square grid graphics commonly used in mobile phones or applications.
其中,获取输入所述密码元素时产生的计时信息,具体是指获取用户输入所述密码元素时由于按压等操作在所述密码元素上的持续时间。比如按压密码元素“3”的持续时间为1秒,按压密码元素“4”的持续时间为2秒,该持续时间1秒和2秒即为计时信息。该计时信息的单位还可用其他单位来表示,比如为ms(毫秒)等。The timing information generated when the password element is input is obtained, specifically, the duration of the operation on the password element due to pressing or the like when the user inputs the password element. For example, the duration of pressing the password element "3" is 1 second, and the duration of pressing the password element "4" is 2 seconds, and the duration of 1 second and 2 seconds is the timing information. The unit of the timing information can also be expressed by other units, such as ms (milliseconds) and the like.
S102、根据所述计时信息判断所述密码信息是否有效。S102. Determine, according to the timing information, whether the password information is valid.
在本实施例中,根据计时信息来判断所述密码信息是否有效,是根据计时信息来判断与该密码元素相对应的时长值是否有效。In this embodiment, it is determined whether the password information is valid according to the timing information, and it is determined whether the duration value corresponding to the password element is valid according to the timing information.
需要说明的是,在本实施例中,是使用计时信息中的时长值来判断所述密码信息是否有效。It should be noted that, in this embodiment, the duration value in the timing information is used to determine whether the password information is valid.
其中,根据所述计时信息判断所述密码信息是否有效,包括:子步骤S102a和S102b。S102a、判断所述时长值是否处于预设时长范围;S102b、若所述时长值处于所述预设时长范围,则判定所述密码信息有效。可以看出步骤S102a和S102B,是以时长值是落在预设时长范围来判断该计时信息是否有效,进而判断计时信息对应的密码信息是否有效。The determining, by the timing information, whether the password information is valid includes: sub-steps S102a and S102b. S102a: Determine whether the duration value is in a preset duration range; S102b, if the duration value is in the preset duration range, determine that the password information is valid. It can be seen that steps S102a and S102B determine whether the timing information is valid according to the duration value falling within the preset duration range, and further determine whether the password information corresponding to the timing information is valid.
具体地,该预设时长范围是根据对多个用户按压密码元素的习惯进行统计而得到一个时长范围。如果该方法应用于手机、平板电脑等移动终端时,也可以统计使用该移动终端的用户习惯而生成该用户特有的预设时长范围。该时长范围大小,也可由用户自己设定,范围的具体值在此不做限定。Specifically, the preset duration range is obtained by counting a habit of pressing a password element by a plurality of users to obtain a duration range. If the method is applied to a mobile terminal such as a mobile phone or a tablet computer, the user's habit of using the mobile terminal may be counted to generate a preset preset duration range of the user. The range of the duration may also be set by the user, and the specific value of the range is not limited herein.
S103、若所述密码信息有效,根据预设规则确定所述计时信息对应的时长等级。S103. If the password information is valid, determine a duration level corresponding to the timing information according to a preset rule.
在本实施例中,如判断出该密码信息为有效,则进一步地根据预设规则确定该计时信息中的时长值对应的时长等级。在该预设时长范围取一个时长阈值为预设时长阈值,通过该预设时长阈值来将预设时长范围划分两个时长等级。分别表示为:第一预设时长等级和第二预设时长等级,具体对应着短按和长按两种情况。In this embodiment, if it is determined that the password information is valid, the duration level corresponding to the duration value in the timing information is further determined according to a preset rule. The threshold duration is a preset duration threshold, and the preset duration threshold is divided into two duration levels by the preset duration threshold. They are respectively represented as: a first preset duration level and a second preset duration level, specifically corresponding to short pressing and long pressing.
可以理解的是,如果在预设时长范围中取多个预设时长阈值可以将该预设时长范围划分为多个时长等级。It can be understood that if the preset preset duration threshold is taken in the preset duration range, the preset duration range may be divided into multiple duration levels.
其中,根据预设规则确定所述计时信息对应的时长等级,包括:子步骤 S103a~S103c。S103a、判断所述时长值是否小于预设时长阈值;S103b、若所述时长值小于所述预设时长阈值,则判定所述计时信息对应的时长等级为第一时长等级;S103c、若所述时长值不小于所述预设时长阈值,则判定所述计时信息对应的时长等级为第二时长等级。The determining the duration level corresponding to the timing information according to the preset rule includes: sub-steps S103a-S103c. S103a, determining whether the duration value is less than a preset duration threshold; S103b, if the duration value is less than the preset duration threshold, determining that the duration level corresponding to the timing information is a first duration level; S103c, if If the duration value is not less than the preset duration threshold, it is determined that the duration level corresponding to the timing information is the second duration level.
比如,预设时长范围为20~40,预设时长阈值为30,而该时长值为25,因此可以确定该时长值25对应的时长等级为第一时长等级,数字单位可以毫秒,也可以为其他时间单位。For example, the preset duration is in the range of 20 to 40, the preset duration threshold is 30, and the duration value is 25, so that the duration level corresponding to the duration value 25 can be determined to be the first duration level, the number unit can be milliseconds, or Other time units.
S104、基于所述时长等级,将所述密码信息设置为解锁密码。S104. Set the password information as an unlock password based on the duration level.
在本实施例中,在确定所述计时信息对应的时长等级后,则基于所述时长等级,将所述密码元素以及相对应的时长等级设置为解锁密码。因此,该解锁密码不仅包括多个密码元素;同时,不同的密码元素还对应着不同的时长等级。由此,通过时长等级增加了该解锁密码的复杂度。因此在用户输入密码的过程中,即使身边有人看见其输入密码元素,比如其输入的密码元素为“1、4、5、2、3和6”,但也无法看见该密码元素对应的时长等级,因此该方法提高了该解锁密码的安全性。In this embodiment, after determining the duration level corresponding to the timing information, the password element and the corresponding duration level are set as the unlock password based on the duration level. Therefore, the unlock password includes not only a plurality of password elements; at the same time, different password elements also correspond to different duration levels. Thus, the complexity of the unlock password is increased by the duration level. Therefore, in the process of the user inputting the password, even if someone sees the input password element, for example, the password element input is "1, 4, 5, 2, 3, and 6", the duration level corresponding to the password element cannot be seen. Therefore, the method improves the security of the unlock password.
上述实施例的方法通过获取用户输入的密码信息,其中,所述密码信息包括密码元素以及输入所述密码元素时产生的计时信息;根据计时信息判断所述密码信息是否有效,再确定有效的计时信息对应的时长等级,基于所述时长等级将所述密码元素和计时信息设置为解锁密码。该方法不仅克服了用户在输入密码时,容易被身边人员看到而导致密码泄露的问题;同时还增加时长等级,增加了该解锁密码复杂度,提高了解锁密码的安全性。The method of the above embodiment obtains the password information input by the user, wherein the password information includes a password element and timing information generated when the password element is input; determining whether the password information is valid according to the timing information, and determining a valid timing The duration level corresponding to the information, the password element and the timing information are set as the unlock password based on the duration level. The method not only overcomes the problem that the user is easily seen by the person around when the password is input, but also causes the password to leak; at the same time, the length of the time is increased, the complexity of the unlocking password is increased, and the security of the unlocking password is improved.
参阅图4,图4是本申请实施例提供一种密码设置方法的另一示意流程图,该密码设置方法可以运行在包括处理器的密码设置装置中,比如手机、平板电脑等移动终端;或者是密码输入器,其中该密码输入器上设有可以测量压力的部件和计时器等,该测量压力的部件可例如为压力传感器。如图4所示,该密码设置方法可包括步骤S201至S209。Referring to FIG. 4, FIG. 4 is another schematic flowchart of a method for setting a password according to an embodiment of the present application. The password setting method may be implemented in a password setting device including a processor, such as a mobile terminal, a tablet computer, or the like; or It is a password input device, wherein the password input device is provided with a component for measuring pressure, a timer, etc., and the component for measuring pressure can be, for example, a pressure sensor. As shown in FIG. 4, the password setting method may include steps S201 to S209.
S201、获取用户输入的密码信息,其中,所述密码信息包括密码元素以及输入所述密码元素时产生的计时信息和压力信息。S201. Acquire password information input by a user, where the password information includes a password element and timing information and pressure information generated when the password element is input.
在本实施例中,该密码信息包括密码元素、计时信息和压力信息,其中该 计时信息和压力信息为输入该密码元素时产生的。In the present embodiment, the password information includes a password element, timing information, and pressure information, wherein the timing information and the pressure information are generated when the password element is input.
具体地,该密码元素包括字符、数字或其组合等。该密码元素还包括图案类元素,比如手机或应用常用的九宫格图形等。该计时信息包括时长值。其中,该计时信息具体是指获取用户输入所述密码元素时由于按压等操作在所述密码元素上的持续时间。比如按压密码元素“3”的持续时间为1秒,按压密码元素“4”的持续时间为2秒,该持续时间1秒和2秒即为计时信息。该计时信息的单位还可用其他单位来表示,比如为ms(毫秒)等。其中,该压力信息具体是指获取用户输入所述密码元素时由于按压产生的压力信息。该压力信息包括压力值和压力面积等,还可包括其他类信息,在此不做限定。Specifically, the password element includes characters, numbers, a combination thereof, and the like. The password element also includes pattern elements, such as nine-square grid graphics commonly used in mobile phones or applications. The timing information includes a duration value. The timing information specifically refers to obtaining a duration of operation on the password element due to pressing or the like when the user inputs the password element. For example, the duration of pressing the password element "3" is 1 second, and the duration of pressing the password element "4" is 2 seconds, and the duration of 1 second and 2 seconds is the timing information. The unit of the timing information can also be expressed by other units, such as ms (milliseconds) and the like. The pressure information specifically refers to obtaining pressure information generated by pressing when the user inputs the password element. The pressure information includes a pressure value, a pressure area, and the like, and may include other types of information, which are not limited herein.
S202、识别所述密码元素的类别。S202. Identify a category of the password element.
在本实施例中,识别所述所述密码元素的类别,具体为:识别所述密码元素的类别是文字类还是图案类。根据不同的识别结果执行不同的步骤。In this embodiment, the category of the password element is identified, specifically: whether the category of the password element is a character class or a pattern class. Perform different steps based on different recognition results.
若所述密码元素为文字类,执行步骤S203;若所述密码元素为图案类,执行步骤S204。If the password element is a character class, step S203 is performed; if the password element is a pattern class, step S204 is performed.
S203、若所述密码元素为文字类,获取输入密码元素时产生的计时信息和压力信息。S203. If the password element is a character class, obtain timing information and pressure information generated when the password element is input.
在本实施例中,若用户想设置的密码是文字类密码,比如输入数字或字母,则直接获取用户点击其想设置的文字类密码元素对应到按键或虚拟按键的压力信息以及持续时间,该持续时间即为计时信息。In this embodiment, if the password that the user wants to set is a text type password, such as inputting a number or a letter, directly obtaining the pressure information and duration of the button or virtual button that the user clicks on the text type password element that he wants to set, The duration is the timing information.
S204、若所述密码元素为图案类,将所述密码元素划分为多个子图案。S204. If the password element is a pattern, divide the password element into a plurality of sub-patterns.
在本实施例中,若用户设置密码时选择的是图案类密码元素,如图5所示,移动终端10的显示屏上显示了图案类密码元素,具体为常用的九宫格,用户只需要在该九宫格上绘制一个图案即可完成密码设置。比如在图6中,绘制一个“Z”字形密码元素,但是这种图案类密码元素同样容易被身边人看到而导致密码泄露。该九宫格并不构成对图案类密码元素的限定。In this embodiment, if the password type element is selected when the user sets the password, as shown in FIG. 5, the display type password element is displayed on the display screen of the mobile terminal 10, specifically the commonly used nine-square grid, and the user only needs to A password can be set by drawing a pattern on the nine squares. For example, in Figure 6, a "Z" shaped cryptographic element is drawn, but this cryptographic element is also easily seen by people around it and causes a password leak. The nine-square grid does not constitute a limitation on the pattern-like cryptographic elements.
对于所述密码元素为图案类密码元素时,需要对密码元素做进一步处理,才能获取用户绘制图案时产生的计时信息。因此在本实施例中,将所述密码元素划分为多个子图案,该密码元素划分方法可以根据实际图案进行处理。When the password element is a pattern type password element, the password element needs to be further processed to obtain timing information generated when the user draws the pattern. Therefore, in this embodiment, the cipher element is divided into a plurality of sub-patterns, and the cipher element division method can be processed according to an actual pattern.
譬如,在九宫格上绘制密码元素,可以按照9个格点对该密码元素进行划分,多个子图案可以为格点部分,也可以为格点间部分。比如,用户绘制一个 “Z”字形密码元素,如果多个子图案取格点的话,即把“Z”字形密码元素划分为7个格点部分;如果多个子图案取格点间部分,即把“Z”字形密码元素划分为6个格点间部分。For example, if a cryptographic element is drawn on a nine-square grid, the cryptographic element can be divided according to nine grid points, and the plurality of sub-patterns can be a grid point portion or a grid portion. For example, the user draws a "Z"-shaped cryptographic element. If multiple sub-patterns take a lattice point, the Z-shaped cryptographic element is divided into 7 grid points; if multiple sub-patterns take the inter-point portion, that is, The Z" font password element is divided into six grid points.
S205、获取所述用户输入所述密码元素时在每个所述子图案上产生的计时信息和压力信息。S205. Obtain timing information and pressure information generated on each of the sub-patterns when the user inputs the password element.
在本实施例中,获取输入所述密码元素时在多个所述子图案上产生的计时信息,具体为:用户在绘制图案类密码元素时会在绘制图形的过程中产生一定压力,按照上述方法将该密码元素分割成多个子图案,获取在子图案上产生的计时信息。比如,用户在九宫格上绘制“Z”字形密码元素,可以获取“Z”字形密码元素对应在7个格点部分时长值,也可以获取“Z”字形密码元素对应在6个格点间部分的时长值,如果压力值,该格点间部分的压力值可以为格点间部分产生的多个压力的平均值。In this embodiment, the timing information generated on the plurality of sub-patterns when the password element is input is obtained, specifically: when the user draws the pattern-like password element, a certain pressure is generated in the process of drawing the graphic, according to the above The method divides the cryptographic element into a plurality of sub-patterns to obtain timing information generated on the sub-pattern. For example, if the user draws a "Z"-shaped cryptographic element on the nine-square grid, the user can obtain the duration value of the "Z"-shaped cryptographic element corresponding to the seven grid points, and can also obtain the "Z"-shaped cryptographic element corresponding to the portion between the six grid points. The duration value, if the pressure value, the pressure value of the portion between the grid points may be an average of a plurality of pressures generated between the grid points.
需要说明的是,该多个子图案上产生的计时信息合在一起构成图案类密码元素的计时信息。It should be noted that the timing information generated on the plurality of sub-patterns together constitutes timing information of the pattern-like cryptographic element.
可以理解的是,参照多个子图案上的计时信息,压力信息也可以进行类似的划分,在此不做详细介绍。It can be understood that the pressure information can also be similarly divided by referring to the timing information on the plurality of sub-patterns, and will not be described in detail herein.
S206、根据所述计时信息判断所述密码信息是否有效。S206. Determine, according to the timing information, whether the password information is valid.
在本实施例中,根据计时信息来判断所述密码信息是否有效,是根据计时信息判断获取的密码元素以及与该密码元素相对应的时长值和计时信息是否有效。具体是使用计时信息中的时长值来判断所述密码信息是否有效。根据时长值是落在预设时长范围来判断该时长值是否有效,进而判断时长值对应的密码信息是否有效。In this embodiment, whether the password information is valid according to the timing information is determined according to the timing information, and the acquired password element and the duration value and the timing information corresponding to the password element are valid. Specifically, the duration value in the timing information is used to determine whether the password information is valid. It is determined whether the duration value is valid according to the duration value falling within the preset duration range, and further determining whether the password information corresponding to the duration value is valid.
需要说明的是,在某系实施例中,也可以根据压力信息判断所述密码信息是否有效,其判断方法参照计时信息的判断方法。It should be noted that, in some embodiments, whether the password information is valid may be determined based on the pressure information, and the determination method refers to the method for determining the timing information.
若所述密码信息无效,则执行步骤S207;若所述密码信息有效,则执行步骤S208。If the password information is invalid, step S207 is performed; if the password information is valid, step S208 is performed.
S207、输出用于提示所述用户延长或减小按压时间的提示信息。S207. Output prompt information for prompting the user to extend or decrease the pressing time.
在本实施例中,若所述密码信息无效,说明计时信息中的时长值过长或过短,具体过长或过短可以根据是否预设时长阈值来确定,由此具体输出提示用户增加按压时间或减小按压时间的提示信息。该提示信息可以为语音提示信息, 或文字提示信息。In this embodiment, if the password information is invalid, it indicates that the duration value in the timing information is too long or too short, and the specific length or too short may be determined according to whether the preset duration threshold is used, thereby specifically outputting the prompting user to increase the pressing. Time or a message to reduce the pressing time. The prompt information may be a voice prompt information or a text prompt information.
S208、根据预设规则确定所述计时信息对应的时长等级。S208. Determine a duration level corresponding to the timing information according to a preset rule.
在本实施例中,时长等级包括第一时长等级和第二时长等级,分别对应短按和长按,具体地在该预设时长范围取一个压力阈值为预设时长阈值,通过该预设时长阈值来将预设时长范围划分两个时长等级。时长值小于该预设时长阈值判定处于短按,时长值不小于该预设时长阈值判定处于长按。In this embodiment, the duration level includes a first duration level and a second duration level, respectively corresponding to the short press and the long press, and specifically, the pressure threshold is a preset duration threshold in the preset duration range, and the preset duration is adopted. The threshold is used to divide the preset duration range into two duration levels. If the duration value is less than the preset duration threshold, the determination is that the short press is performed, and the duration value is not less than the preset duration threshold, and the long-press is determined.
S209、基于所述时长等级,将所述密码元素和所述压力信息设置为解锁密码。S209. Set the password element and the pressure information as an unlock password based on the duration level.
在本实施例中,在确定所述计时信息对应的时长等级后,则基于所述时长等级,将所述密码元素和压力信息设置为解锁密码。需要说明的,如密码元素为图案类,该时长等级为图案类密码元素的各个子图案对应的时长等级。In this embodiment, after determining the duration level corresponding to the timing information, the password element and the pressure information are set as the unlock password based on the duration level. It should be noted that, if the password element is a pattern, the duration level is a duration level corresponding to each sub-pattern of the pattern type password element.
因此,该解锁密码不仅包括多个密码元素;同时,不同的密码元素还对应着不同的时长等级和压力信息,比如压力值等。由此,增加了解锁密码的复杂度。因此在用户输入密码的过程中,即使身边有人看见其输入密码元素,比如其输入的图案类密码元素为“Z”,但也不知道该图案类密码元素各个部分对应的时长等级,以及该图案类密码元素对应的计时信息,因此提高了该解锁密码的安全性。Therefore, the unlock password includes not only a plurality of password elements; at the same time, different password elements also correspond to different duration levels and pressure information, such as pressure values. Thereby, the complexity of unlocking the password is increased. Therefore, in the process of the user inputting the password, even if someone sees the input password element, for example, the pattern-type password element that is input is “Z”, the duration level corresponding to each part of the pattern type password element is not known, and the pattern is The timing information corresponding to the class password element, thus improving the security of the unlock password.
需要说明的是,该解锁密码除了包括密码元素和计时信息外,还可加入压力信息,参照上述密码设置方法,同样可以将压力信息及其对应的压力等级,比如轻压和重压,加入在该密码元素中,以增加该解锁密码的复杂度,提高该解锁密码的安全性。It should be noted that the unlock password may include pressure information in addition to the password element and the timing information. Referring to the password setting method, the pressure information and its corresponding pressure level, such as light pressure and heavy pressure, may also be added. In the password element, the complexity of the unlock password is increased to improve the security of the unlock password.
参阅图7,图7是本申请实施例提供的一种密码设置装置的示意框图。如图7所示,该密码设置装置300包括:获取单元301、判断单元302、确定单元303和设置单元304。Referring to FIG. 7, FIG. 7 is a schematic block diagram of a password setting apparatus according to an embodiment of the present application. As shown in FIG. 7, the password setting apparatus 300 includes an acquisition unit 301, a determination unit 302, a determination unit 303, and a setting unit 304.
获取单元301,用于获取用户输入的密码信息,其中,所述密码信息包括密码元素以及输入所述密码元素时产生的计时信息。The obtaining unit 301 is configured to obtain password information input by the user, where the password information includes a password element and timing information generated when the password element is input.
判断单元302,用于根据所述计时信息判断所述密码信息是否有效。The determining unit 302 is configured to determine, according to the timing information, whether the password information is valid.
确定单元303,用于若所述密码信息有效,根据预设规则确定所述计时信息对应的时长等级。The determining unit 303 is configured to determine, according to a preset rule, a duration level corresponding to the timing information, if the password information is valid.
其中,根据预设规则确定所述计时信息对应的时长等级。基于此,确定单元303包括:第二判断子单元3031、第二判定子单元3032和第三判定子单元3033。第二判断子单元3031,用于判断所述时长值是否小于预设时长阈值;第二判定子单元3032,用于若所述时长值小于所述预设时长阈值,则判定所述计时信息对应的时长等级为第一时长等级;第三判定子单元3033,用于若所述时长值不小于所述预设时长阈值,则判定所述计时信息对应的时长等级为第二时长等级。The duration level corresponding to the timing information is determined according to a preset rule. Based on this, the determining unit 303 includes a second judging subunit 3031, a second judging subunit 3032, and a third judging subunit 3033. The second determining sub-unit 3031 is configured to determine whether the duration value is less than a preset duration threshold; the second determining sub-unit 3032 is configured to determine that the timing information corresponds to the duration value is less than the preset duration threshold The duration level is a first duration level; the third determining sub-unit 3033 is configured to determine that the duration level corresponding to the timing information is a second duration level if the duration value is not less than the preset duration threshold.
设置单元304,用于基于所述时长等级,将所述密码信息设置为解锁密码。The setting unit 304 is configured to set the password information as an unlock password based on the duration level.
参阅图8,图8是本申请实施例提供的一种密码设置装置的示意框图。如图8所示,该密码设置装置400包括:获取单元401、识别单元402、信息获取单元403、划分单元404、第一获取单元405、判断单元406、输出单元407、确定单元408和设置单元409。Referring to FIG. 8, FIG. 8 is a schematic block diagram of a password setting apparatus according to an embodiment of the present application. As shown in FIG. 8, the password setting apparatus 400 includes an acquisition unit 401, an identification unit 402, an information acquisition unit 403, a division unit 404, a first acquisition unit 405, a determination unit 406, an output unit 407, a determination unit 408, and a setting unit. 409.
获取单元401,用于获取用户输入的密码信息,其中,所述密码信息包括密码元素以及输入所述密码元素时产生的计时信息和压力信息。The obtaining unit 401 is configured to obtain password information input by the user, where the password information includes a password element and timing information and pressure information generated when the password element is input.
识别单元402,用于识别所述密码元素的类别。The identifying unit 402 is configured to identify a category of the password element.
信息获取单元403,用于若所述密码元素为文字类,获取输入密码元素时产生的计时信息。The information obtaining unit 403 is configured to obtain timing information generated when the password element is input if the password element is a character class.
划分单元404,用于若所述密码元素为图案类,将所述密码元素划分为多个子图案。The dividing unit 404 is configured to divide the password element into a plurality of sub-patterns if the password element is a pattern class.
第一获取单元405,用于获取所述用户输入所述密码元素时在每个所述子图案上产生的计时信息。The first obtaining unit 405 is configured to acquire timing information generated on each of the sub-patterns when the user inputs the password element.
判断单元406,用于根据所述计时信息判断所述密码信息是否有效。The determining unit 406 is configured to determine, according to the timing information, whether the password information is valid.
输出单元407、输出用于提示所述用户延长或减小按压时间的提示信息。The output unit 407 outputs prompt information for prompting the user to extend or decrease the pressing time.
确定单元408,用于根据预设规则确定所述计时信息对应的时长等级。The determining unit 408 is configured to determine a duration level corresponding to the timing information according to a preset rule.
设置单元409,用于基于所述时长等级,将所述密码元素和压力信息设置为解锁密码。The setting unit 409 is configured to set the password element and the pressure information as an unlock password based on the duration level.
所属领域的技术人员可以清楚地了解到,为了描述的方便和简洁,上述描述的装置和单元的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。A person skilled in the art can clearly understand that, for the convenience and brevity of the description, the specific working process of the device and the unit described above can refer to the corresponding process in the foregoing method embodiment, and details are not described herein again.
上述装置可以实现为一种计算机程序的形式,计算机程序可以在如图9所 示的终端上运行。The above apparatus can be implemented in the form of a computer program which can be run on a terminal as shown in FIG.
参阅图9,图9是本申请一实施例提供的一种终端示意框图。如图9所示的本实施例中的终端可以包括:一个或多个处理器801;一个或多个输入设备802,一个或多个输出设备803和存储器804。上述处理器801、输入设备802、输出设备803和存储器804通过总线805连接。存储器802用于存储指令,处理器801用于执行存储器802存储的指令。其中,处理器801用于执行上述实施例提供的密码设置方法对应的步骤。Referring to FIG. 9, FIG. 9 is a schematic block diagram of a terminal according to an embodiment of the present application. The terminal in this embodiment as shown in FIG. 9 may include one or more processors 801; one or more input devices 802, one or more output devices 803, and a memory 804. The above processor 801, input device 802, output device 803, and memory 804 are connected by a bus 805. The memory 802 is for storing instructions, and the processor 801 is for executing instructions stored by the memory 802. The processor 801 is configured to perform the steps corresponding to the password setting method provided by the foregoing embodiment.
应当理解,在本申请实施例中,所称处理器801可以是中央处理单元(Central Processing Unit,CPU),该处理器还可以是其他通用处理器、数字信号处理器(Digital Signal Processor,DSP)、专用集成电路(Application Specific Integrated Circuit,ASIC)、现成可编程门阵列(Field-Programmable Gate Array,FPGA)或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件等。通用处理器可以是微处理器或者该处理器也可以是任何常规的处理器等。It should be understood that, in the embodiment of the present application, the processor 801 may be a central processing unit (CPU), and the processor may also be another general-purpose processor, a digital signal processor (DSP). , Application Specific Integrated Circuit (ASIC), Field-Programmable Gate Array (FPGA) or other programmable logic device, discrete gate or transistor logic device, discrete hardware component, etc. The general purpose processor may be a microprocessor or the processor or any conventional processor or the like.
输入设备802可以包括触控板等,输出设备803可以包括显示器(LCD等)、扬声器等。The input device 802 can include a touchpad or the like, and the output device 803 can include a display (LCD or the like), a speaker, and the like.
该存储器804可以包括非易失性存储介质和内存储器。非易失性存储介质可存储操作系统和存储用于实现数据处理方法的程序指令。内存储器为非易失性存储介质中的程序指令的运行提供环境。处理器801用于提供计算和控制能力,支撑整个数据处理设备的运行。The memory 804 can include a non-volatile storage medium and an internal memory. The non-volatile storage medium can store an operating system and store program instructions for implementing a data processing method. The internal memory provides an environment for the operation of program instructions in a non-volatile storage medium. The processor 801 is used to provide computing and control capabilities to support the operation of the entire data processing device.
可以理解的是,本实施例中的终端,除了包括处理器801、输入设备802、输出设备803和存储器804,还可包括其他,比如传感器,在本实施例中,尤其涉及到压力传感器,用于测量用于按压时产生的压力。It can be understood that the terminal in this embodiment, in addition to the processor 801, the input device 802, the output device 803, and the memory 804, may also include other components, such as sensors. In this embodiment, the pressure sensor is especially used. To measure the pressure generated when pressed.
具体实现中,本申请实施例中所描述的处理器801、输入设备802、输出设备803可执行本申请实施例提供的密码设置方法的第一实施例和第二实施例中所描述的实现方式,也可执行本申请实施例所描述的装置的实现方式,在此不再赘述。In a specific implementation, the processor 801, the input device 802, and the output device 803, which are described in the embodiments of the present application, may be implemented in the first embodiment and the second embodiment in the password setting method provided by the embodiment of the present application. The implementation of the apparatus described in the embodiments of the present application may also be implemented, and details are not described herein again.
在本申请的另一实施例中提供一种计算机可读存储介质,所述计算机可读存储介质存储有计算机程序,所述计算机程序被处理器执行时实现上述实施例提供的密码设置方法对应的步骤。In another embodiment of the present application, a computer readable storage medium is stored, where the computer readable storage medium stores a computer program, and when the computer program is executed by the processor, the password setting method provided by the foregoing embodiment is implemented. step.
所述计算机可读存储介质可以是前述任一实施例所述的终端的内部存储单元,例如终端的硬盘。所述计算机可读存储介质也可以是所述终端的外部存储设备,例如所述终端上配备的插接式硬盘,智能存储卡(Smart Media Card,SMC),安全数字(Secure Digital,SD)卡,闪存卡(Flash Card)等。进一步地,所述计算机可读存储介质还可以既包括所述终端的内部存储单元也包括外部存储设备。所述计算机可读存储介质用于存储所述计算机程序以及所述终端所需的其他程序和数据。所述计算机可读存储介质还可以用于暂时地存储已经输出或者将要输出的数据。The computer readable storage medium may be an internal storage unit of the terminal described in any of the foregoing embodiments, such as a hard disk of the terminal. The computer readable storage medium may also be an external storage device of the terminal, such as a plug-in hard disk equipped on the terminal, a smart memory card (SMC), and a Secure Digital (SD) card. , Flash Card, etc. Further, the computer readable storage medium may also include both an internal storage unit of the terminal and an external storage device. The computer readable storage medium is for storing the computer program and other programs and data required by the terminal. The computer readable storage medium can also be used to temporarily store data that has been output or is about to be output.
本领域普通技术人员可以意识到,结合本文中所公开的实施例描述的各示例的单元及算法步骤,能够以电子硬件、计算机软件或者二者的结合来实现,为了清楚地说明硬件和软件的可互换性,在上述说明中已经按照功能一般性地描述了各示例的组成及步骤。这些功能究竟以硬件还是软件方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本申请的范围。Those of ordinary skill in the art will appreciate that the elements and algorithm steps of the various examples described in connection with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of both, for clarity of hardware and software. Interchangeability, the composition and steps of the various examples have been generally described in terms of function in the above description. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the solution. A person skilled in the art can use different methods to implement the described functions for each particular application, but such implementation should not be considered to be beyond the scope of the present application.
在本申请所提供的几个实施例中,应该理解到,所揭露的装置和方法,可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,所述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另外,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口、装置或单元的间接耦合或通信连接,也可以是电的,机械的或其它的形式连接。In the several embodiments provided by the present application, it should be understood that the disclosed apparatus and method may be implemented in other manners. For example, the device embodiments described above are merely illustrative. For example, the division of the unit is only a logical function division. In actual implementation, there may be another division manner, for example, multiple units or components may be combined or Can be integrated into another system, or some features can be ignored or not executed. In addition, the mutual coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection through some interface, device or unit, or an electrical, mechanical or other form of connection.
所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本申请实施例方案的目的。The units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, may be located in one place, or may be distributed to multiple network units. Some or all of the units may be selected according to actual needs to achieve the objectives of the embodiments of the present application.
另外,在本申请各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以是两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above integrated unit can be implemented in the form of hardware or in the form of a software functional unit.
所述集成的单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分,或者该技术方案的全部或部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本申请各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(ROM,Read-Only Memory)、磁碟或者光盘等各种可以存储程序代码的介质。The integrated unit, if implemented in the form of a software functional unit and sold or used as a standalone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present application may be in essence or part of the contribution to the prior art, or all or part of the technical solution may be embodied in the form of a software product stored in a storage medium. A number of instructions are included to cause a computer device (which may be a personal computer, server, or network device, etc.) to perform all or part of the steps of the methods described in various embodiments of the present application. The foregoing storage medium includes: a U disk, a removable hard disk, a read-only memory (ROM), a magnetic disk, or an optical disk, and the like, which can store program codes.
以上所述,仅为本申请的具体实施方式,但本申请的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本申请揭露的技术范围内,可轻易想到各种等效的修改或替换,这些修改或替换都应涵盖在本申请的保护范围之内。因此,本申请的保护范围应以权利要求的保护范围为准。The foregoing is only a specific embodiment of the present application, but the scope of protection of the present application is not limited thereto, and any equivalents can be easily conceived by those skilled in the art within the technical scope disclosed in the present application. Modifications or substitutions are intended to be included within the scope of the present application. Therefore, the scope of protection of this application should be determined by the scope of protection of the claims.

Claims (20)

  1. 一种密码设置方法,其包括:A password setting method, comprising:
    获取用户输入的密码信息,其中,所述密码信息包括密码元素以及输入所述密码元素时产生的计时信息;Obtaining password information input by the user, where the password information includes a password element and timing information generated when the password element is input;
    根据所述计时信息判断所述密码信息是否有效;Determining, according to the timing information, whether the password information is valid;
    若所述密码信息有效,根据预设规则确定所述计时信息对应的时长等级;If the password information is valid, determining a duration level corresponding to the timing information according to a preset rule;
    基于所述时长等级,将所述密码信息设置为解锁密码。The password information is set as an unlock password based on the duration level.
  2. 根据权利要求1所述的密码设置方法,其中,所述计时信息包括时长值;The password setting method according to claim 1, wherein the timing information includes a duration value;
    根据所述计时信息判断所述密码信息是否有效,包括:Determining whether the password information is valid according to the timing information includes:
    判断所述时长值是否处于预设时长范围内;Determining whether the duration value is within a preset duration;
    若所述时长值处于所述预设时长范围内,则判定所述密码信息有效。If the duration value is within the preset duration, it is determined that the password information is valid.
  3. 根据权利要求2所述的密码设置方法,其中,所述根据预设规则确定所述计时信息对应的时长等级,包括:The password setting method according to claim 2, wherein the determining the duration level corresponding to the timing information according to the preset rule comprises:
    判断所述时长值是否小于预设时长阈值;Determining whether the duration value is less than a preset duration threshold;
    若所述时长值小于所述预设时长阈值,则判定所述计时信息对应的时长等级为第一时长等级;If the duration value is less than the preset duration threshold, determining that the duration level corresponding to the timing information is a first duration level;
    若所述时长值不小于所述预设时长阈值,则判定所述计时信息对应的时长等级为第二时长等级。If the duration value is not less than the preset duration threshold, it is determined that the duration level corresponding to the timing information is the second duration level.
  4. 根据权利要求1所述的密码设置方法,其中,所述获取用户输入的密码信息之后,还包括:The password setting method according to claim 1, wherein after the obtaining the password information input by the user, the method further comprises:
    识别所述密码元素的类别;Identifying a category of the password element;
    若所述密码元素为图案类,将所述密码元素划分为多个子图案;If the password element is a pattern class, dividing the password element into a plurality of sub-patterns;
    获取所述用户输入所述密码元素时在每个所述子图案上产生的计时信息。Obtaining timing information generated on each of the sub-patterns when the user inputs the cryptographic element.
  5. 根据权利要求1所述的密码设置方法,其中,所述密码信息还包括所述用户输入所述密码元素时产生的压力信息;The password setting method according to claim 1, wherein the password information further includes pressure information generated when the user inputs the password element;
    所述基于所述时长等级,将所述密码信息设置为解锁密码,包括:Setting the password information as an unlock password based on the duration level includes:
    基于所述时长等级,将所述密码元素和所述压力信息设置为解锁密码。The password element and the pressure information are set as an unlock password based on the duration level.
  6. 根据权利要求1所述的密码设置方法,其中,所述获取用户输入的密码信息,包括:获取用户输入所述密码元素时由按压操作在所述密码元素上的持续时间。The password setting method according to claim 1, wherein the obtaining the password information input by the user comprises: obtaining a duration of the pressing operation on the password element when the user inputs the password element.
  7. 根据权利要求1所述的密码设置方法,其中,若所述密码信息无效,输出用于提示所述用户延长或减小按压时间的提示信息。The password setting method according to claim 1, wherein if the password information is invalid, prompt information for prompting the user to extend or decrease the pressing time is output.
  8. 一种密码设置装置,其包括:A password setting device includes:
    获取单元,用于获取用户输入的密码信息,其中,所述密码信息包括密码元素以及输入所述密码元素时产生的计时信息;An obtaining unit, configured to obtain password information input by a user, where the password information includes a password element and timing information generated when the password element is input;
    判断单元,用于根据所述计时信息判断所述密码信息是否有效;a determining unit, configured to determine, according to the timing information, whether the password information is valid;
    确定单元,用于若所述密码信息有效,根据预设规则确定所述计时信息对应的时长等级;a determining unit, configured to determine, according to a preset rule, a duration level corresponding to the timing information, if the password information is valid;
    设置单元,用于基于所述时长等级,将所述密码信息设置为解锁密码。And a setting unit configured to set the password information as an unlock password based on the duration level.
  9. 根据权利要求8所述的密码设置装置,其中,所述计时信息包括时长值;The password setting device according to claim 8, wherein said timing information includes a duration value;
    所述判断单元包括:The determining unit includes:
    第一判断子单元,用于判断所述时长值是否处于预设时长范围内;a first determining subunit, configured to determine whether the duration value is within a preset duration;
    第一判定子单元,用于若所述时长值处于所述预设时长范围内,则判定所述密码信息有效;a first determining subunit, configured to determine that the password information is valid if the duration value is within the preset duration;
    所述确定单元包括:The determining unit includes:
    第二判断子单元,用于判断所述时长值是否小于预设时长阈值;a second determining subunit, configured to determine whether the duration value is less than a preset duration threshold;
    第二判定子单元,用于若所述时长值小于所述预设时长阈值,则判定所述计时信息对应的时长等级为第一时长等级;a second determining subunit, configured to determine that the duration level corresponding to the timing information is a first duration level if the duration value is less than the preset duration threshold;
    第三判定子单元,用于若所述时长值不小于所述预设时长阈值,则判定所述计时信息对应的时长等级为第二时长等级。The third determining subunit is configured to determine that the duration level corresponding to the timing information is a second duration level if the duration value is not less than the preset duration threshold.
  10. 根据权利要求8所述的密码设置装置,其中,还包括:The password setting device according to claim 8, further comprising:
    识别单元,用于识别所述密码元素的类别;An identification unit, configured to identify a category of the password element;
    划分单元,用于若所述密码元素为图案类,将所述密码元素划分为多个子图案;a dividing unit, configured to divide the password element into a plurality of sub-patterns if the password element is a pattern class;
    第一获取单元,用于获取所述用户输入所述密码元素时在每个所述子图案上产生的计时信息。And a first acquiring unit, configured to acquire timing information generated on each of the sub-patterns when the user inputs the password element.
  11. 一种终端,其包括处理器、输入设备、输出设备和存储器,所述处理器、输入设备、输出设备和存储器相互连接,其中,所述存储器用于存储应用程序代码,所述处理器用于执行所述程序代码以实现如下步骤:A terminal comprising a processor, an input device, an output device, and a memory, the processor, the input device, the output device, and the memory being interconnected, wherein the memory is for storing application code, the processor is configured to execute The program code implements the following steps:
    获取用户输入的密码信息,其中,所述密码信息包括密码元素以及输入所 述密码元素时产生的计时信息;Obtaining password information input by the user, wherein the password information includes a password element and timing information generated when the password element is input;
    根据所述计时信息判断所述密码信息是否有效;Determining, according to the timing information, whether the password information is valid;
    若所述密码信息有效,根据预设规则确定所述计时信息对应的时长等级;If the password information is valid, determining a duration level corresponding to the timing information according to a preset rule;
    基于所述时长等级,将所述密码信息设置为解锁密码。The password information is set as an unlock password based on the duration level.
  12. 根据权利要求11所述的终端,其中,所述计时信息包括时长值;所述处理器用于执行所述程序代码以实现所述根据所述计时信息判断所述密码信息是否有效时,具体实现如下步骤:The terminal according to claim 11, wherein the timing information includes a duration value; and the processor is configured to execute the program code to implement whether the password information is valid according to the timing information, and specifically implemented as follows step:
    判断所述时长值是否处于预设时长范围内;Determining whether the duration value is within a preset duration;
    若所述时长值处于所述预设时长范围内,则判定所述密码信息有效。If the duration value is within the preset duration, it is determined that the password information is valid.
  13. 根据权利要求12所述的终端,其中,所述处理器用于执行所述程序代码以实现所述根据预设规则确定所述计时信息对应的时长等级时,具体实现如下步骤:The terminal according to claim 12, wherein when the processor is configured to execute the program code to determine the duration level corresponding to the timing information according to a preset rule, the following steps are specifically implemented:
    判断所述时长值是否小于预设时长阈值;Determining whether the duration value is less than a preset duration threshold;
    若所述时长值小于所述预设时长阈值,则判定所述计时信息对应的时长等级为第一时长等级;If the duration value is less than the preset duration threshold, determining that the duration level corresponding to the timing information is a first duration level;
    若所述时长值不小于所述预设时长阈值,则判定所述计时信息对应的时长等级为第二时长等级。If the duration value is not less than the preset duration threshold, it is determined that the duration level corresponding to the timing information is the second duration level.
  14. 根据权利要求11所述的终端,其中,所述处理器用于执行所述程序代码以实现所述获取用户输入的密码信息之后,还实现如下步骤:The terminal according to claim 11, wherein after the processor is configured to execute the program code to implement the obtaining password information input by a user, the following steps are further implemented:
    识别所述密码元素的类别;Identifying a category of the password element;
    若所述密码元素为图案类,将所述密码元素划分为多个子图案;If the password element is a pattern class, dividing the password element into a plurality of sub-patterns;
    获取所述用户输入所述密码元素时在每个所述子图案上产生的计时信息。Obtaining timing information generated on each of the sub-patterns when the user inputs the cryptographic element.
  15. 根据权利要求11所述的终端,其中,所述密码信息还包括所述用户输入所述密码元素时产生的压力信息;所述处理器用于执行所述程序代码以实现所述基于所述时长等级将所述密码信息设置为解锁密码时,具体实现:The terminal of claim 11, wherein the password information further comprises pressure information generated when the user inputs the password element; the processor is configured to execute the program code to implement the level based on the duration When the password information is set as an unlock password, the specific implementation is as follows:
    基于所述时长等级,将所述密码元素和所述压力信息设置为解锁密码。The password element and the pressure information are set as an unlock password based on the duration level.
  16. 一种计算机可读存储介质,其中,所述计算机存储介质存储有计算机程序,所述计算机程序被处理器执行以实现如下步骤:A computer readable storage medium, wherein the computer storage medium stores a computer program, the computer program being executed by a processor to implement the following steps:
    获取用户输入的密码信息,其中,所述密码信息包括密码元素以及输入所述密码元素时产生的计时信息;Obtaining password information input by the user, where the password information includes a password element and timing information generated when the password element is input;
    根据所述计时信息判断所述密码信息是否有效;Determining, according to the timing information, whether the password information is valid;
    若所述密码信息有效,根据预设规则确定所述计时信息对应的时长等级;If the password information is valid, determining a duration level corresponding to the timing information according to a preset rule;
    基于所述时长等级,将所述密码信息设置为解锁密码。The password information is set as an unlock password based on the duration level.
  17. 根据权利要求16所述的计算机可读存储介质,其中,所述计时信息包括时长值;所述计算机程序被处理器执行以实现所述根据所述计时信息判断所述密码信息是否有效时,具体实现如下步骤:A computer readable storage medium according to claim 16, wherein said timing information includes a duration value; said computer program being executed by said processor to effect said determining whether said password information is valid based on said timing information, Implement the following steps:
    判断所述时长值是否处于预设时长范围内;Determining whether the duration value is within a preset duration;
    若所述时长值处于所述预设时长范围内,则判定所述密码信息有效。If the duration value is within the preset duration, it is determined that the password information is valid.
  18. 根据权利要求17所述的计算机可读存储介质,其中,所述计算机程序被处理器执行以实现所述根据预设规则确定所述计时信息对应的时长等级时,具体实现如下步骤:The computer readable storage medium according to claim 17, wherein when the computer program is executed by the processor to implement the determining the duration level corresponding to the timing information according to the preset rule, the following steps are specifically implemented:
    判断所述时长值是否小于预设时长阈值;Determining whether the duration value is less than a preset duration threshold;
    若所述时长值小于所述预设时长阈值,则判定所述计时信息对应的时长等级为第一时长等级;If the duration value is less than the preset duration threshold, determining that the duration level corresponding to the timing information is a first duration level;
    若所述时长值不小于所述预设时长阈值,则判定所述计时信息对应的时长等级为第二时长等级。If the duration value is not less than the preset duration threshold, it is determined that the duration level corresponding to the timing information is the second duration level.
  19. 根据权利要求16所述的计算机可读存储介质,其中,所述计算机程序被处理器执行以实现所述获取用户输入的密码信息之后,还实现如下步骤:The computer readable storage medium of claim 16, wherein the computer program is executed by the processor to implement the obtaining of the password information input by the user, and further implementing the following steps:
    识别所述密码元素的类别;Identifying a category of the password element;
    若所述密码元素为图案类,将所述密码元素划分为多个子图案;If the password element is a pattern class, dividing the password element into a plurality of sub-patterns;
    获取所述用户输入所述密码元素时在每个所述子图案上产生的计时信息。Obtaining timing information generated on each of the sub-patterns when the user inputs the cryptographic element.
  20. 根据权利要求16所述的计算机可读存储介质,其中,所述密码信息还包括所述用户输入所述密码元素时产生的压力信息;所述计算机程序被处理器执行以实现所述基于所述时长等级将所述密码信息设置为解锁密码时,具体实现:The computer readable storage medium of claim 16, wherein the password information further comprises pressure information generated when the user inputs the cryptographic element; the computer program being executed by a processor to implement the When the duration information sets the password information as an unlock password, the specific implementation is as follows:
    基于所述时长等级,将所述密码元素和所述压力信息设置为解锁密码。The password element and the pressure information are set as an unlock password based on the duration level.
PCT/CN2018/083853 2017-07-24 2018-04-20 Password setting method and apparatus, terminal and computer readable storage medium WO2019019717A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201710607663.3A CN108256300A (en) 2017-07-24 2017-07-24 A kind of cipher set-up method, device and computer readable storage medium
CN201710607663.3 2017-07-24

Publications (1)

Publication Number Publication Date
WO2019019717A1 true WO2019019717A1 (en) 2019-01-31

Family

ID=62721156

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2018/083853 WO2019019717A1 (en) 2017-07-24 2018-04-20 Password setting method and apparatus, terminal and computer readable storage medium

Country Status (2)

Country Link
CN (1) CN108256300A (en)
WO (1) WO2019019717A1 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111460533A (en) * 2020-03-03 2020-07-28 张家口浩扬科技有限公司 Anti-peeping cipher device and cipher anti-peeping method
CN113111318A (en) * 2021-03-29 2021-07-13 盛林妹 Authentication method, equipment for realizing authentication and intelligent lock

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105159557A (en) * 2015-08-27 2015-12-16 广东欧珀移动通信有限公司 Generation method of unlocking password, and mobile terminal
CN105631306A (en) * 2015-11-30 2016-06-01 东莞酷派软件技术有限公司 Password switching method and device as well as terminal
CN105786370A (en) * 2014-12-23 2016-07-20 阿里巴巴集团控股有限公司 Method and device for unlocking user interface
CN106126987A (en) * 2016-06-16 2016-11-16 青岛海信移动通信技术股份有限公司 A kind of unlocking method and a device of mobile device
CN106570359A (en) * 2015-10-09 2017-04-19 中兴通讯股份有限公司 Input method and device, and user equipment

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101751525A (en) * 2008-12-04 2010-06-23 深圳富泰宏精密工业有限公司 Keying behavior recognition system and method
CN107395877B (en) * 2015-08-27 2021-07-30 Oppo广东移动通信有限公司 Terminal false touch prevention method and terminal
CN106687969B (en) * 2015-10-08 2019-12-06 华为技术有限公司 method and terminal equipment for protecting privacy information
CN105404460A (en) * 2015-11-27 2016-03-16 上海与德通讯技术有限公司 Key input detection method and module

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105786370A (en) * 2014-12-23 2016-07-20 阿里巴巴集团控股有限公司 Method and device for unlocking user interface
CN105159557A (en) * 2015-08-27 2015-12-16 广东欧珀移动通信有限公司 Generation method of unlocking password, and mobile terminal
CN106570359A (en) * 2015-10-09 2017-04-19 中兴通讯股份有限公司 Input method and device, and user equipment
CN105631306A (en) * 2015-11-30 2016-06-01 东莞酷派软件技术有限公司 Password switching method and device as well as terminal
CN106126987A (en) * 2016-06-16 2016-11-16 青岛海信移动通信技术股份有限公司 A kind of unlocking method and a device of mobile device

Also Published As

Publication number Publication date
CN108256300A (en) 2018-07-06

Similar Documents

Publication Publication Date Title
EP3349424B1 (en) Method for protecting privacy information and terminal device
KR101661258B1 (en) Secure input via a touchscreen
WO2017092437A1 (en) Pressure-sensitive touch technique-based screen unlocking method and device, and terminal
CN108400868B (en) Seed key storage method and device and mobile terminal
EP2869174A1 (en) Method and device for text input and display of intelligent terminal
US20190004828A1 (en) Application loading method, user terminal, and storage medium
US9576411B2 (en) Apparatus and method for providing security keypad through shift of keypad
WO2016070753A1 (en) Method for invoking local keyboard on html page in user terminal device and apparatus thereof
WO2017032128A1 (en) Terminal unlocking method and terminal
WO2017032127A1 (en) Pattern unlocking method and terminal
CN106355059A (en) Password input method and terminal
WO2019047148A1 (en) Password verification method, terminal, and computer readable storage medium
TWI660319B (en) Method, device, terminal and storage medium for data verification
WO2019019717A1 (en) Password setting method and apparatus, terminal and computer readable storage medium
US20170277917A1 (en) Method for operating soft keyboard, terminal and computer readable storage medium
US20170249450A1 (en) Device and Method for Authenticating a User
CN103795849A (en) Device and method for executing operation on private contact person in portable terminal
CN106778344B (en) A kind of data permission control method and terminal
WO2017000343A1 (en) Fingerprint unlocking method and terminal
KR101319941B1 (en) User authentication system by using touch pattern
US9274703B2 (en) Method for inputting instruction and portable electronic device and computer readable recording medium
KR101838400B1 (en) User authentication method and apparatus for recognizing pattern information from unstructured layout
WO2020140395A1 (en) Application login method and apparatus for electronic device, and electronic device and medium
WO2017008633A1 (en) Password identification method and device
WO2019019600A1 (en) Password setting method and apparatus, and computer readable storage medium

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 18837837

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 18837837

Country of ref document: EP

Kind code of ref document: A1