CN113127842A - Password generation method and device, electronic equipment and storage medium - Google Patents

Password generation method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN113127842A
CN113127842A CN202110536818.5A CN202110536818A CN113127842A CN 113127842 A CN113127842 A CN 113127842A CN 202110536818 A CN202110536818 A CN 202110536818A CN 113127842 A CN113127842 A CN 113127842A
Authority
CN
China
Prior art keywords
touch
password
sliding
touch operation
determining
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202110536818.5A
Other languages
Chinese (zh)
Inventor
杨泽伟
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Netease Hangzhou Network Co Ltd
Original Assignee
Netease Hangzhou Network Co Ltd
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 Netease Hangzhou Network Co Ltd filed Critical Netease Hangzhou Network Co Ltd
Priority to CN202110536818.5A priority Critical patent/CN113127842A/en
Publication of CN113127842A publication Critical patent/CN113127842A/en
Pending legal-status Critical Current

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
    • G06F21/36User authentication by graphic or iconic representation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0487Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
    • G06F3/0488Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures

Abstract

The embodiment of the invention provides a password generation method, a password generation device, electronic equipment and a storage medium, wherein the method comprises the following steps: the password interface is displayed through a graphical user interface of the electronic terminal, the terminal can respond to at least one touch operation acting on the password interface, determine an operation type corresponding to the touch operation, acquire a signal identifier corresponding to each sliding operation according to the operation type, and then generate a password aiming at the at least one touch operation according to the signal identifier, so that the password is set through the touch operations of different types, the terminal determines the signal identifier based on the operation type and processes the signal identifier to obtain a corresponding password, the password is set through simple touch operations, the password setting is carried out by utilizing the touch operations of different types to correspond to different signal identifiers while the complexity of the password setting is reduced, the safety of the password is effectively guaranteed, the unlocking can be realized through the touch operations by a user, and the unlocking effectiveness is improved.

Description

Password generation method and device, electronic equipment and storage medium
Technical Field
The present invention relates to the field of information technologies, and in particular, to a method and an apparatus for generating a password, an electronic device, and a computer-readable storage medium.
Background
With the development of the intelligent mobile terminal, the screen unlocking operation also becomes diversified. The screen locking and unlocking are the most basic operation functions of the mobile terminal, and under the conditions of strange environments or no use of the mobile terminal, if a user does not want others to see the information of the mobile terminal, the screen can be quickly closed by pressing the screen locking key, so that the terminal information is prevented from being leaked, and the privacy safety of the user is effectively guaranteed.
The current screen unlocking mode for the mobile terminal may include: password unlocking, pattern unlocking, fingerprint unlocking, face unlocking and the like. However, these screen unlocking methods all have corresponding disadvantages, for example, password leakage is likely to occur due to the simple and crude unlocking method and easy peeping in password unlocking; due to the fact that the pattern unlocking is realized by forming the corresponding pattern based on multipoint connection, on one hand, a too complex connecting line pattern cannot be stored, on the other hand, in the process of drawing the unlocking pattern, the situation that the unlocking fails due to the connecting line terminal is easy to occur, and the unlocking experience is low; the fingerprint unlocking is easy to cause low success rate of fingerprint identification due to the fact that the fingerprint of a user is worn or sweaty hands and the like, and the terminal unlocking is influenced; the face unlocking is easily limited by the environment, so that the face recognition rate is low, and the like. Therefore, in the conventional terminal screen unlocking method, the password is likely to be leaked, and the unlocking method has certain limitation.
Disclosure of Invention
The embodiment of the invention provides a password generation method and device, electronic equipment and a computer readable storage medium, and aims to solve or partially solve the problems that in the prior art, a password of a terminal is easy to leak and an unlocking mode is limited.
The embodiment of the invention discloses a password generation method, wherein the content displayed through a graphical user interface of an electronic terminal at least comprises a password interface, and the method comprises the following steps:
responding at least one touch operation acting on the password interface, and determining an operation type corresponding to each touch operation;
acquiring a signal identifier corresponding to each touch operation according to the operation type;
and generating a password aiming at the at least one touch operation according to the signal identification.
Optionally, the determining an operation type corresponding to each touch operation includes:
obtaining operation parameters of each touch operation;
and determining the operation type corresponding to the touch operation by adopting the operation parameters.
Optionally, the operation parameter at least includes at least one of a touch duration, a touch pressure, a touch point moving distance, and a touch point moving direction.
Optionally, the determining, by using the operation parameter, an operation type corresponding to the touch operation includes:
and if the touch duration of the touch operation is greater than or equal to a preset duration threshold, determining that the touch operation is a long-press touch operation.
Optionally, the determining, by using the operation parameter, an operation type corresponding to the touch operation includes:
and if the touch pressure of the touch operation is greater than or equal to a preset pressure threshold, determining that the touch operation is a re-pressing touch operation.
Optionally, the determining, by using the operation parameter, an operation type corresponding to the touch operation includes:
and if the moving distance of the touch point of the touch operation is greater than or equal to a preset distance threshold, determining that the touch operation is a sliding operation.
Optionally, the sliding operation includes a longitudinal sliding operation and a lateral sliding operation, and the determining that the touch operation is the sliding operation includes:
determining a sliding angle of the sliding operation according to the moving direction of the touch point;
if the sliding angle is larger than a preset angle threshold value, determining that the sliding operation is a longitudinal sliding operation;
and if the sliding angle is smaller than a preset angle threshold value, determining that the sliding operation is a transverse sliding operation.
Optionally, the determining a sliding angle of the sliding operation according to the moving direction of the touch point includes:
acquiring a first coordinate of a starting touch point and a second coordinate of an ending touch point in the moving direction of the touch point;
and calculating the sliding angle of the sliding operation by adopting the first coordinate and the second coordinate.
Optionally, the obtaining a sliding angle of the sliding operation includes:
and taking an included angle between the moving direction of the touch point and a preset coordinate axis as a sliding angle of the sliding operation.
Optionally, the operation types of the touch operations at least include a long-press touch operation, a re-press touch operation, and a sliding operation, and the obtaining of the signal identifier corresponding to each touch operation according to the operation types includes at least one of:
acquiring a first signal identifier corresponding to the long press touch operation;
acquiring a second signal identifier corresponding to the touch re-pressing operation; and the number of the first and second groups,
and acquiring a third signal identifier corresponding to the sliding operation.
Optionally, the obtaining, according to the operation type, a signal identifier corresponding to each touch operation includes:
and acquiring a longitudinal signal identifier corresponding to the longitudinal sliding operation and a transverse signal identifier corresponding to the transverse sliding operation.
Optionally, the generating a password for the at least one touch operation according to the signal identifier includes:
acquiring the trigger time of the signal identifier;
calculating a trigger time interval between two adjacent touch operations by adopting the trigger time;
dividing the signal identification by adopting the trigger time interval to obtain at least one password symbol;
and combining at least one password symbol to generate a password aiming at the at least one touch operation.
Optionally, the dividing the signal identifier by using the trigger time interval to obtain at least one password symbol includes:
if the triggering time interval between two adjacent touch operations is smaller than or equal to a preset time interval, judging that the signal identifications corresponding to the two adjacent touch operations belong to the same password symbol;
if the triggering time interval between two adjacent touch operations is greater than or equal to a preset time interval, judging that the signal identifications corresponding to the two adjacent touch operations belong to different password symbols;
and combining the signal identifications belonging to the same code symbol to generate a corresponding code symbol.
Optionally, the password interface includes an operation area, and the determining, in response to a touch operation performed on the password interface, an operation type corresponding to the touch operation includes:
and responding at least one touch operation acting on the operation area, and determining the operation type corresponding to each touch operation.
Optionally, the password interface further includes an indication area, and the indication area is used for displaying signal identifiers corresponding to different password symbols.
The embodiment of the invention also discloses a password generating device, the content displayed through the graphical user interface of the electronic terminal at least comprises a password interface, and the device comprises:
the operation type determining module is used for responding at least one touch operation acting on the password interface and determining an operation type corresponding to each touch operation;
the signal identifier acquisition module is used for acquiring a signal identifier corresponding to each touch operation according to the operation type;
and the password generating module is used for generating a password aiming at the at least one touch operation according to the signal identification.
Optionally, the operation type determining module includes:
the operation parameter acquisition submodule is used for acquiring operation parameters of the touch operations;
and the operation type determining submodule is used for determining the operation type corresponding to the touch operation by adopting the operation parameters.
Optionally, the operation parameter at least includes at least one of a touch duration, a touch pressure, a touch point moving distance, and a touch point moving direction.
Optionally, the operation type determining sub-module is specifically configured to:
and if the touch duration of the touch operation is greater than or equal to a preset duration threshold, determining that the touch operation is a long-press touch operation.
Optionally, the operation type determining sub-module is specifically configured to:
and if the touch pressure of the touch operation is greater than or equal to a preset pressure threshold, determining that the touch operation is a re-pressing touch operation.
Optionally, the operation type determining sub-module is specifically configured to:
and if the moving distance of the touch point of the touch operation is greater than or equal to a preset distance threshold, determining that the touch operation is a sliding operation.
Optionally, the sliding operation includes a longitudinal sliding operation and a lateral sliding operation, and the operation type determination sub-module is specifically configured to:
determining a sliding angle of the sliding operation according to the moving direction of the touch point;
if the sliding angle is larger than a preset angle threshold value, determining that the sliding operation is a longitudinal sliding operation;
and if the sliding angle is smaller than a preset angle threshold value, determining that the sliding operation is a transverse sliding operation.
Optionally, the operation type determining sub-module is specifically configured to:
acquiring a first coordinate of a starting touch point and a second coordinate of an ending touch point in the moving direction of the touch point;
and calculating the sliding angle of the sliding operation by adopting the first coordinate and the second coordinate.
Optionally, the operation type determining sub-module is specifically configured to:
and taking an included angle between the moving direction of the touch point and a preset coordinate axis as a sliding angle of the sliding operation.
Optionally, the operation type of the touch operation at least includes a long-press touch operation, a re-press touch operation, and a sliding operation, and the signal identifier obtaining module is specifically configured to execute one of the following:
acquiring a first signal identifier corresponding to the long press touch operation;
acquiring a second signal identifier corresponding to the touch re-pressing operation; and the number of the first and second groups,
and acquiring a third signal identifier corresponding to the sliding operation.
Optionally, the signal identifier obtaining module is specifically configured to:
and acquiring a longitudinal signal identifier corresponding to the longitudinal sliding operation and a transverse signal identifier corresponding to the transverse sliding operation.
Optionally, the password generation module includes:
the trigger time acquisition submodule is used for acquiring the trigger time of the signal identifier;
the time interval calculation submodule is used for calculating the trigger time interval between two adjacent touch operations by adopting the trigger time;
the password symbol generation submodule is used for dividing the signal identification by adopting the trigger time interval to obtain at least one password symbol;
and the password generation submodule is used for combining at least one password symbol to generate a password aiming at the at least one touch operation.
Optionally, the cryptographic symbol generation submodule is specifically configured to:
if the triggering time interval between two adjacent touch operations is smaller than or equal to a preset time interval, judging that the signal identifications corresponding to the two adjacent touch operations belong to the same password symbol;
if the triggering time interval between two adjacent touch operations is greater than or equal to a preset time interval, judging that the signal identifications corresponding to the two adjacent touch operations belong to different password symbols;
and combining the signal identifications belonging to the same code symbol to generate a corresponding code symbol.
Optionally, the password interface includes an operation area, and the operation type determining module is specifically configured to:
and responding at least one touch operation acting on the operation area, and determining the operation type corresponding to each touch operation.
Optionally, the password interface further includes an indication area, and the indication area is used for displaying signal identifiers corresponding to different password symbols.
The embodiment of the invention also discloses an electronic device, which comprises:
one or more processors; and
one or more machine-readable media having instructions stored thereon, which when executed by the one or more processors, cause the electronic device to perform the method as described above.
Embodiments of the present invention also disclose a computer-readable storage medium having instructions stored thereon, which, when executed by one or more processors, cause the processors to perform the method as described above.
The embodiment of the invention has the following advantages:
in the embodiment of the invention, the password interface is displayed through the graphical user interface of the electronic terminal, so that the terminal can respond to at least one touch operation acting on the password interface, determine the operation type corresponding to the touch operation, acquire the signal identifier corresponding to each sliding operation according to the operation type, then generating a password for at least one touch operation according to the signal identification, thereby setting the password through different types of touch operations, determining the signal identification based on the operation type by the terminal, and the signal identification is processed to obtain the corresponding password, the password setting is carried out through simple touch operation, when the complicated degree of password setting is reduced, the password setting is carried out by utilizing different types of touch control operation corresponding to different signal identifications, the safety of the password is effectively guaranteed, the unlocking can be realized by a user through the touch control operation, and the unlocking effectiveness is improved.
Drawings
Fig. 1 is a flowchart illustrating steps of a method for generating a password according to an embodiment of the present invention;
FIG. 2 is a schematic view of angle recognition provided in an embodiment of the present invention;
FIG. 3 is a schematic diagram of a password interface provided in an embodiment of the present invention;
FIG. 4 is a schematic illustration of signal identification provided in an embodiment of the present invention;
fig. 5 is a block diagram of a password generation apparatus provided in the embodiment of the present invention.
Detailed Description
In order to make the aforementioned objects, features and advantages of the present invention comprehensible, embodiments accompanied with figures are described in further detail below.
As an example, the screen unlocking of the mobile terminal may include unlocking of a terminal main interface, unlocking of an application interface, unlocking of a page, and the like. For terminal main interface unlocking, the terminal can be locked under the condition that a terminal screen locking key is pressed, and a user can unlock the terminal in the modes of fingerprints, faces, passwords, patterns and the like; for unlocking the application interface, the application can quit foreground operation, and the application interface is locked under the condition of background operation or operation termination, and the unlocking mode can be unlocked by referring to the terminal; for page unlocking, the foregoing manner may also be referred to, and details are not described here.
The screen unlocking modes of the terminal can include password unlocking, pattern unlocking, fingerprint unlocking, face unlocking and the like, and different unlocking modes can be suitable for different unlocking scenes, for example, a user can often use password unlocking as a basic unlocking mode, and the terminal can be unlocked through password unlocking under the condition of multiple fingerprint unlocking failures or face unlocking failures, so that the terminal and application can be unlocked.
Password unlocking, the most primitive screen unlocking approach, has long existed on non-smart mobile devices. The method is a screen unlocking mode with long history and is also the screen unlocking mode most depending on the music score. The mobile terminal has been developed for more than ten years, fingerprint unlocking is cancelled in the later period, but password unlocking must be reserved, and the importance of password unlocking in the mobile device is seen. Password unlocking usually consists of four digits or six digits, but the simplicity and the peelability are easily known by people.
The pattern unlocking usually exists in a style of a squared figure, and the unlocking function is realized by connecting lines at nine points through gestures. If the connection is too complicated, the connection may fail due to the recognition error of the range of action of the point during the cross-connection. This situation occurs very frequently when the connection is complicated, and if the connection fails too many times, the mobile device will automatically lock the screen and wait for a period of time before continuing to unlock the screen. Therefore, the mistake making rate of pattern unlocking is high, the complicated wiring pattern is not suitable for being stored, and poor use experience is easily brought to a user if the mobile equipment cannot be opened due to continuous mistakes in emergency.
The fingerprint unlocking comprises front fingerprint unlocking, rear fingerprint unlocking and side fingerprint unlocking. With the development of fingerprint unlocking technology, the unlocking accuracy is relatively reliable, and the method is widely applied to various mobile terminals. However, if the user's fingerprint is worn or the fingerprint button is filled with grease, the success rate of fingerprint recognition is easily lowered.
The face unlocking is a screen unlocking method widely used in recent years, and is preferentially used by each large mobile terminal. The face recognition is based on the strong artificial intelligence hardware calculation to capture the face data, and is based on the big data processing, so that the method is a very convenient screen unlocking mode. In the actual use process, the face recognition device is easily influenced by the environment, such as dark environment, the face is shielded, and the like, so that the success rate of face recognition is easily reduced, or the unlocking is failed.
Therefore, in the terminal screen unlocking method, the password is likely to be leaked, and the unlocking method has certain limitation. Therefore, a new terminal unlocking mode needs to be provided to supplement the unlocking of the terminal in a diversified manner so as to meet the requirements of different terminal unlocking scenes.
Therefore, one of the core invention points of the embodiment of the present invention is to design the sliding operation based on the idea of the moss code, where different sliding operations may correspond to different signal identifiers, when a user sets a code in a code interface, a terminal may determine an operation type corresponding to the sliding operation in response to the sliding operation, obtain a signal identifier corresponding to each sliding operation according to the operation type, obtain a trigger time corresponding to each sliding operation, then process the signal identifier according to the trigger time of each sliding operation to obtain a corresponding code, perform the code setting through a simple sliding operation, reduce the complexity of the code setting, and perform the code setting by using different signal identifiers corresponding to different sliding operations, thereby effectively ensuring the security of the code, and the user can unlock through the sliding operation, the effectiveness of unlocking is improved.
Specifically, referring to fig. 1, a flowchart of steps of a password generation method provided in an embodiment of the present invention is shown, where content displayed through a graphical user interface of an electronic terminal at least includes a password interface, and the method specifically includes the following steps:
step 101, responding to at least one touch operation acting on the password interface, and determining an operation type corresponding to each touch operation;
in the embodiment of the invention, the password interface can be a password setting interface provided by the terminal itself or a password setting interface provided by the application program, and a user can set a corresponding password in the password interface so as to input the corresponding password for unlocking under the conditions of terminal locking and application program locking. Optionally, in the embodiment of the present invention, a password setting interface provided by the terminal itself is taken as an example for illustration, and a user sets a password in the password interface to unlock the locked terminal, which should be understood that the present invention is not limited thereto.
In a specific implementation, in the process of setting the password by the user, the terminal may respond to at least one touch operation acting on the password interface, and determine an operation type corresponding to each touch operation. The terminal can obtain operation parameters of each touch operation, and then determine a corresponding operation type by using the operation parameters. Optionally, the operation parameters may include a touch duration, a touch pressure, a touch point moving distance, a touch point moving direction, and the like, and the operation types of the touch operation may include a long-press touch operation, a re-press touch operation, a sliding operation, and the like, which is not limited in this disclosure.
In an optional embodiment of the present invention, after obtaining the touch parameter of the touch operation, the terminal may analyze the operation type based on the touch parameter, and if the touch duration of the touch operation is greater than or equal to a preset duration threshold, determine that the touch operation is a long-press touch operation, for example, if a user finger touches a screen of the electronic terminal and keeps on the same touch point, keep the duration greater than or equal to 1.5 seconds, and determine that the touch operation is a long-press touch operation; if the touch pressure of the touch operation is greater than or equal to the preset pressure threshold, determining that the touch operation is a touch re-pressing operation, for example, when a screen of the electronic terminal supports a pressure sensing operation, the terminal may detect the touch pressure of the touch operation to determine whether the touch operation belongs to a conventional touch operation or a touch re-pressing operation; and if the moving distance of the touch point of the touch operation is greater than or equal to the preset distance threshold, determining that the touch operation is a sliding operation.
For the sliding operation, after the terminal determines that the touch operation is the sliding operation, the sliding angle of the sliding operation can be determined according to the moving direction of the touch point, and if the sliding angle is greater than a preset angle threshold, the sliding operation is determined to be the longitudinal sliding operation; and if the sliding angle is smaller than the preset angle threshold, determining that the sliding operation is the transverse sliding operation. Specifically, the terminal can determine a corresponding sliding track according to the sliding operation input by the user in the password interface, and due to physiological factors, the sliding track corresponding to the sliding operation is not a horizontal or vertical straight line, so that the type of the sliding operation is determined by setting a corresponding angle threshold and by a comparison relationship between the sliding angle and the angle threshold.
For example, a reference coordinate system corresponding to the password interface may be established with a narrow side in a graphical user interface of the terminal as an x-axis, a long side as a y-axis, and a vertex of a lower left corner as an origin, then a first coordinate of a start touch point in a moving direction of the touch point and a second coordinate of an end touch point are obtained, and then a sliding angle of the sliding operation is calculated by using the first coordinate and the second coordinate. In addition, an included angle between the moving direction of the touch point and a preset coordinate axis (such as the aforementioned x axis, y axis, etc.) may also be used as a sliding angle of the sliding operation, which is not limited in the present invention.
In an example, referring to fig. 2, which illustrates an angle identification diagram provided in an embodiment of the present invention, a sliding angle of a sliding operation may be an included angle between a sliding track corresponding to the sliding operation and a horizontal line, a preset angle threshold may be 45 °, and if the sliding angle of the sliding operation is greater than 45 °, it is determined that the sliding operation is a longitudinal sliding operation; and if the sliding angle of the sliding operation is less than 45 degrees, judging the sliding operation as the transverse sliding operation. In a special case, if the sliding angle is exactly equal to 45 °, it can be determined that the sliding operation is invalid, and the user is prompted to perform the operation again, so as to ensure the validity of the sliding operation.
102, acquiring a signal identifier corresponding to each touch operation according to the operation type;
in an optional embodiment of the present invention, referring to fig. 3, a schematic diagram of a password interface provided in the embodiment of the present invention is shown, the password interface 10 is displayed through a graphical user interface of a terminal, the password interface 10 may include an operation area 110 and an indication area 120, where the operation area may be used to set a corresponding password, and the indication area may be used to show signal identifiers corresponding to different password symbols, and by showing the indication area, a user may input a corresponding password according to a requirement of the user while passing through the password symbol displayed in the indication area in a process of setting the password, so as to complete setting of the password. Meanwhile, in the process of unlocking by a user, the signal identification display in the indication area can also assist the user to input a corresponding password, so that the user does not need to remember password symbols intentionally, only needs to remember the corresponding password, the threshold of password setting and unlocking is greatly reduced, and the user experience is improved.
Optionally, for the operation type and the signal identifier, different operation types may correspond to different signal identifiers, and may also correspond to the same signal identifier. Specifically, the touch operation may be combined with a moss cipher, the moss cipher uses binary codes in two states of 0 and 1, and the codes may include a short dot signal (·), a stroke signal (-) maintained for a certain time, a short pause (forming a word) between the dot signal and the stroke signal, a medium pause (forming a sentence) between words, a very long pause (forming a text) between sentences, and the like, in the embodiment of the present invention, the dot signal and the stroke signal of the moss cipher are used to map them into the touch operation, for example, a horizontal sliding operation input by a user in an operation area may be used as the stroke signal, an input vertical sliding operation may be used as the dot signal, an input long-press touch operation or a re-press touch operation may be used as the dot signal, and the terminal may determine a signal identifier corresponding to each touch operation according to the operation type of the touch operation input by the user, the touch control method has the advantages that the point signal identification or the scratch signal identification corresponding to the touch control operation is obtained, so that the Morse password is combined with the touch control operation of the terminal, the security of the password of the terminal can be effectively improved, and the password is prevented from being leaked.
In one example, taking the user input sliding operation as an example, the user inputs the horizontal sliding operation in the operation area as a stroke signal, and inputs the vertical sliding operation as a point signal, considering the situation that the user is unfamiliar with the Morse password, the password interface may further include an indication area, in which signal identifiers corresponding to different password symbols may be displayed, referring to fig. 4, a schematic diagram of the signal identifiers provided in the embodiment of the present invention is shown, the 26 letter corresponding signal identifiers are displayed in the indication area of the password interface, for example, "A" can correspond to a dot signal identifier and a dash signal identifier, if the user wants to input "a", a longitudinal sliding operation and a transverse operation can be respectively input, and the terminal determines the corresponding signal identifier according to the input of the user so as to determine the corresponding password symbol in the following.
It should be noted that, in the embodiment of the present invention, the mapping relationship between the sliding operation and the morse code is taken as an example for illustration, and it is understood that the setting of the code may also be performed by using the mapping relationship between the morse codes, such as a long touch operation and a touch operation with a heavy touch, and the present invention is not limited thereto.
Step 103, generating a password for the at least one touch operation according to the signal identifier.
In the process that the user sets the password in the password interface, the terminal can record the trigger time of each touch operation, so that the password corresponding to the user in one touch operation can be identified through the trigger time corresponding to each touch operation. In the touch terminal, the trigger time may be the time recorded by the terminal when the user's finger touches the terminal screen, and the trigger time interval between two trigger operations may be calculated by the trigger time between two touch operations.
In the embodiment of the present invention, the terminal may calculate the trigger time interval between two adjacent touch operations by using the trigger time of the touch operation, then divide the signal identifier by using the trigger time interval to obtain at least one password symbol, and then combine the at least one password symbol to generate the password for the at least one touch operation.
Alternatively, the code symbol may be a letter consisting of at least one signal identifier, for example, "yes" may consist of three letters "y", "e", and "s", each of which may correspond to a different signal identifier, "y" may correspond to "- - - - - - -" in the moss code, i.e., to a stroke signal identifier, a dot signal identifier, and a stroke signal identifier, respectively; "e" can correspond to "- · · · in the morse code, i.e., respectively correspond to the dash signal identifier, the dot signal identifier, and the dot signal identifier; the s can correspond to the's' in the Morse password, namely respectively corresponding to the point signal identifier, the point signal identifier and the point signal identifier, so that a user can input different password symbols through different touch operations to form a corresponding password by establishing a mapping relation between the different touch operations and the signal identifiers, and the security of the password is effectively improved.
In an optional embodiment of the present invention, for a password symbol, it may be determined whether signal identifiers corresponding to two adjacent touch operations belong to the same password symbol through a trigger time interval between the two touch operations, and if the trigger time interval between the two adjacent touch operations is less than or equal to a preset time interval, it is determined that the signal identifiers corresponding to the two adjacent touch operations belong to the same password symbol; if the triggering time interval between two adjacent touch operations is greater than or equal to the preset time interval, the signal identifications corresponding to the two adjacent touch operations are judged to belong to different password symbols, and then the signal identifications belonging to the same password symbol identification are combined to generate corresponding password symbols. The preset time interval may be 1 second, and if the trigger time interval between two adjacent touch operations is greater than 1 second, it may be determined that input of one password symbol is completed, and input of the next password symbol is started.
In an example, taking a sliding operation as an example, assuming that a user wants to set "yes" as a password of the terminal, the terminal may present signal identifications corresponding to respective letters in an indication area of a password interface, so that the user inputs a corresponding sliding operation with reference to the signal identifications in the indication area. For "yes", the corresponding signal identification includes "- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -, the conversion into the slide operation may be "a lateral slide operation, a longitudinal slide operation, a lateral slide operation, a longitudinal slide operation", therefore, a simple word can be converted into a combination mode of transverse and longitudinal sliding operation through the mapping relation between the signal identification and the sliding operation, in the process of password setting, the password setting of the user can be effectively assisted through the indication area, the threshold of the password setting is reduced, meanwhile, the security of the password is ensured by combining the Morse password and the sliding operation, even if the input operation is observed by other people, the input password cannot be judged, and the leakage of the password is avoided.
It should be noted that, the embodiment of the present invention includes but is not limited to the foregoing examples, and those skilled in the art may also use other manners to divide the signal identifier under the guidance of the idea of the embodiment of the present invention, for example, when the finger of the user does not leave the terminal screen, the user may input touch operations of multiple operation types (a horizontal sliding operation, a vertical sliding operation, a long-press touch operation, a re-press touch operation, and the like), the terminal may recognize the corresponding signal identifier, and after the finger of the user leaves, divide multiple signal identifiers corresponding to the operation into the same password symbol, and by repeating the same operation, multiple password symbols may be obtained to generate the corresponding password; under the condition that a user inputs touch control operations of different operation types, signal identifications can be divided according to the operation types; in the case that the user leaves the finger from the screen after inputting one touch operation, the signal identifier may be divided according to the touch operation, and the like, which is not limited in the present invention.
In the embodiment of the invention, the password interface is displayed through the graphical user interface of the electronic terminal, so that the terminal can respond to at least one touch operation acting on the password interface, determine the operation type corresponding to the touch operation, acquire the signal identifier corresponding to each sliding operation according to the operation type, then generating a password for at least one touch operation according to the signal identification, thereby setting the password through different types of touch operations, determining the signal identification based on the operation type by the terminal, and the signal identification is processed to obtain the corresponding password, the password setting is carried out through simple touch operation, when the complicated degree of password setting is reduced, the password setting is carried out by utilizing different types of touch control operation corresponding to different signal identifications, the safety of the password is effectively guaranteed, the unlocking can be realized by a user through the touch control operation, and the unlocking effectiveness is improved.
It should be noted that, for simplicity of description, the method embodiments are described as a series of acts or combination of acts, but those skilled in the art will recognize that the present invention is not limited by the illustrated order of acts, as some steps may occur in other orders or concurrently in accordance with the embodiments of the present invention. Further, those skilled in the art will appreciate that the embodiments described in the specification are presently preferred and that no particular act is required to implement the invention.
Referring to fig. 5, which is a block diagram illustrating a structure of a password generation apparatus provided in an embodiment of the present invention, content displayed through a graphical user interface of an electronic terminal at least includes a password interface, and specifically, the content may include the following modules:
an operation type determining module 501, configured to determine, in response to at least one touch operation acting on the password interface, an operation type corresponding to each touch operation;
a signal identifier obtaining module 502, configured to obtain, according to the operation type, a signal identifier corresponding to each touch operation;
the password generating module 503 is configured to generate a password for the at least one touch operation according to the signal identifier.
In an optional embodiment of the present invention, the operation type determining module 501 comprises:
the operation parameter acquisition submodule is used for acquiring operation parameters of the touch operations;
and the operation type determining submodule is used for determining the operation type corresponding to the touch operation by adopting the operation parameters.
In an optional embodiment of the present invention, the operation parameter at least includes at least one of a touch duration, a touch pressure, a touch point moving distance, and a touch point moving direction.
In an optional embodiment of the present invention, the operation type determining sub-module is specifically configured to:
and if the touch duration of the touch operation is greater than or equal to a preset duration threshold, determining that the touch operation is a long-press touch operation.
In an optional embodiment of the present invention, the operation type determining sub-module is specifically configured to:
and if the touch pressure of the touch operation is greater than or equal to a preset pressure threshold, determining that the touch operation is a re-pressing touch operation.
In an optional embodiment of the present invention, the operation type determining sub-module is specifically configured to:
and if the moving distance of the touch point of the touch operation is greater than or equal to a preset distance threshold, determining that the touch operation is a sliding operation.
In an optional embodiment of the present invention, the sliding operation includes a longitudinal sliding operation and a lateral sliding operation, and the operation type determination submodule is specifically configured to:
determining a sliding angle of the sliding operation according to the moving direction of the touch point;
if the sliding angle is larger than a preset angle threshold value, determining that the sliding operation is a longitudinal sliding operation;
and if the sliding angle is smaller than a preset angle threshold value, determining that the sliding operation is a transverse sliding operation.
In an optional embodiment of the present invention, the operation type determining sub-module is specifically configured to:
acquiring a first coordinate of a starting touch point and a second coordinate of an ending touch point in the moving direction of the touch point;
and calculating the sliding angle of the sliding operation by adopting the first coordinate and the second coordinate.
In an optional embodiment of the present invention, the operation type determining sub-module is specifically configured to:
and taking an included angle between the moving direction of the touch point and a preset coordinate axis as a sliding angle of the sliding operation.
In an optional embodiment of the present invention, the operation types of the touch operation at least include a long-press touch operation, a re-press touch operation, and a sliding operation, and the signal identifier obtaining module 502 is specifically configured to perform one of the following:
acquiring a first signal identifier corresponding to the long press touch operation;
acquiring a second signal identifier corresponding to the touch re-pressing operation; and the number of the first and second groups,
and acquiring a third signal identifier corresponding to the sliding operation.
In an optional embodiment of the present invention, the signal identifier obtaining module 502 is specifically configured to:
and acquiring a longitudinal signal identifier corresponding to the longitudinal sliding operation and a transverse signal identifier corresponding to the transverse sliding operation.
In an optional embodiment of the present invention, the password generating module 503 includes:
the trigger time acquisition submodule is used for acquiring the trigger time of the signal identifier;
the time interval calculation submodule is used for calculating the trigger time interval between two adjacent touch operations by adopting the trigger time;
the password symbol generation submodule is used for dividing the signal identification by adopting the trigger time interval to obtain at least one password symbol;
and the password generation submodule is used for combining at least one password symbol to generate a password aiming at the at least one touch operation.
In an optional embodiment of the present invention, the cryptographic symbol generation sub-module is specifically configured to:
if the triggering time interval between two adjacent touch operations is smaller than or equal to a preset time interval, judging that the signal identifications corresponding to the two adjacent touch operations belong to the same password symbol;
if the triggering time interval between two adjacent touch operations is greater than or equal to a preset time interval, judging that the signal identifications corresponding to the two adjacent touch operations belong to different password symbols;
and combining the signal identifications belonging to the same code symbol to generate a corresponding code symbol.
In an optional embodiment of the present invention, the password interface includes an operation area, and the operation type determining module 501 is specifically configured to:
and responding at least one touch operation acting on the operation area, and determining the operation type corresponding to each touch operation.
In an optional embodiment of the present invention, the password interface further includes an indication area, and the indication area is used to display signal identifiers corresponding to different password symbols.
For the device embodiment, since it is basically similar to the method embodiment, the description is simple, and for the relevant points, refer to the partial description of the method embodiment.
An embodiment of the present invention further provides an electronic device, including:
one or more processors; and
one or more machine-readable media having instructions stored thereon, which when executed by the one or more processors, cause the electronic device to perform methods as described in embodiments of the invention.
Embodiments of the present invention also provide a computer-readable storage medium having stored thereon instructions, which, when executed by one or more processors, cause the processors to perform a method according to embodiments of the present invention.
The embodiments in the present specification are described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments are referred to each other.
As will be appreciated by one skilled in the art, embodiments of the present invention may be provided as a method, apparatus, or computer program product. Accordingly, embodiments of the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, embodiments of the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
Embodiments of the present invention are described with reference to flowchart illustrations and/or block diagrams of methods, terminal devices (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing terminal to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing terminal, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing terminal to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing terminal to cause a series of operational steps to be performed on the computer or other programmable terminal to produce a computer implemented process such that the instructions which execute on the computer or other programmable terminal provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
While preferred embodiments of the present invention have been described, additional variations and modifications of these embodiments may occur to those skilled in the art once they learn of the basic inventive concepts. Therefore, it is intended that the appended claims be interpreted as including preferred embodiments and all such alterations and modifications as fall within the scope of the embodiments of the invention.
Finally, it should also be noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or terminal that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or terminal. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or terminal that comprises the element.
The present invention provides a method for generating a password, a device for generating a password, an electronic device and a storage medium, which are described in detail above, and specific examples are applied herein to illustrate the principles and embodiments of the present invention, and the above description of the embodiments is only used to help understanding the method and the core ideas of the present invention; meanwhile, for a person skilled in the art, according to the idea of the present invention, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present invention.

Claims (18)

1. A password generation method is characterized in that contents displayed through a graphical user interface of an electronic terminal at least comprise a password interface, and the method comprises the following steps:
responding at least one touch operation acting on the password interface, and determining an operation type corresponding to each touch operation;
acquiring a signal identifier corresponding to each touch operation according to the operation type;
and generating a password aiming at the at least one touch operation according to the signal identification.
2. The method according to claim 1, wherein the determining the operation type corresponding to each touch operation comprises:
obtaining operation parameters of each touch operation;
and determining the operation type corresponding to the touch operation by adopting the operation parameters.
3. The method of claim 2, wherein the operation parameters include at least one of a touch duration, a touch pressure, a touch point moving distance, and a touch point moving direction.
4. The method according to claim 3, wherein the determining the operation type corresponding to the touch operation by using the operation parameter includes:
and if the touch duration of the touch operation is greater than or equal to a preset duration threshold, determining that the touch operation is a long-press touch operation.
5. The method according to claim 3, wherein the determining the operation type corresponding to the touch operation by using the operation parameter includes:
and if the touch pressure of the touch operation is greater than or equal to a preset pressure threshold, determining that the touch operation is a re-pressing touch operation.
6. The method according to claim 3, wherein the determining the operation type corresponding to the touch operation by using the operation parameter includes:
and if the moving distance of the touch point of the touch operation is greater than or equal to a preset distance threshold, determining that the touch operation is a sliding operation.
7. The method of claim 6, wherein the sliding operation comprises a longitudinal sliding operation and a lateral sliding operation, and wherein the determining that the touch operation is the sliding operation comprises:
determining a sliding angle of the sliding operation according to the moving direction of the touch point;
if the sliding angle is larger than a preset angle threshold value, determining that the sliding operation is a longitudinal sliding operation;
and if the sliding angle is smaller than a preset angle threshold value, determining that the sliding operation is a transverse sliding operation.
8. The method according to claim 7, wherein the determining a sliding angle of the sliding operation according to the touch point moving direction comprises:
acquiring a first coordinate of a starting touch point and a second coordinate of an ending touch point in the moving direction of the touch point;
and calculating the sliding angle of the sliding operation by adopting the first coordinate and the second coordinate.
9. The method of claim 7, wherein the obtaining of the sliding angle of the sliding operation comprises:
and taking an included angle between the moving direction of the touch point and a preset coordinate axis as a sliding angle of the sliding operation.
10. The method according to claim 1, wherein the operation types of the touch operation at least include a long-press touch operation, a re-press touch operation, and a sliding operation, and the obtaining of the signal identifier corresponding to each touch operation according to the operation types includes at least one of:
acquiring a first signal identifier corresponding to the long press touch operation;
acquiring a second signal identifier corresponding to the touch re-pressing operation; and the number of the first and second groups,
and acquiring a third signal identifier corresponding to the sliding operation.
11. The method according to claim 7, wherein the obtaining the signal identifier corresponding to each touch operation according to the operation type includes:
and acquiring a longitudinal signal identifier corresponding to the longitudinal sliding operation and a transverse signal identifier corresponding to the transverse sliding operation.
12. The method according to any one of claims 1 to 11, wherein the generating a password for the at least one touch operation according to the signal identifier comprises:
acquiring the trigger time of the signal identifier;
calculating a trigger time interval between two adjacent touch operations by adopting the trigger time;
dividing the signal identification by adopting the trigger time interval to obtain at least one password symbol;
and combining at least one password symbol to generate a password aiming at the at least one touch operation.
13. The method of claim 12, wherein the dividing the signal identifier with the trigger time interval to obtain at least one cryptographic symbol comprises:
if the triggering time interval between two adjacent touch operations is smaller than or equal to a preset time interval, judging that the signal identifications corresponding to the two adjacent touch operations belong to the same password symbol;
if the triggering time interval between two adjacent touch operations is greater than or equal to a preset time interval, judging that the signal identifications corresponding to the two adjacent touch operations belong to different password symbols;
and combining the signal identifications belonging to the same code symbol to generate a corresponding code symbol.
14. The method of claim 1, wherein the password interface comprises an operation area, and wherein determining an operation type corresponding to a touch operation performed on the password interface in response to the touch operation comprises:
and responding at least one touch operation acting on the operation area, and determining the operation type corresponding to each touch operation.
15. The method of claim 1 or 14, wherein the password interface further comprises an indication area for displaying signal identifications corresponding to different password symbols.
16. A password generation device is characterized in that contents displayed through a graphical user interface of an electronic terminal at least comprise a password interface, and the device comprises:
the operation type determining module is used for responding at least one touch operation acting on the password interface and determining an operation type corresponding to each touch operation;
the signal identifier acquisition module is used for acquiring a signal identifier corresponding to each touch operation according to the operation type;
and the password generating module is used for generating a password aiming at the at least one touch operation according to the signal identification.
17. An electronic device, comprising:
one or more processors; and
one or more machine-readable media having instructions stored thereon that, when executed by the one or more processors, cause the electronic device to perform the method of any of claims 1-15.
18. A computer-readable storage medium having stored thereon instructions, which when executed by one or more processors, cause the processors to perform the method of any one of claims 1-15.
CN202110536818.5A 2021-05-17 2021-05-17 Password generation method and device, electronic equipment and storage medium Pending CN113127842A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110536818.5A CN113127842A (en) 2021-05-17 2021-05-17 Password generation method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110536818.5A CN113127842A (en) 2021-05-17 2021-05-17 Password generation method and device, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
CN113127842A true CN113127842A (en) 2021-07-16

Family

ID=76782071

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110536818.5A Pending CN113127842A (en) 2021-05-17 2021-05-17 Password generation method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN113127842A (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104281401A (en) * 2013-07-09 2015-01-14 宏达国际电子股份有限公司 Method for Controlling Electronic Device with Touch Screen and Electronic Device Thereof
CN105893796A (en) * 2015-11-16 2016-08-24 乐视网信息技术(北京)股份有限公司 Password input method and terminal equipment
CN105893797A (en) * 2015-11-27 2016-08-24 乐视网信息技术(北京)股份有限公司 Unlocking method and apparatus

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104281401A (en) * 2013-07-09 2015-01-14 宏达国际电子股份有限公司 Method for Controlling Electronic Device with Touch Screen and Electronic Device Thereof
CN105893796A (en) * 2015-11-16 2016-08-24 乐视网信息技术(北京)股份有限公司 Password input method and terminal equipment
CN105893797A (en) * 2015-11-27 2016-08-24 乐视网信息技术(北京)股份有限公司 Unlocking method and apparatus

Similar Documents

Publication Publication Date Title
US9514297B2 (en) Systems and methods for gesture lock obfuscation
TWI222032B (en) Hand-written input authentication apparatus, hand-written input authentication method and storage medium storing hand-written input authentication program
CN101464741B (en) Touch panel and its use method and notebook computer with the same
CN105335641B (en) A kind of auth method and device based on fingerprint recognition
CN105095720A (en) Fingerprint recognition system and method and display device
CN104049897B (en) Touch panel device unlock method and device
US20140189604A1 (en) Method and system for unlocking a touchscreen of an electronic device
CN103092500B (en) Unlocking screen method, touch screen and electronic equipment
CN104035698B (en) Terminal device and its state switching method
CN107087075B (en) Prompting method based on screen fingerprint identification and mobile terminal
CN105678147B (en) Touch operation method and device
Tse et al. Behavioral biometrics scheme with keystroke and swipe dynamics for user authentication on mobile platform
CN105354455B (en) State switching method and electronic equipment
CN105094874A (en) Application starting method and system
CN109858221A (en) Application control method and relevant apparatus
CN105184141B (en) A kind of unlocking method, device and mobile terminal
CN104598786A (en) Password inputting method and device
CN106250730B (en) A kind of smartwatch unlocking method and a device
CN106407761B (en) Unlocking method and unlocking device
CN104809373A (en) Terminal unlocking method
CN113127842A (en) Password generation method and device, electronic equipment and storage medium
CN103034441B (en) Unlocking method and device
CN105701383B (en) A kind of function triggering method, device and terminal
CN107169342A (en) The method and terminal of a kind of unlocking screen
CN104951693A (en) Method and system for password input detection based on mobile terminal

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20210716