WO2016062009A1 - Unlocking method and device - Google Patents

Unlocking method and device Download PDF

Info

Publication number
WO2016062009A1
WO2016062009A1 PCT/CN2015/075265 CN2015075265W WO2016062009A1 WO 2016062009 A1 WO2016062009 A1 WO 2016062009A1 CN 2015075265 W CN2015075265 W CN 2015075265W WO 2016062009 A1 WO2016062009 A1 WO 2016062009A1
Authority
WO
WIPO (PCT)
Prior art keywords
pattern
unlocking
unlock
preset
screen
Prior art date
Application number
PCT/CN2015/075265
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 WO2016062009A1 publication Critical patent/WO2016062009A1/en

Links

Images

Classifications

    • 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

Definitions

  • This document relates to the field of terminal technologies, and in particular, to an unlocking method and device.
  • the embodiment provides an unlocking method and device, which can solve the technical problem that the unlocking method based on the unlocking pattern temporarily leaves the user information unsafe on the screen.
  • an embodiment of the present invention provides an unlocking method, including the following steps:
  • the preset unlocking pattern includes a preset unlocking pattern for gesture unlocking
  • the step of randomly changing the preset unlock pattern in the terminal includes:
  • the shape and/or position of the preset unlock pattern to be displayed on the terminal screen is randomly changed.
  • the step of randomly changing the shape and/or position of the preset unlocking pattern to be displayed on the terminal screen comprises:
  • the randomly changing the position of the pattern element in the preset unlocking pattern includes at least one of the following manners:
  • the partial pattern element group in the unlock pattern is rotated at a random angle, wherein the partial pattern element group is composed of pattern elements located on the same straight line.
  • the narrowing or enlarging the spacing between the pattern elements in the preset unlocking pattern according to a random ratio specifically includes:
  • the spacing between the pattern elements in the partial pattern element group in the unlock pattern is reduced or enlarged according to a random scale, the partial pattern element group being composed of pattern elements located on the same straight line.
  • the step of randomly changing the position of the pattern element in the preset unlock pattern includes at least one of the following manners:
  • the pattern A group of elements consists of pattern elements that are on the same line.
  • the preset unlocking pattern includes: an unlocking pattern composed of a dot matrix.
  • an embodiment of the present invention further provides an unlocking apparatus, including: a change module, a display module, and an unlocking module;
  • the change module is configured to randomly change a preset unlock pattern in the terminal, where the preset unlock pattern includes a preset unlock pattern for gesture unlocking;
  • the display module is configured to display a changed unlock pattern on a screen of the terminal
  • the unlocking module is configured to unlock the terminal when it is detected that the operation of the user on the changed unlock pattern conforms to a preset operating condition.
  • the variation module is configured to randomly change a shape and/or a position to be displayed on the terminal screen of the preset unlock pattern.
  • the changing module is configured to randomly change a shape and/or a position of the preset unlocking pattern displayed on the terminal screen by randomly changing a position of the pattern element in the preset unlocking pattern,
  • the position of the pattern element is the position at which the pattern element is to be displayed on the screen.
  • the change module is configured to randomly change a shape that the preset unlock pattern is to be displayed on the screen in at least one of the following manners:
  • the partial pattern element group in the unlock pattern is rotated at a random angle, and the partial pattern element group is composed of pattern elements located on the same straight line.
  • the narrowing or enlarging the spacing between the pattern elements in the preset unlocking pattern according to a random ratio includes:
  • the spacing between the pattern elements in the partial pattern element group in the unlock pattern is reduced or enlarged according to a random scale, the partial pattern element group being composed of pattern elements located on the same straight line.
  • the change module is configured to randomly change a position that the preset unlock pattern is to be displayed on the screen according to at least one of the following manners:
  • the corresponding pattern element group in the unlock pattern is rotated in a random mirror rotation manner, and the pattern element group is composed of pattern elements located on the same straight line.
  • the embodiment of the present invention further provides a computer readable storage medium, where the storage medium stores a computer program, the computer program includes program instructions, and when the program instruction is executed by the terminal device, the terminal device can perform the foregoing unlocking method. .
  • the embodiment of the present invention provides an unlocking method and device, which can improve the information security of the terminal.
  • the unlocking method provided by the embodiment of the present invention randomly changes the preset unlocking pattern in the terminal, and the preset unlocking pattern includes a preset.
  • an unlocking pattern for gesture unlocking displaying the changed unlocking pattern on the screen of the terminal; and detecting that the operation of the user on the changed unlocking pattern meets a preset operating condition
  • the terminal performs unlocking; by randomly changing the preset unlocking pattern, the unlocking pattern displayed each time is different, and the unlocking gesture on the unlocking pattern is different when the user unlocks each time, so even if left on the screen Unlock the trace, but the unlocking trace will not be clear due to the repeated same unlocking operation, and the unlocking trace left on the screen after multiple unlocking is also disordered, which can prevent others from playing the unlocking trace on the screen of the user terminal.
  • the terminal unlocks and acquires the terminal information, and improves the hardware cost without increasing the hardware cost compared with the related technology. Information security terminal, can be applied to the terminal has been sold, wide range of applications.
  • FIG. 1 is a schematic flowchart of an unlocking method according to Embodiment 1 of the present invention
  • FIG. 2 is a schematic diagram of an unlocking pattern according to Embodiment 2 of the present invention.
  • FIG. 3 is a schematic diagram of establishing coordinates on an unlocking pattern according to Embodiment 2 of the present invention.
  • FIG. 4 is a schematic diagram of overall zooming of a first unlocking pattern according to Embodiment 2 of the present invention.
  • FIG. 5 is a schematic diagram of an overall zooming of a second unlocking pattern according to Embodiment 2 of the present invention.
  • FIG. 6 is a schematic diagram showing a partial zooming of a first unlocking pattern according to Embodiment 2 of the present invention.
  • FIG. 7 is a schematic diagram showing a partial zooming of a second unlocking pattern according to Embodiment 2 of the present invention.
  • FIG. 8 is a schematic diagram showing a partial zooming of a third unlocking pattern according to Embodiment 2 of the present invention.
  • FIG. 9 is a schematic diagram showing a partial translation of a first unlocking pattern according to Embodiment 2 of the present invention.
  • FIG. 10 is a schematic diagram showing a partial translation of a second unlocking pattern according to Embodiment 2 of the present invention.
  • FIG. 11 is a schematic diagram showing a partial translation of a third unlocking pattern according to Embodiment 2 of the present invention.
  • FIG. 12 is a schematic diagram showing a partial translation of a fourth unlocking pattern according to Embodiment 2 of the present invention.
  • FIG. 13 is a schematic diagram showing a partial rotation of a first unlocking pattern according to Embodiment 2 of the present invention.
  • FIG. 14 is a schematic diagram showing a partial rotation of a second unlocking pattern according to Embodiment 2 of the present invention.
  • FIG. 15 is a schematic diagram of an overall translation of a first unlocking pattern according to Embodiment 2 of the present invention.
  • FIG. 16 is a schematic diagram of an overall translation of a second unlocking pattern according to Embodiment 2 of the present invention.
  • 17 is a schematic diagram of a first type of changing an unlock pattern and a position according to a second embodiment of the present invention.
  • FIG. 18 is a schematic diagram showing a second change of shape and position of an unlock pattern according to Embodiment 2 of the present invention.
  • FIG. 19 is a schematic diagram of an unlocking trace left on a screen after the first unlocking according to Embodiment 2 of the present invention.
  • FIG. 20 is a schematic diagram of a second unlocking trace left on the screen after unlocking according to Embodiment 2 of the present invention.
  • FIG. 21 is a schematic diagram of an unlocking trace left on a screen after a third unlocking according to Embodiment 2 of the present invention.
  • FIG. 22 is a schematic structural diagram of an unlocking device according to Embodiment 3 of the present invention.
  • Embodiment 1 is a diagrammatic representation of Embodiment 1:
  • the embodiment provides an unlocking method, which solves the problem by randomly changing the unlocking pattern and leaving on the screen. As shown in FIG. 1 , specifically, the method in this embodiment includes the following steps:
  • Step 101 Randomly change a preset unlock pattern in the terminal, where the preset unlock pattern includes a preset unlock pattern for gesture unlocking.
  • the preset unlocking pattern is an unlocking pattern selected or set by the user in the terminal, and is used for the user to draw a gesture when the terminal is locked; for example, a nine-square unlocking pattern or other unlocking pattern composed of dots or other available The unlock pattern of the user's gesture.
  • the randomly changing the preset unlocking pattern in the terminal in this step may specifically include:
  • the shape and/or position of the preset unlock pattern to be displayed on the screen is randomly changed.
  • the scheme for randomly changing the unlock pattern in the mode of the embodiment includes the following three variants:
  • the first type changes the shape of the unlock pattern to be displayed on the screen.
  • the unlock pattern is scaled or the position of some of the pattern elements in the unlock pattern is moved.
  • the unlock pattern is randomly changed at the position to be displayed on the screen.
  • the unlock pattern is translated in a certain direction, or rotated.
  • one of the above three variations may be randomly selected to randomly change the unlock pattern.
  • the method of the embodiment may randomly change the shape and/or position of the preset unlocking pattern displayed on the screen in the terminal by randomly changing the position of the pattern element in the preset unlocking pattern.
  • the position of the pattern element is the position at which the pattern element is to be displayed on the screen.
  • the display shape and/or position of the entire preset unlock pattern can be changed by randomly changing the display position of the pattern element.
  • Step 102 Display the changed unlock pattern on the screen of the terminal.
  • Step 103 When detecting that the operation of the user on the changed unlock pattern conforms to a preset operation condition, unlocking the terminal.
  • the unlocking method of this embodiment randomly changes the preset unlocking pattern so that the unlocking pattern displayed each time is different, and the unlocking gesture on the unlocking pattern is different when the user unlocks each time, so even on the screen.
  • the unlocking trace left, but the unlocking trace is not clear due to the repeated same unlocking operation, and the unlocking trace left on the screen after multiple unlocking is also messy; preventing others from passing the unlocking trace on the screen of the user terminal The user terminal is unlocked and the terminal information is obtained. Compared with the related art, the information security of the terminal can be improved without increasing the hardware cost.
  • the method in this embodiment can be applied to the terminal that has already been sold. Wide range of applications and practicality.
  • the manner of randomly changing the position of the pattern element in the preset unlocking pattern in this embodiment includes at least one of the following manners:
  • the spacing between the pattern elements in the preset unlock pattern is reduced or enlarged according to a random scale.
  • This way is to change the shape of the unlocking pattern by overall or partial scaling of the unlocking pattern.
  • one of the following processes may be included:
  • the effect of scaling the unlock pattern is achieved by scaling the spacing between all the pattern elements in the unlock pattern.
  • the random ratio may be randomly selected in a preset ratio interval, and the preset ratio interval may be set according to the size of the terminal screen. For example, a solution to a circle The lock pattern is enlarged or reduced.
  • the pitch between the pattern elements in the partial pattern element group in the unlock pattern is reduced or enlarged according to a random scale, and the pattern element group is composed of pattern elements located on the same straight line.
  • This process is to scale the partial spacing in the unlock pattern. For example, for a nine-square unlock pattern, a row, a column or a diagonal of the unlock pattern is scaled according to a random scale, that is, the zoom is located on a certain row, a column or a diagonal line. The spacing between points. Of course, it is also possible to scale multiple rows, columns, or multiple diagonals.
  • a part of the pattern elements in the unlock pattern are moved in a predetermined direction according to a random offset.
  • This way is to change the shape of the overall unlocking pattern by changing the position of a part of the pattern elements in the unlocking pattern. For example, a certain point in the unlock pattern or a point located on a certain row, a certain column or a diagonal line may be moved in a predetermined direction according to a random offset. Specific example: Move a preset point in the left, right, up and down direction of a point in the nine-square grid unlock pattern composed of dot matrix.
  • the random offset in this mode is set according to the size of the screen.
  • a partial pattern element group in the unlock pattern is rotated according to a random angle, and the pattern element group is composed of pattern elements located on the same straight line.
  • the shape of the pattern is changed by rotating the dots in the unlocking pattern.
  • the pattern elements located in a certain row, a certain column or a diagonal line in the unlocking pattern can be simultaneously rotated.
  • the first column in the nine-square grid unlock pattern is rotated at a random angle with the middle point as a circle.
  • the method can also rotate a plurality of pattern element groups according to a random angle, for example, rotating the first row and the first column in the nine-square lattice unlock pattern according to a random angle.
  • the random angle in this mode is set according to the size of the screen.
  • the method of the present embodiment does not only change the shape of the unlocking pattern in the manner described above, but also may be other ways of changing the shape by randomly changing the position of the pattern element.
  • At least one of the above three modes may be randomly selected when the shape of the preset unlocking pattern is changed arbitrarily.
  • the manner in which the position of the pattern element in the preset unlock pattern is randomly changed in the embodiment method may include at least one of the following manners:
  • all the pattern elements in the unlock pattern are moved in a predetermined direction according to a random offset.
  • This way is an overall translational unlocking pattern, such as panning the unlocking pattern up or down, ie changing the display position of the unlocking pattern on the screen.
  • the corresponding pattern element group in the unlock pattern is rotated in a random mirror rotation manner, and the pattern element group is composed of pattern elements located on the same straight line.
  • the position of the entire unlocking pattern is changed by rotating; specifically, the corresponding pattern element group in the unlocking pattern can be rotated in a random mirror rotation manner; in this embodiment, the mirror rotation mode refers to the corresponding pattern element that can be rotated.
  • the group obtains the image unlocking pattern; and because the reference center of the rotation is different and/or the pattern element group that needs to be rotated is different, there are many mirror rotation modes; in this embodiment, one of the plurality of mirror rotation modes is randomly selected.
  • the mirror rotation mode is used to rotate the corresponding pattern element group to obtain a mirror unlock pattern.
  • each row, each column of the unlock pattern, each group of elements in the same diagonal direction, and the like are rotated at an arbitrary point of 180°, and the points of the center are in a straight line, the whole is obtained. Unlocks the mirrored unlock pattern of the pattern.
  • At least one of the above two methods may be randomly selected when the position of the preset unlocking pattern is changed casually.
  • random changes in shape and position can be performed step by step, and random changes in shape and position can be simultaneously performed; in the stepwise step, each step can be changed by referring to the above method A or B.
  • the unlocking method provided in this embodiment can improve information security of the terminal.
  • Embodiment 2 is a diagrammatic representation of Embodiment 1:
  • the unlocking method described in the first embodiment is described in detail by taking the nine-square grid unlocking pattern as an example; as shown in FIG. 2, the first sub-picture in the figure is a nine-square grid unlocking pattern provided by the touch screen terminal, which is composed of nine A small circle is constructed in which the black frame is the edge of the touch screen; the following examples of the nine-square lattice unlock pattern are not described again.
  • FIG. 3 for convenience of description, an "xy coordinate" is established on the basis of FIG. 2, and the above 9 small circles are numbered 1, 2 in order from "left to right, top to bottom".
  • the second, fourth, sixth, and eighth small circles are respectively on the x-axis or the y-axis.
  • a small short line is drawn separately. The following refers to the example of the Jiugongge unlocking pattern (ie, Figure 3-21). The original coordinates of the 2nd, 4th, 6th, and 8th small circles are no longer marked, and only the short line is indicated. Its original location.
  • the overall unlocking and releasing of the unlocking pattern means that the entire unlocking pattern is reduced or enlarged according to a random value within a certain range.
  • FIG. 4 shows the unlock pattern obtained by the overall reduction
  • FIG. 5 shows the unlock pattern obtained by the overall enlargement.
  • the unlock pattern is integrally contracted, that is, the x and y axis coordinates of the "9 small circles" of the "unlock pattern” are respectively multiplied by a random value between [n%, m].
  • the method for determining the value of n, m is: after considering the aesthetics, practicability and convenience of the "unlocking pattern", a random value within a certain range is adopted, and the maximum value should not exceed the edge of the touch screen, and the following random value acquisition has a similar description, no longer One by one.
  • the center point ie, the 5th small circle
  • the center point of a line is generally used, as shown in Figure 6, as shown in Figure 6.
  • the circle is reduced.
  • zooming at a non-central point it can generally be obtained by zooming and panning at the center point, and will not be explained or exemplified separately.
  • the unlocking pattern portion may be reduced or lowered by a certain row, a column or a diagonal direction of the unlocking pattern.
  • FIG. 6 shows an "unlocking pattern" in which the rightmost column is reduced and the other portions are kept still;
  • FIG. 7 shows that the third, fifth, and seventh small circles in the diagonal direction are enlarged, and the second and fourth small circles are reduced in parallel.
  • Figure 8 shows the "unlocked pattern” obtained by zooming in on the 5th and 5th small circles in the diagonal direction and keeping the other parts still.
  • the unlocking pattern is also relatively simple to achieve, and in the case of FIG. 7, the unlocking pattern of the figure can be implemented as follows:
  • the partial shift of the unlock pattern is to translate a certain row, a column or a diagonal direction of the unlock pattern to the left, right, up, down, etc. according to a random value within a certain range; the partial shift is also applicable to multiple rows and multiples. Column, multi-diagonal direction translation.
  • Figure 9 shows the "unlocked pattern” obtained by shifting the rightmost column up and the other parts remain motionless;
  • Figure 10 shows the “unlocked pattern” obtained by shifting the middle row to the right and the other parts remain motionless;
  • Figure 11 shows the rightmost column panning upwards. The last line is shifted to the left, and the other parts remain untouched.
  • the unlocking pattern is shown in Fig. 12, which shows that the 3rd, 5th, and 7th small circles are shifted to the lower left in the diagonal direction, and the other parts are kept still. ";
  • the unlocking pattern partial translation is described by taking FIG. 11 as an example to implement the method:
  • the partial rotation of the unlocking pattern is to make a certain row, a column, a diagonal direction of the unlocking pattern, etc. Any point is the center of the circle rotated according to a random angle within a certain range; partial rotation is also suitable for rotation of multiple rows, multiple columns, multiple diagonal directions.
  • each row, each column of the unlock pattern, each group of elements in the same diagonal direction, and the like are rotated at an arbitrary point of 180°, and the points of the center are in a straight line, then The mirrored unlock pattern of the entire unlock pattern.
  • Figure 13 shows the "unlocked pattern” in which the third small circle of the unlock pattern is rotated to the right by the angle ⁇ , and the other portions are kept stationary;
  • Figure 14 shows the third, fifth, and seventh diagonal directions.
  • the circle is the "unlocked pattern” in which the fifth small circle of the unlock pattern is rotated to the right by the ⁇ angle, and the other portions are kept still;
  • the unlocking pattern partial translation is described by taking FIG. 14 as an example to implement the method:
  • the 3rd, 5th, and 7th small circles in the diagonal direction are a random angle between the center of the unlocking pattern and the right side of the circle [n, m], assuming that the random angle is ⁇ , then the third The coordinates of the small circle can be calculated like this:
  • the coordinates after the angle are (-b*cos( ⁇ +45), -b*sin( ⁇ +45)).
  • the overall translation of the unlock pattern means that the entire unlock pattern is translated according to a random value within a certain range according to random values in a certain range to the left, right, up, and down directions.
  • Fig. 15 shows an "unlocking pattern” obtained by shifting the entire unlocking pattern to the upper right side
  • Fig. 16 shows an "unlocking pattern” obtained by shifting the entire unlocking pattern to the lower left.
  • the unlocking pattern partial translation is described by taking FIG. 15 as an example to implement the method:
  • FIG. 15 shows the "unlocking pattern" obtained by shifting the entire unlocking pattern to the upper right
  • the entire unlocking pattern of FIG. 15 is shifted to the right by a random value between [n, m], such as i, which is moved upward by [n, A random value between m], such as j
  • the new coordinates of the 9 small circles of the unlock pattern can be easily obtained, for example, the coordinates of the first small circle are (-a+i, a+j).
  • each row, each column of the unlock pattern, each group of elements in the same diagonal direction, and the like are rotated at an arbitrary point of 180°, and the points of the center are in a straight line, the entire unlock pattern is obtained.
  • the unlocked pattern after mirroring.
  • the manners of the foregoing may be mixed with each other to implement the change of the shape, or the methods in the two cases may be mixed with each other to implement the change of the position. Similarly, the method may also be used in the embodiment.
  • the one and two cases i.e., changing position and shape
  • FIGS. 17-18 show the shape of the "unlock pattern” and the position on the screen at the same time changing the "screen lock” method, for example, reducing the "unlock pattern” and moving to the left as shown in FIG. 17; enlarging the "unlock pattern” And moving to the lower right corner, as shown in Fig. 18, since there are many "unlocking patterns" obtained by mixing with each other, they are not listed one by one.
  • the implementation method can be carried out in steps of mixing with each other, and the implementation method of each step can refer to the above one and two cases.
  • FIG. 19-21 the method of using the embodiment of the present invention and the use of the prior art touch screen to leave a fingerprint "mark” on the screen is compared, wherein the 19th is not left on the screen by using the method of the embodiment.
  • the fingerprint trace is very clear;
  • FIG. 20 is the fingerprint left on the screen after unlocking the overall unlocked pattern (for example, as shown in FIG. 5). "Trace”;
  • FIG. 21 is a fingerprint "mark” left on the screen after unlocking on the unlock pattern shown in FIG. 4-8, which can be seen by comparing the fingerprint traces of the three figures in FIGS.
  • the fingerprint "mark” left on the screen when unlocked is not clear because it is repeatedly slipped, and the fingerprint “mark” is also chaotic, so it can increase the fingerprint "mark on the screen when unlocking.” "The difficulty of successfully unlocking the smart terminal.
  • Embodiment 3 is a diagrammatic representation of Embodiment 3
  • the embodiment provides an unlocking apparatus, including a processor and a program storage device, and further includes: a change module, a display module, and an unlocking module;
  • the change module is adapted to randomly change a preset unlock pattern in the terminal, where the preset unlock pattern includes a preset unlock pattern for gesture unlocking;
  • the display module is adapted to display a changed unlock pattern on a screen of the terminal
  • the unlocking module is adapted to unlock the terminal when detecting that the operation of the user on the changed unlock pattern conforms to a preset operating condition.
  • the variation module is adapted to randomly change the shape and/or position that the preset unlock pattern is to be displayed on the screen in the terminal.
  • the change module is adapted to randomly change the shape and/or position of the preset unlock pattern displayed on the screen by randomly changing the position of the pattern element in the preset unlock pattern.
  • the position of the pattern element is the position at which the pattern element is to be displayed on the screen.
  • the variation module is adapted to randomly change a shape that the preset unlock pattern is to be displayed on the screen in at least one of the following manners:
  • the spacing between the pattern elements in the preset unlocking pattern is reduced or enlarged according to a random scale
  • a part of the pattern elements in the unlocking pattern are moved in a predetermined direction according to a random offset
  • a partial pattern element group in the unlock pattern is rotated according to a random angle, and the pattern element group is composed of pattern elements located on the same straight line.
  • the change module is configured to randomly change a position that the preset unlock pattern is to be displayed on the screen according to at least one of the following manners:
  • the corresponding pattern element group in the unlock pattern is rotated in a random mirror rotation manner, and the pattern element group is composed of pattern elements located on the same straight line.
  • the unlocking device of this embodiment randomly changes the preset unlocking pattern so that the unlocking pattern displayed each time is different, and the unlocking gesture on the unlocking pattern is different when the user unlocks each time, so even on the screen.
  • the unlocking trace left, but the unlocking trace will not be the same due to iteration
  • the unlocking operation is very clear, and the unlocking trace left on the screen after multiple unlocking is also disordered; preventing others from unlocking the user terminal through the unlocking trace on the screen of the user terminal, compared with related technologies,
  • the information security of the terminal can be improved without increasing the hardware cost.
  • the device of the embodiment can be applied to the terminal that has been sold, and has a wide application range and strong practicability.
  • the unlocking scheme provided in this embodiment randomly changes the preset unlocking pattern, so that the unlocking pattern displayed each time is different, and the clear unlocking trace is not left on the screen due to the same unlocking operation repeated by the user.
  • the user is prevented from obtaining the unlocking information of the user terminal through the unlocking trace on the screen of the user terminal, and the information security of the terminal is improved and the utility is strong without increasing the hardware cost.

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

An unlocking method and device. The method comprises: changing randomly a default unlocking pattern in a terminal, the default unlocking pattern including a preset unlocking pattern for gesture unlocking; displaying the changed unlocking pattern on the terminal screen; when it is detected that the operation of a user on the changed unlocking pattern is in accordance with a preset operating condition, unlocking the terminal. The unlocking method of an embodiment of the present invention solves the problem of terminal information insecurity because the current unlocking method based on the unlocking pattern can leave unlocking traces of the user on the screen.

Description

一种解锁方法及装置Unlocking method and device 技术领域Technical field
本文涉及终端技术领域,尤其涉及一种解锁方法及装置。This document relates to the field of terminal technologies, and in particular, to an unlocking method and device.
背景技术Background technique
近年来触摸屏行业快速发展,触摸屏被广泛用于各种智能终端。随着电子技术和软件技术的快速提高,智能终端的功能也越来越强大,包含的隐私信息也越来越多,智能手机、平板等终端更是如此,为了提高信息安全,大家一般都选用了“屏幕锁定”方案,其中在解锁图案进行手势解锁的方式最便捷,因此被大多数人使用;例如,在设置阶段,终端会提供一个固定的解锁图案,用户在终端中预先设定在解锁图案上的解锁路径,在屏幕点亮时,屏幕显示该解锁图案,用户在该解锁图案上划路径,当终端检测到用户划过的路径与预先设定的路径相符时,则解锁。In recent years, the touch screen industry has developed rapidly, and touch screens are widely used in various smart terminals. With the rapid improvement of electronic technology and software technology, the functions of intelligent terminals are becoming more and more powerful, and the privacy information contained is also increasing. This is especially true for terminals such as smart phones and tablets. In order to improve information security, everyone generally chooses The "screen lock" scheme, in which the gesture of unlocking the pattern is most convenient, is therefore used by most people; for example, in the setup phase, the terminal provides a fixed unlock pattern, and the user presets to unlock in the terminal. The unlocking path on the pattern, when the screen is lit, the screen displays the unlocking pattern, and the user draws a path on the unlocking pattern. When the terminal detects that the path swiped by the user matches the preset path, the user unlocks.
但在上述解锁方法中,用户在屏幕上进行手势解锁时一般会在屏幕上留下手势解锁的“痕迹”,并且随着解锁次数增多,该“痕迹”越来越明显,所以他人当拿到用户带触摸屏的智能终端时,仔细观察一下屏幕一般都能成功解锁。因此,采用目前在解锁图案进行手势解锁的方案,存在很大的安全隐患。However, in the above unlocking method, when the user unlocks the gesture on the screen, the "mark" of the gesture unlocking is generally left on the screen, and as the number of unlocking increases, the "mark" becomes more and more obvious, so others get it. When the user has a smart terminal with a touch screen, a careful observation of the screen can be successfully unlocked. Therefore, with the current scheme of unlocking gestures in the unlock pattern, there is a great security risk.
发明内容Summary of the invention
本实施例提供一种解锁方法及装置,能够解决目前基于解锁图案的解锁方法会在屏幕上留下用户解锁的痕迹导致的终端信息不安全的技术问题。The embodiment provides an unlocking method and device, which can solve the technical problem that the unlocking method based on the unlocking pattern temporarily leaves the user information unsafe on the screen.
为解决上述技术问题,本发明实施例提供一种解锁方法,包括如下步骤:To solve the above technical problem, an embodiment of the present invention provides an unlocking method, including the following steps:
对终端中预设解锁图案进行随机变化,所述预设解锁图案包括预设的用于手势解锁的解锁图案;Performing a random change on the preset unlocking pattern in the terminal, where the preset unlocking pattern includes a preset unlocking pattern for gesture unlocking;
在所述终端的屏幕上显示变化后的解锁图案;Displaying the changed unlock pattern on the screen of the terminal;
当检测到用户在所述变化后的解锁图案上的操作符合预设的操作条件 时,对所述终端进行解锁。When it is detected that the operation of the user on the changed unlock pattern conforms to a preset operating condition The terminal is unlocked.
可选地,所述对终端中预设解锁图案进行随机变化的步骤包括:Optionally, the step of randomly changing the preset unlock pattern in the terminal includes:
对所述预设解锁图案将要在终端屏幕上显示的形状和/或位置进行随机变化。The shape and/or position of the preset unlock pattern to be displayed on the terminal screen is randomly changed.
可选地,所述对所述预设解锁图案将要在终端屏幕上显示的形状和/或位置进行随机变化的步骤包括:Optionally, the step of randomly changing the shape and/or position of the preset unlocking pattern to be displayed on the terminal screen comprises:
通过随机改变所述预设解锁图案中图案元素的位置,对所述预设解锁图案在屏幕上显示的形状和/或位置进行随机变化,所述图案元素的位置为所述图案元素将要在所述屏幕上显示的位置。Randomly changing the shape and/or position of the preset unlocking pattern displayed on the screen by randomly changing the position of the pattern element in the preset unlocking pattern, the position of the pattern element being that the pattern element is to be The location shown on the screen.
可选地,当对所述预设解锁图案将要在终端屏幕上显示的形状进行随机变化时,所述随机改变所述预设解锁图案中图案元素的位置包括以下方式的至少一种:Optionally, when the shape of the preset unlocking pattern to be displayed on the terminal screen is randomly changed, the randomly changing the position of the pattern element in the preset unlocking pattern includes at least one of the following manners:
按照随机比例缩小或放大所述预设解锁图案中图案元素之间的间距;Shrinking or enlarging the spacing between pattern elements in the preset unlock pattern according to a random scale;
按照随机偏移量向预定方向移动所述解锁图案中的部分图案元素;Moving a part of the pattern elements in the unlocking pattern in a predetermined direction according to a random offset;
按照随机角度旋转解锁图案中部分图案元素组,其中所述部分图案元素组由位于同一条直线上的图案元素构成。The partial pattern element group in the unlock pattern is rotated at a random angle, wherein the partial pattern element group is composed of pattern elements located on the same straight line.
可选地,所述按照随机比例缩小或放大所述预设解锁图案中图案元素之间的间距具体包括:Optionally, the narrowing or enlarging the spacing between the pattern elements in the preset unlocking pattern according to a random ratio specifically includes:
按照随机比例缩小或放大解锁图案中每个图案元素之间的间距;Reduce or enlarge the spacing between each pattern element in the unlock pattern according to a random scale;
或者or
按照随机比例缩小或放大解锁图案中部分图案元素组中图案元素之间的间距,所述部分图案元素组由位于同一条直线上的图案元素构成。The spacing between the pattern elements in the partial pattern element group in the unlock pattern is reduced or enlarged according to a random scale, the partial pattern element group being composed of pattern elements located on the same straight line.
可选地,当对所述预设解锁图案将要在屏幕上显示的位置进行随机变化时,所述随机改变所述预设解锁图案中图案元素的位置步骤包括以下方式的至少一种:Optionally, when randomly changing a position where the preset unlock pattern is to be displayed on the screen, the step of randomly changing the position of the pattern element in the preset unlock pattern includes at least one of the following manners:
按照随机偏移量向预定方向移动所述解锁图案中所有图案元素;Moving all pattern elements in the unlocking pattern in a predetermined direction according to a random offset;
按照随机的镜像旋转方式旋转解锁图案中对应的图案元素组,所述图案 元素组由位于同一条直线上的图案元素构成。Rotating a corresponding pattern element group in the unlock pattern according to a random mirror rotation manner, the pattern A group of elements consists of pattern elements that are on the same line.
所述预设解锁图案包括:由点阵组成的解锁图案。The preset unlocking pattern includes: an unlocking pattern composed of a dot matrix.
为了解决上述技术问题,本发明实施例还提供了一种解锁装置,包括:变化模块、显示模块和解锁模块;In order to solve the above technical problem, an embodiment of the present invention further provides an unlocking apparatus, including: a change module, a display module, and an unlocking module;
所述变化模块设置为对终端中预设解锁图案进行随机变化,所述预设解锁图案包括预设的用于手势解锁的解锁图案;The change module is configured to randomly change a preset unlock pattern in the terminal, where the preset unlock pattern includes a preset unlock pattern for gesture unlocking;
所述显示模块设置为在所述终端的屏幕上显示变化后的解锁图案;The display module is configured to display a changed unlock pattern on a screen of the terminal;
所述解锁模块设置为当检测到用户在所述变化后的解锁图案上的操作符合预设的操作条件时,对所述终端进行解锁。The unlocking module is configured to unlock the terminal when it is detected that the operation of the user on the changed unlock pattern conforms to a preset operating condition.
可选地,所述变化模块是设置为对所述预设解锁图案将要在终端屏幕上显示的形状和/或位置进行随机变化。Optionally, the variation module is configured to randomly change a shape and/or a position to be displayed on the terminal screen of the preset unlock pattern.
可选地,所述变化模块是设置为通过随机改变所述预设解锁图案中图案元素的位置,对所述预设解锁图案在终端屏幕上显示的形状和/或位置进行随机变化,所述图案元素的位置为所述图案元素将要在所述屏幕上显示的位置。Optionally, the changing module is configured to randomly change a shape and/or a position of the preset unlocking pattern displayed on the terminal screen by randomly changing a position of the pattern element in the preset unlocking pattern, The position of the pattern element is the position at which the pattern element is to be displayed on the screen.
可选地,所述变化模块是设置为按照以下方式的至少一种方式对所述预设解锁图案将要在屏幕上显示的形状进行随机变化:Optionally, the change module is configured to randomly change a shape that the preset unlock pattern is to be displayed on the screen in at least one of the following manners:
按照随机比例缩小或放大所述预设解锁图案中图案元素之间的间距;Shrinking or enlarging the spacing between pattern elements in the preset unlock pattern according to a random scale;
按照随机偏移量向预定方向移动所述解锁图案中的部分图案元素;Moving a part of the pattern elements in the unlocking pattern in a predetermined direction according to a random offset;
按照随机角度旋转解锁图案中部分图案元素组,所述部分图案元素组由位于同一条直线上的图案元素构成。The partial pattern element group in the unlock pattern is rotated at a random angle, and the partial pattern element group is composed of pattern elements located on the same straight line.
其中,所述按照随机比例缩小或放大所述预设解锁图案中图案元素之间的间距包括:The narrowing or enlarging the spacing between the pattern elements in the preset unlocking pattern according to a random ratio includes:
按照随机比例缩小或放大解锁图案中每个图案元素之间的间距;或者Reduce or enlarge the spacing between each pattern element in the unlock pattern according to a random scale; or
按照随机比例缩小或放大解锁图案中部分图案元素组中图案元素之间的间距,所述部分图案元素组由位于同一条直线上的图案元素构成。The spacing between the pattern elements in the partial pattern element group in the unlock pattern is reduced or enlarged according to a random scale, the partial pattern element group being composed of pattern elements located on the same straight line.
可选地,所述变化模块是设置为按照以下方式的至少一种对所述预设解锁图案将要在屏幕上显示的位置进行随机变化: Optionally, the change module is configured to randomly change a position that the preset unlock pattern is to be displayed on the screen according to at least one of the following manners:
按照随机偏移量向预定方向移动所述解锁图案中所有图案元素;Moving all pattern elements in the unlocking pattern in a predetermined direction according to a random offset;
按照随机的镜像旋转方式旋转解锁图案中对应的图案元素组,所述图案元素组由位于同一条直线上的图案元素构成。The corresponding pattern element group in the unlock pattern is rotated in a random mirror rotation manner, and the pattern element group is composed of pattern elements located on the same straight line.
本发明实施例还提供一种计算机可读存储介质,所述存储介质存储有计算机程序,该计算机程序包括程序指令,当该程序指令被终端设备执行时,使得该终端设备可执行上述的解锁方法。The embodiment of the present invention further provides a computer readable storage medium, where the storage medium stores a computer program, the computer program includes program instructions, and when the program instruction is executed by the terminal device, the terminal device can perform the foregoing unlocking method. .
本发明实施例的有益效果是:The beneficial effects of the embodiments of the present invention are:
本发明实施例提供一种解锁方法及装置,可以提高终端的信息安全;具体地,本发明实施例提供的解锁方法,对终端中预设解锁图案进行随机变化,所述预设解锁图案包括预设的用于手势解锁的解锁图案;在所述终端的屏幕上显示变化后的解锁图案;当检测到用户在所述变化后的解锁图案上的操作符合预设的操作条件时,对所述终端进行解锁;通过对预设解锁图案进行随机变化,使得每次显示的解锁图案都不相同,用户每次解锁时在解锁图案上的解锁手势也不一样,因此,即使在屏幕上留下了解锁痕迹,但是解锁痕迹不会由于反复的相同解锁操作而导致很清晰,并且在多次解锁后屏幕上留下的解锁痕迹也是乱的,可以防止他人通过用户终端屏幕上的解锁痕迹来对用户终端进行解锁获取终端信息,与相关技术相比,在不增加硬件成本的情况下,提高了终端的信息安全,可以应用到已经售出的终端上,应用范围广。The embodiment of the present invention provides an unlocking method and device, which can improve the information security of the terminal. Specifically, the unlocking method provided by the embodiment of the present invention randomly changes the preset unlocking pattern in the terminal, and the preset unlocking pattern includes a preset. And an unlocking pattern for gesture unlocking; displaying the changed unlocking pattern on the screen of the terminal; and detecting that the operation of the user on the changed unlocking pattern meets a preset operating condition, The terminal performs unlocking; by randomly changing the preset unlocking pattern, the unlocking pattern displayed each time is different, and the unlocking gesture on the unlocking pattern is different when the user unlocks each time, so even if left on the screen Unlock the trace, but the unlocking trace will not be clear due to the repeated same unlocking operation, and the unlocking trace left on the screen after multiple unlocking is also disordered, which can prevent others from playing the unlocking trace on the screen of the user terminal. The terminal unlocks and acquires the terminal information, and improves the hardware cost without increasing the hardware cost compared with the related technology. Information security terminal, can be applied to the terminal has been sold, wide range of applications.
附图概述BRIEF abstract
图1为本发明实施例一提供的一种解锁方法的流程示意图;FIG. 1 is a schematic flowchart of an unlocking method according to Embodiment 1 of the present invention;
图2为本发明实施例二提供的一种解锁图案的示意图;2 is a schematic diagram of an unlocking pattern according to Embodiment 2 of the present invention;
图3为本发明实施例二提供的一种在解锁图案上建立坐标的示意图;3 is a schematic diagram of establishing coordinates on an unlocking pattern according to Embodiment 2 of the present invention;
图4为本发明实施例二提供的第一种解锁图案整体缩放示意图;4 is a schematic diagram of overall zooming of a first unlocking pattern according to Embodiment 2 of the present invention;
图5为本发明实施例二提供的第二种解锁图案整体缩放示意图;FIG. 5 is a schematic diagram of an overall zooming of a second unlocking pattern according to Embodiment 2 of the present invention; FIG.
图6为本发明实施例二提供的第一种解锁图案部分缩放示意图;FIG. 6 is a schematic diagram showing a partial zooming of a first unlocking pattern according to Embodiment 2 of the present invention; FIG.
图7为本发明实施例二提供的第二种解锁图案部分缩放示意图; FIG. 7 is a schematic diagram showing a partial zooming of a second unlocking pattern according to Embodiment 2 of the present invention; FIG.
图8为本发明实施例二提供的第三种解锁图案部分缩放示意图;FIG. 8 is a schematic diagram showing a partial zooming of a third unlocking pattern according to Embodiment 2 of the present invention; FIG.
图9为本发明实施例二提供的第一种解锁图案部分平移示意图;FIG. 9 is a schematic diagram showing a partial translation of a first unlocking pattern according to Embodiment 2 of the present invention; FIG.
图10为本发明实施例二提供的第二种解锁图案部分平移示意图;FIG. 10 is a schematic diagram showing a partial translation of a second unlocking pattern according to Embodiment 2 of the present invention; FIG.
图11为本发明实施例二提供的第三种解锁图案部分平移示意图;FIG. 11 is a schematic diagram showing a partial translation of a third unlocking pattern according to Embodiment 2 of the present invention; FIG.
图12为本发明实施例二提供的第四种解锁图案部分平移示意图;12 is a schematic diagram showing a partial translation of a fourth unlocking pattern according to Embodiment 2 of the present invention;
图13为本发明实施例二提供的第一种解锁图案部分旋转示意图;FIG. 13 is a schematic diagram showing a partial rotation of a first unlocking pattern according to Embodiment 2 of the present invention; FIG.
图14为本发明实施例二提供的第二种解锁图案部分旋转示意图;14 is a schematic diagram showing a partial rotation of a second unlocking pattern according to Embodiment 2 of the present invention;
图15为本发明实施例二提供的第一种解锁图案整体平移示意图;FIG. 15 is a schematic diagram of an overall translation of a first unlocking pattern according to Embodiment 2 of the present invention; FIG.
图16为本发明实施例二提供的第二种解锁图案整体平移示意图;FIG. 16 is a schematic diagram of an overall translation of a second unlocking pattern according to Embodiment 2 of the present invention; FIG.
图17为本发明实施例二提供的第一种改变解锁图案形状和位置的示意图;17 is a schematic diagram of a first type of changing an unlock pattern and a position according to a second embodiment of the present invention;
图18为本发明实施例二提供的第二种改变解锁图案形状和位置的示意图;FIG. 18 is a schematic diagram showing a second change of shape and position of an unlock pattern according to Embodiment 2 of the present invention; FIG.
图19为本发明实施例二提供的第一种解锁后在屏幕上留下的解锁痕迹的示意图;FIG. 19 is a schematic diagram of an unlocking trace left on a screen after the first unlocking according to Embodiment 2 of the present invention; FIG.
图20为本发明实施例二提供的第二种解锁后在屏幕上留下的解锁痕迹的示意图;20 is a schematic diagram of a second unlocking trace left on the screen after unlocking according to Embodiment 2 of the present invention;
图21为本发明实施例二提供的第三种解锁后在屏幕上留下的解锁痕迹的示意图;FIG. 21 is a schematic diagram of an unlocking trace left on a screen after a third unlocking according to Embodiment 2 of the present invention; FIG.
图22为本发明实施例三提供的一种解锁装置的结构示意图。FIG. 22 is a schematic structural diagram of an unlocking device according to Embodiment 3 of the present invention.
本发明的较佳实施方式Preferred embodiment of the invention
下文中将结合附图对本发明的实施例进行详细说明。需要说明的是,在不冲突的情况下,本申请中的实施例及实施例中的特征可以相互任意组合。另外,虽然在流程图中示出了逻辑顺序,但是在某些情况下,可以以不同于此处的顺序执行所示出或描述的步骤。 Embodiments of the present invention will be described in detail below with reference to the accompanying drawings. It should be noted that, in the case of no conflict, the features in the embodiments and the embodiments in the present application may be arbitrarily combined with each other. Additionally, although logical sequences are shown in the flowcharts, in some cases the steps shown or described may be performed in a different order than the ones described herein.
实施例一:Embodiment 1:
考虑到目前基于解锁图案的解锁方法会在屏幕上留下用户解锁的痕迹导致的终端信息不安全;本实施例提供了一种解锁方法,通过对解锁图案的随机变化,解决在屏幕上留下用户解锁的痕迹导致的终端信息不安全的问题;如图1所示,具体地,本实施例的方法,包括如下步骤:Considering that the unlocking method based on the unlocking pattern currently leaves the terminal information unsafe on the screen, the terminal information is unsafe; the embodiment provides an unlocking method, which solves the problem by randomly changing the unlocking pattern and leaving on the screen. As shown in FIG. 1 , specifically, the method in this embodiment includes the following steps:
步骤101:对终端中预设解锁图案进行随机变化,所述预设解锁图案包括预设的用于手势解锁的解锁图案。Step 101: Randomly change a preset unlock pattern in the terminal, where the preset unlock pattern includes a preset unlock pattern for gesture unlocking.
本实施例中预设解锁图案是用户在终端中选择或设置的解锁图案,用于在终端锁屏时,供用户画手势;例如,九宫格解锁图案或者其他由点组成的解锁图案或者其他可供用户画手势的解锁图案。In this embodiment, the preset unlocking pattern is an unlocking pattern selected or set by the user in the terminal, and is used for the user to draw a gesture when the terminal is locked; for example, a nine-square unlocking pattern or other unlocking pattern composed of dots or other available The unlock pattern of the user's gesture.
较佳地,本步骤中对终端中预设解锁图案进行随机变化可以具体包括:Preferably, the randomly changing the preset unlocking pattern in the terminal in this step may specifically include:
对所述终端中预设解锁图案将要在屏幕上显示的形状和/或位置进行随机变化。The shape and/or position of the preset unlock pattern to be displayed on the screen is randomly changed.
也就说,本实施例方式中对解锁图案进行随机变化的方案包括以下三种变化方案:That is to say, the scheme for randomly changing the unlock pattern in the mode of the embodiment includes the following three variants:
第一种、对解锁图案将要在屏幕上显示的形状进行变化。The first type changes the shape of the unlock pattern to be displayed on the screen.
例如对解锁图案进行缩放或者将解锁图案中的某些图案元素的位置进行移动。For example, the unlock pattern is scaled or the position of some of the pattern elements in the unlock pattern is moved.
第二种,对解锁图案将要在屏幕上显示的位置进行随机变化。Second, the unlock pattern is randomly changed at the position to be displayed on the screen.
例如将解锁图案按照某个方向平移,或者旋转等。For example, the unlock pattern is translated in a certain direction, or rotated.
第三种,对解锁图案的形状和位置进行随机变化。Third, the shape and position of the unlock pattern are randomly changed.
较佳地,在本实施例解锁方法中,可以随机选择上述三种变化方案中一种来对解锁图案进行随机变化。Preferably, in the unlocking method of the embodiment, one of the above three variations may be randomly selected to randomly change the unlock pattern.
具体地,本实施例方法可以通过随机改变所述预设解锁图案中图案元素的位置的方式,对所述终端中预设解锁图案在屏幕上显示的形状和/或位置进行随机变化,所述图案元素的位置为所述图案元素将要在所述屏幕上显示的位置。 Specifically, the method of the embodiment may randomly change the shape and/or position of the preset unlocking pattern displayed on the screen in the terminal by randomly changing the position of the pattern element in the preset unlocking pattern. The position of the pattern element is the position at which the pattern element is to be displayed on the screen.
也就说,当预设解锁图案由至少一个图案元素构成时,可以通过随机改变图案元素的显示位置来改变整个预设解锁图案的显示形状和/或位置。That is to say, when the preset unlock pattern is composed of at least one pattern element, the display shape and/or position of the entire preset unlock pattern can be changed by randomly changing the display position of the pattern element.
步骤102:在所述终端的屏幕上显示变化后的解锁图案。Step 102: Display the changed unlock pattern on the screen of the terminal.
步骤103:当检测用户在所述变化后的解锁图案上的操作符合预设操作条件时,对所述终端进行解锁。Step 103: When detecting that the operation of the user on the changed unlock pattern conforms to a preset operation condition, unlocking the terminal.
本实施例的解锁方法通过对预设解锁图案进行随机变化,使得每次显示的解锁图案都不相同,用户每次解锁时在解锁图案上的解锁手势也不一样,因此,即使在在屏幕上留下的解锁痕迹,但是解锁痕迹不会由于反复的相同解锁操作而导致很清晰,并且在多次解锁后屏幕上留下的解锁痕迹也是乱的;防止他人通过用户终端屏幕上的解锁痕迹来对用户终端进行解锁获取终端信息,与相关技术相比,可以在不增加硬件成本的情况下,提高了终端的信息安全,另外,本实施例的方法还可以应用到已经售出的终端上,应用范围广,实用性强。The unlocking method of this embodiment randomly changes the preset unlocking pattern so that the unlocking pattern displayed each time is different, and the unlocking gesture on the unlocking pattern is different when the user unlocks each time, so even on the screen. The unlocking trace left, but the unlocking trace is not clear due to the repeated same unlocking operation, and the unlocking trace left on the screen after multiple unlocking is also messy; preventing others from passing the unlocking trace on the screen of the user terminal The user terminal is unlocked and the terminal information is obtained. Compared with the related art, the information security of the terminal can be improved without increasing the hardware cost. In addition, the method in this embodiment can be applied to the terminal that has already been sold. Wide range of applications and practicality.
下面分别介绍本实施例方法对预设解锁图案将要在屏幕上显示的形状进行随机变化和对预设解锁图案将要在屏幕上显示的位置进行随机变化具体实现过程(以下所说的位置和形状均指的是将在屏幕上显示的位置和形状,以及以下所说的解锁图案均指的是预设解锁图案):The following describes the specific implementation process of the method in this embodiment for randomly changing the shape of the preset unlocking pattern to be displayed on the screen and randomly changing the position of the preset unlocking pattern to be displayed on the screen (the position and shape described below are respectively described). Refers to the position and shape that will be displayed on the screen, and the unlock pattern described below refers to the preset unlock pattern):
A、对解锁图案的形状进行随机变化:A. Randomly change the shape of the unlock pattern:
当对解锁图案的形状进行随机变化时,本实施例中随机改变所述预设解锁图案中图案元素的位置的方式包括以下方式中的至少一种:When the shape of the unlocking pattern is randomly changed, the manner of randomly changing the position of the pattern element in the preset unlocking pattern in this embodiment includes at least one of the following manners:
A1方式,按照随机比例缩小或放大所述预设解锁图案中图案元素之间的间距。In the A1 mode, the spacing between the pattern elements in the preset unlock pattern is reduced or enlarged according to a random scale.
该种方式是通过对解锁图案整体缩放或者部分缩放来改变解锁图案的形状。具体地,可以包括以下过程中的一种:This way is to change the shape of the unlocking pattern by overall or partial scaling of the unlocking pattern. Specifically, one of the following processes may be included:
A11、按照随机比例缩小或放大解锁图案中各个图案元素之间的间距。A11. Reduce or enlarge the spacing between the individual pattern elements in the unlock pattern according to a random scale.
也就说通过对解锁图案中所有图案元素之间的间距进行缩放以达到对解锁图案进行缩放的效果。本实施例中随机比值可以在一个预设比值区间来随机选取,预设比值区间可以根据终端屏幕的尺寸进行设定。例如对圆形的解 锁图案进行放大或缩小。That is to say, the effect of scaling the unlock pattern is achieved by scaling the spacing between all the pattern elements in the unlock pattern. In this embodiment, the random ratio may be randomly selected in a preset ratio interval, and the preset ratio interval may be set according to the size of the terminal screen. For example, a solution to a circle The lock pattern is enlarged or reduced.
A12、按照随机比例缩小或放大解锁图案中部分图案元素组中图案元素之间的间距,所述图案元素组由位于同一条直线上的图案元素构成。A12. The pitch between the pattern elements in the partial pattern element group in the unlock pattern is reduced or enlarged according to a random scale, and the pattern element group is composed of pattern elements located on the same straight line.
本过程是对解锁图案中部分间距进行缩放,例如对于九宫格解锁图案,将解锁图案的某一行、某一列或对角线按照随机比例进行缩放,即缩放位于某一行、某一列或对角线上点之间的间距。当然也可以对多行、多列或者多个对角线进行缩放。This process is to scale the partial spacing in the unlock pattern. For example, for a nine-square unlock pattern, a row, a column or a diagonal of the unlock pattern is scaled according to a random scale, that is, the zoom is located on a certain row, a column or a diagonal line. The spacing between points. Of course, it is also possible to scale multiple rows, columns, or multiple diagonals.
A2方式,按照随机偏移量向预定方向移动所述解锁图案中的部分图案元素。In the A2 mode, a part of the pattern elements in the unlock pattern are moved in a predetermined direction according to a random offset.
该种方式是通过改变解锁图案中的部分图案元素的位置来改变整体解锁图案的形状。例如可以按照随机偏移量将解锁图案中的某个点、或者位于某一行、某一列或对角线上的点向预定方向移动。具体的例子:将点阵组成的九宫格解锁图案中某个点向左、右、上下等方向移动预设值。This way is to change the shape of the overall unlocking pattern by changing the position of a part of the pattern elements in the unlocking pattern. For example, a certain point in the unlock pattern or a point located on a certain row, a certain column or a diagonal line may be moved in a predetermined direction according to a random offset. Specific example: Move a preset point in the left, right, up and down direction of a point in the nine-square grid unlock pattern composed of dot matrix.
该种方式中随机偏移量是根据屏幕的尺寸来设定。The random offset in this mode is set according to the size of the screen.
A3方式,按照随机角度旋转解锁图案中部分图案元素组,所述图案元素组由位于同一条直线上的图案元素构成。In the A3 mode, a partial pattern element group in the unlock pattern is rotated according to a random angle, and the pattern element group is composed of pattern elements located on the same straight line.
该种方式是通过旋转解锁图案中的点来改变图案的形状,具体地,可以将解锁图案中位于某一行、某一列或对角线上的图案元素同时旋转。例如将九宫格解锁图案中的第一列以中间点为圆形旋转随机角度。当然,本方式还可以将多个图案元素组按照随机角度进行旋转,例如将九宫格解锁图案中第一行和第一列按照随机角度进行旋转。In this way, the shape of the pattern is changed by rotating the dots in the unlocking pattern. Specifically, the pattern elements located in a certain row, a certain column or a diagonal line in the unlocking pattern can be simultaneously rotated. For example, the first column in the nine-square grid unlock pattern is rotated at a random angle with the middle point as a circle. Of course, the method can also rotate a plurality of pattern element groups according to a random angle, for example, rotating the first row and the first column in the nine-square lattice unlock pattern according to a random angle.
该种方式中随机角度是根据屏幕的尺寸来设定。The random angle in this mode is set according to the size of the screen.
应当理解的是:本实施例方法不仅限与上述介绍的方式来改变解锁图案的形状,还可以为其他利用图案元素的位置随机改变从而改变形状的方式。It should be understood that the method of the present embodiment does not only change the shape of the unlocking pattern in the manner described above, but also may be other ways of changing the shape by randomly changing the position of the pattern element.
较佳地,在对预设解锁图案的形状进行随便变化时可以随机选取上述三种方式中至少一种。Preferably, at least one of the above three modes may be randomly selected when the shape of the preset unlocking pattern is changed arbitrarily.
B、对预设解锁图案的位置进行随机变化:B. Randomly change the position of the preset unlock pattern:
当对所述预设解锁图案将要在屏幕上显示的位置进行随机变化时,本实 施例方法中随机改变所述预设解锁图案中图案元素的位置的方式可以包括以下方式中的至少一种:When the preset unlock pattern is to be randomly changed at a position to be displayed on the screen, The manner in which the position of the pattern element in the preset unlock pattern is randomly changed in the embodiment method may include at least one of the following manners:
B1方式,按照随机偏移量向预定方向移动所述解锁图案中所有图案元素。In the B1 mode, all the pattern elements in the unlock pattern are moved in a predetermined direction according to a random offset.
该种方式是整体平移解锁图案,例如向上或下平移解锁图案,即改变了解锁图案在屏幕上的显示位置。This way is an overall translational unlocking pattern, such as panning the unlocking pattern up or down, ie changing the display position of the unlocking pattern on the screen.
B2方式,按照随机的镜像旋转方式旋转解锁图案中对应的图案元素组,所述图案元素组由位于同一条直线上的图案元素构成。In the B2 mode, the corresponding pattern element group in the unlock pattern is rotated in a random mirror rotation manner, and the pattern element group is composed of pattern elements located on the same straight line.
该种方式是通过旋转来改变整个解锁图案的位置;具体地,可以按照随机的镜像旋转方式旋转解锁图案中对应的图案元素组;本实施例中镜像旋转方式指的是可以旋转对应的图案元素组得到镜像解锁图案的方式;而由于旋转时的参考圆心不同和/或需要旋转的图案元素组不同,镜像旋转方式有很多种;本实施例是随机从这多种镜像旋转方式中选取一种镜像旋转方式来旋转对应图案元素组得到镜像解锁图案。In this way, the position of the entire unlocking pattern is changed by rotating; specifically, the corresponding pattern element group in the unlocking pattern can be rotated in a random mirror rotation manner; in this embodiment, the mirror rotation mode refers to the corresponding pattern element that can be rotated. The group obtains the image unlocking pattern; and because the reference center of the rotation is different and/or the pattern element group that needs to be rotated is different, there are many mirror rotation modes; in this embodiment, one of the plurality of mirror rotation modes is randomly selected. The mirror rotation mode is used to rotate the corresponding pattern element group to obtain a mirror unlock pattern.
例如,如果把解锁图案的每一行、每一列、相同对角线方向的每一组元素等以任意点为圆心180°进行旋转,并且这些为圆心的点在一条直线上,则即为得到整个解锁图案的镜像后的解锁图案。For example, if each row, each column of the unlock pattern, each group of elements in the same diagonal direction, and the like are rotated at an arbitrary point of 180°, and the points of the center are in a straight line, the whole is obtained. Unlocks the mirrored unlock pattern of the pattern.
较佳地,在对预设解锁图案的位置进行随便变化时可以随机选取上述两种方式中至少一种Preferably, at least one of the above two methods may be randomly selected when the position of the preset unlocking pattern is changed casually.
C、对预设解锁图案的形状和位置进行随机变化;C. randomly changing the shape and position of the preset unlocking pattern;
这种情况下,分步进行形状和位置的随机变化,也可以同时进行形状和位置的随机变化;在分步进行时,每一步可以参考上述A或B中方式进行变化。In this case, random changes in shape and position can be performed step by step, and random changes in shape and position can be simultaneously performed; in the stepwise step, each step can be changed by referring to the above method A or B.
本实施例提供的解锁方法可以提高终端的信息安全。The unlocking method provided in this embodiment can improve information security of the terminal.
实施例二:Embodiment 2:
本实施例以九宫格解锁图案为例来详细介绍实施例一所述的解锁方法;如图2所示,图中第一副图为触摸屏终端提供的九宫格解锁图案,其由9个 小圈构成,其中黑色的框为触摸屏边缘;以下关于九宫格解锁图案的示例不再赘述。如图3所示,为便于描述,在图2的基础上建立了一个“x-y坐标”,并且对上述9个小圈按照“从左到右,从上到下”的顺序依次编号1、2、3……9,假设上述9个小圈相邻小圈之间横向、纵向距离为a,所以第2个小圈的坐标即为(0,a),第6个小圈的坐标即为(a,0),第五个小圈的坐标即为(0,0)其他各点不再一一描述,另外,第2、4、6、8个小圈分别落在x轴或y轴上,分别划了一道小短线,下面涉及到九宫格解锁图案为例时(即图3-21),不再标注第2、4、6、8个小圈的原始坐标,仅有以该短线表示其原始位置。In this embodiment, the unlocking method described in the first embodiment is described in detail by taking the nine-square grid unlocking pattern as an example; as shown in FIG. 2, the first sub-picture in the figure is a nine-square grid unlocking pattern provided by the touch screen terminal, which is composed of nine A small circle is constructed in which the black frame is the edge of the touch screen; the following examples of the nine-square lattice unlock pattern are not described again. As shown in FIG. 3, for convenience of description, an "xy coordinate" is established on the basis of FIG. 2, and the above 9 small circles are numbered 1, 2 in order from "left to right, top to bottom". 3,9, assuming that the lateral and longitudinal distances between the adjacent small circles of the nine small circles are a, the coordinates of the second small circle are (0, a), and the coordinates of the sixth small circle are (a, 0), the coordinates of the fifth small circle are (0, 0), and the other points are not described one by one. In addition, the second, fourth, sixth, and eighth small circles are respectively on the x-axis or the y-axis. On the top, a small short line is drawn separately. The following refers to the example of the Jiugongge unlocking pattern (ie, Figure 3-21). The original coordinates of the 2nd, 4th, 6th, and 8th small circles are no longer marked, and only the short line is indicated. Its original location.
一、随机改变解锁图案的形状:1. Randomly change the shape of the unlock pattern:
1、通过对解锁图案整体缩放:1. By scaling the unlock pattern as a whole:
解锁图案整体缩、放是指把整个解锁图案按照某一范围内的随机值进行缩小或放大。The overall unlocking and releasing of the unlocking pattern means that the entire unlocking pattern is reduced or enlarged according to a random value within a certain range.
如图4-5所示,图4表示整体缩小得到的解锁图案;图5表示整体放大得到的解锁图案。As shown in FIG. 4-5, FIG. 4 shows the unlock pattern obtained by the overall reduction; FIG. 5 shows the unlock pattern obtained by the overall enlargement.
本实施例中解锁图案整体缩、即把“解锁图案”的“9个小圈”的x、y轴坐标分别乘以[n%,m]之间的一个随机值。其中n,m值的确定方法为:在考虑“解锁图案”的美观、实用和便捷性后,采用一定范围内的随机值,最大不应超过触摸屏边缘,以下随机值获取也有类似描述,不再一一说明。In this embodiment, the unlock pattern is integrally contracted, that is, the x and y axis coordinates of the "9 small circles" of the "unlock pattern" are respectively multiplied by a random value between [n%, m]. The method for determining the value of n, m is: after considering the aesthetics, practicability and convenience of the "unlocking pattern", a random value within a certain range is adopted, and the maximum value should not exceed the edge of the touch screen, and the following random value acquisition has a similar description, no longer One by one.
应当理解的是:It should be understood that:
缩放“解锁图案”时,可以只缩放“解锁图案”的“9个小圈”间的距离,“9个小圈”本身并不进行缩放;也可以同时缩放“解锁图案”的“9个小圈”间的距离和“9个小圈”本身;When zooming the "unlock pattern", you can only zoom the distance between the "9 small circles" of the "unlock pattern". The "9 small circles" itself are not scaled; you can also scale the "unlocked pattern" of "9 small" The distance between the circle and the "9 small circles" itself;
整体缩放“解锁图案”时,一般都以中心点(即第5个小圈);部分缩放“解锁图案”时,一般都以一条线的中心点,比如图6所示,以第6个小圈缩小。对于以非中心点缩放的,一般都可以通过以中心点缩放和平移得到,不再单独说明或举例。When the overall "unlock pattern" is zoomed, the center point (ie, the 5th small circle) is generally used; when the "unlock pattern" is partially zoomed, the center point of a line is generally used, as shown in Figure 6, as shown in Figure 6. The circle is reduced. For zooming at a non-central point, it can generally be obtained by zooming and panning at the center point, and will not be explained or exemplified separately.
2、通过对解锁图案部分缩放:2. Zoom in by partially unlocking the pattern:
解锁图案部分缩、放可以是把解锁图案的某一行、某一列或对角线方向 按照某一范围内的随机值进行缩、放;部分缩、放也适用于多行、多列、多对角线方向缩、放。The unlocking pattern portion may be reduced or lowered by a certain row, a column or a diagonal direction of the unlocking pattern. The shrinking and releasing according to a random value in a certain range; the partial shrinking and releasing are also applicable to multi-row, multi-column, multi-diagonal direction shrinking and releasing.
图6表示最右边一列缩小、其他部分保持不动得到的“解锁图案”;图7表示对角线方向第3、5、7个小圈放大、平行的第2、4个小圈缩小、其他部分保持不动得到的“解锁图案”;图8表示对角线方向第5、7个小圈以第5个小圈放大、其他部分保持不动得到的“解锁图案”;Fig. 6 shows an "unlocking pattern" in which the rightmost column is reduced and the other portions are kept still; FIG. 7 shows that the third, fifth, and seventh small circles in the diagonal direction are enlarged, and the second and fourth small circles are reduced in parallel. Partially unlocked "unlocked pattern"; Figure 8 shows the "unlocked pattern" obtained by zooming in on the 5th and 5th small circles in the diagonal direction and keeping the other parts still.
解锁图案部分缩、放实现起来也相对简单,以图7为例,可按下述步骤实现该图的解锁图案:The unlocking pattern is also relatively simple to achieve, and in the case of FIG. 7, the unlocking pattern of the figure can be implemented as follows:
a)把解锁图案的第3、5、7个小圈的x轴、y轴坐标分别乘以(1,m]之间的一个随机值;a) multiply the x-axis and y-axis coordinates of the 3rd, 5th, and 7th small circles of the unlock pattern by a random value between (1, m);
b)把解锁图案的第2、4个小圈的x轴、y轴坐标分别乘以[n%,1)之间的一个随机值。b) Multiply the x-axis and y-axis coordinates of the 2nd and 4th small circles of the unlock pattern by a random value between [n%, 1).
3、通过对解锁图案部分平移:3. By partially shifting the unlock pattern:
解锁图案部分平移就是把解锁图案的某一行、某一列或对角线方向向左、右、上、下等各个方向按照某一范围内的随机值进行平移;部分平移也适用于多行、多列、多对角线方向平移。The partial shift of the unlock pattern is to translate a certain row, a column or a diagonal direction of the unlock pattern to the left, right, up, down, etc. according to a random value within a certain range; the partial shift is also applicable to multiple rows and multiples. Column, multi-diagonal direction translation.
图9表示最右边一列向上平移、其他部分保持不动得到的“解锁图案”;图10表示中间一行向右平移、其他部分保持不动得到的“解锁图案”;图11表示最右边一列向上平移、最后一行向左平移、其他部分保持不动得到的“解锁图案”;图12表示第3、5、7个小圈按照对角线方向向左下平移、其他部分保持不动得到的“解锁图案”;Figure 9 shows the "unlocked pattern" obtained by shifting the rightmost column up and the other parts remain motionless; Figure 10 shows the "unlocked pattern" obtained by shifting the middle row to the right and the other parts remain motionless; Figure 11 shows the rightmost column panning upwards. The last line is shifted to the left, and the other parts remain untouched. The unlocking pattern is shown in Fig. 12, which shows that the 3rd, 5th, and 7th small circles are shifted to the lower left in the diagonal direction, and the other parts are kept still. ";
解锁图案部分平移以图11为例描述实现方法:The unlocking pattern partial translation is described by taking FIG. 11 as an example to implement the method:
a)把解锁图案的最右边一列,即第3、6、9个小圈的y轴坐标分别加上[n,m]之间的一个随机值;a) adding a random value between [n, m] to the rightmost column of the unlock pattern, that is, the y-axis coordinates of the 3rd, 6th, and 9th small circles;
b)把解锁图案的最后一行,即第7、8、9个小圈的x轴坐标分别减去[n,m]之间的一个随机值。b) Subtract the random value between [n, m] from the last row of the unlock pattern, ie the x-axis coordinates of the 7th, 8th, and 9th small circles.
4、通过对解锁图案部分旋转:4. By partially rotating the unlock pattern:
解锁图案部分旋转就是把解锁图案的某一行、某一列、对角线方向等以 任意点为圆心按照某一范围内的随机角度进行旋转;部分旋转也适用于多行、多列、多对角线方向等旋转。特殊地,如果把解锁图案的每一行、每一列、相同对角线方向的每一组元素等以任意点为圆心180°进行旋转,并且这些为圆心的点在一条直线上,则即为得到整个解锁图案的镜像后的解锁图案。The partial rotation of the unlocking pattern is to make a certain row, a column, a diagonal direction of the unlocking pattern, etc. Any point is the center of the circle rotated according to a random angle within a certain range; partial rotation is also suitable for rotation of multiple rows, multiple columns, multiple diagonal directions. In particular, if each row, each column of the unlock pattern, each group of elements in the same diagonal direction, and the like are rotated at an arbitrary point of 180°, and the points of the center are in a straight line, then The mirrored unlock pattern of the entire unlock pattern.
图13表示最右边一列以解锁图案的第3个小圈为圆心向右旋转α角度、其他部分保持不动得到的“解锁图案”;图14表示对角线方向第3、5、7个小圈以解锁图案的第5个小圈为圆心向右旋转β角度、其他部分保持不动得到的“解锁图案”;Figure 13 shows the "unlocked pattern" in which the third small circle of the unlock pattern is rotated to the right by the angle α, and the other portions are kept stationary; Figure 14 shows the third, fifth, and seventh diagonal directions. The circle is the "unlocked pattern" in which the fifth small circle of the unlock pattern is rotated to the right by the β angle, and the other portions are kept still;
解锁图案部分平移以图14为例描述实现方法:The unlocking pattern partial translation is described by taking FIG. 14 as an example to implement the method:
对角线方向第3、5、7个小圈以解锁图案的第5个小圈为圆心向右旋[n,m]之间的一个随机角度,假设该随机角度为β,则第3个小圈的坐标可以这样计算:The 3rd, 5th, and 7th small circles in the diagonal direction are a random angle between the center of the unlocking pattern and the right side of the circle [n, m], assuming that the random angle is β, then the third The coordinates of the small circle can be calculated like this:
第3个小圈以第5个小圈旋转了β度角,所以第3个小圈到第5个小圈到距离没有变化假设为b(b与a的关系为:b*b=2*a*a),则第3个小圈旋转β度角后的坐标为(b*cos(β+45),b*sin(β+45));同理,第7个小圈旋转β度角后的坐标为(-b*cos(β+45),-b*sin(β+45))。The third small circle rotates the β degree angle by the 5th small circle, so the third small circle to the fifth small circle has no change in distance and is assumed to be b (the relationship between b and a is: b*b=2* a*a), then the coordinates of the third small circle after the rotation of the β degree angle are (b*cos(β+45), b*sin(β+45)); similarly, the seventh small circle rotates β degrees. The coordinates after the angle are (-b*cos(β+45), -b*sin(β+45)).
二、改变解锁图案在屏幕上的位置:Second, change the position of the unlock pattern on the screen:
1、解锁图案整体平移:1. Unlock the overall translation of the pattern:
解锁图案整体平移是指把整个解锁图案按照某一范围内的随机值向左、右、上、下等各个方向按照某一范围内的随机值进行平移。The overall translation of the unlock pattern means that the entire unlock pattern is translated according to a random value within a certain range according to random values in a certain range to the left, right, up, and down directions.
图15表示整个解锁图案向右上方平移得到的“解锁图案”;图16表示整个解锁图案向左下方平移得到的“解锁图案”。Fig. 15 shows an "unlocking pattern" obtained by shifting the entire unlocking pattern to the upper right side; Fig. 16 shows an "unlocking pattern" obtained by shifting the entire unlocking pattern to the lower left.
解锁图案部分平移以图15为例描述实现方法:The unlocking pattern partial translation is described by taking FIG. 15 as an example to implement the method:
由于图15表示整个解锁图案向右上方平移得到的“解锁图案”,所以假设图15整个解锁图案向右移动了[n,m]之间的一个随机值,比如i,向上移动了[n,m]之间的一个随机值,比如j,则解锁图案9个小圈的新坐标可以很容易得到,比如第一个小圈的坐标为(-a+i,a+j)。Since FIG. 15 shows the "unlocking pattern" obtained by shifting the entire unlocking pattern to the upper right, it is assumed that the entire unlocking pattern of FIG. 15 is shifted to the right by a random value between [n, m], such as i, which is moved upward by [n, A random value between m], such as j, the new coordinates of the 9 small circles of the unlock pattern can be easily obtained, for example, the coordinates of the first small circle are (-a+i, a+j).
2、解锁图案镜像: 2. Unlock the pattern image:
如果把解锁图案的每一行、每一列、相同对角线方向的每一组元素等以任意点为圆心180°进行旋转,并且这些为圆心的点在一条直线上,则即为得到整个解锁图案的镜像后的解锁图案。If each row, each column of the unlock pattern, each group of elements in the same diagonal direction, and the like are rotated at an arbitrary point of 180°, and the points of the center are in a straight line, the entire unlock pattern is obtained. The unlocked pattern after mirroring.
三、改变解锁图案的形状和位置:Third, change the shape and position of the unlock pattern:
本实施例可以将上述一情况中的多种方式相互混合来实现对形状的改变,也可以将二情况中的方法相互混合来实现对位置的改变;同样,本实施例方法后还可以将上述一和二情况(即,改变位置和形状)相互混合来随机改变解锁图案。In this embodiment, the manners of the foregoing may be mixed with each other to implement the change of the shape, or the methods in the two cases may be mixed with each other to implement the change of the position. Similarly, the method may also be used in the embodiment. The one and two cases (i.e., changing position and shape) are mixed with each other to randomly change the unlock pattern.
例如,图17-18表示同时改变“屏幕锁定”方法的“解锁图案”的形状和在屏幕上的位置,例如:缩小“解锁图案”并向左移动,如图17所示;放大“解锁图案”并向右下角移动,如图18所示,由于相互混合所得的“解锁图案”很多,所以不再一一列举。For example, FIGS. 17-18 show the shape of the "unlock pattern" and the position on the screen at the same time changing the "screen lock" method, for example, reducing the "unlock pattern" and moving to the left as shown in FIG. 17; enlarging the "unlock pattern" And moving to the lower right corner, as shown in Fig. 18, since there are many "unlocking patterns" obtained by mixing with each other, they are not listed one by one.
实现方法,可以把相互混合分步骤进行,每一步的实现方法可以参考上述一和二情况。The implementation method can be carried out in steps of mixing with each other, and the implementation method of each step can refer to the above one and two cases.
采用本实施例的解锁方法,可以提高终端的信息安全。具体地,如图19-21所示,对比了采用本实施例方法与采用现有技术触摸屏在屏幕上留下指纹“痕迹”情况,其中,第19是未使用本实施例方法在屏幕上留下的指纹“痕迹”,由于“解锁图案”被反复滑动,所以指纹痕迹很清晰;图20是在对整体放大后得到解锁图案上(例如图5所示)解锁后在屏幕上留下的指纹“痕迹”;图21是图4-图8所示的解锁图案上解锁后在屏幕上留下的指纹“痕迹”,由图19-21这三幅图的指纹痕迹对比可见,应用本实施例方法后,解锁时在屏幕上留下了指纹“痕迹”不会由于被反复滑而导致很清晰,并且指纹“痕迹”也是乱的,因此可以增加通过解锁时在屏幕上留下了指纹“痕迹”来成功解锁智能终端的难度。With the unlocking method of this embodiment, the information security of the terminal can be improved. Specifically, as shown in FIG. 19-21, the method of using the embodiment of the present invention and the use of the prior art touch screen to leave a fingerprint "mark" on the screen is compared, wherein the 19th is not left on the screen by using the method of the embodiment. Under the fingerprint "mark", since the "unlock pattern" is repeatedly slid, the fingerprint trace is very clear; FIG. 20 is the fingerprint left on the screen after unlocking the overall unlocked pattern (for example, as shown in FIG. 5). "Trace"; FIG. 21 is a fingerprint "mark" left on the screen after unlocking on the unlock pattern shown in FIG. 4-8, which can be seen by comparing the fingerprint traces of the three figures in FIGS. 19-21, and the embodiment is applied. After the method, the fingerprint "mark" left on the screen when unlocked is not clear because it is repeatedly slipped, and the fingerprint "mark" is also chaotic, so it can increase the fingerprint "mark on the screen when unlocking." "The difficulty of successfully unlocking the smart terminal.
实施例三:Embodiment 3:
如图22所示,本实施例提供了一种解锁装置,包括处理器和程序存储设备,还包括:变化模块、显示模块和解锁模块; As shown in FIG. 22, the embodiment provides an unlocking apparatus, including a processor and a program storage device, and further includes: a change module, a display module, and an unlocking module;
所述变化模块适用于对终端中预设解锁图案进行随机变化,所述预设解锁图案包括预设的用于手势解锁的解锁图案;The change module is adapted to randomly change a preset unlock pattern in the terminal, where the preset unlock pattern includes a preset unlock pattern for gesture unlocking;
所述显示模块适用于在所述终端的屏幕上显示变化后的解锁图案;The display module is adapted to display a changed unlock pattern on a screen of the terminal;
所述解锁模块适用于当检测用户在所述变化后的解锁图案上的操作符合预设操作条件时,对所述终端进行解锁。The unlocking module is adapted to unlock the terminal when detecting that the operation of the user on the changed unlock pattern conforms to a preset operating condition.
较佳地,所述变化模块适用于对所述终端中预设解锁图案将要在屏幕上显示的形状和/或位置进行随机变化。Preferably, the variation module is adapted to randomly change the shape and/or position that the preset unlock pattern is to be displayed on the screen in the terminal.
较佳地,所述变化模块适用于通过随机改变所述预设解锁图案中图案元素的位置的方式,对所述终端中预设解锁图案在屏幕上显示的形状和/或位置进行随机变化,所述图案元素的位置为所述图案元素将要在所述屏幕上显示的位置。Preferably, the change module is adapted to randomly change the shape and/or position of the preset unlock pattern displayed on the screen by randomly changing the position of the pattern element in the preset unlock pattern. The position of the pattern element is the position at which the pattern element is to be displayed on the screen.
较佳地,所述变化模块适用于按照以下方式中的至少一种方式对所述预设解锁图案将要在屏幕上显示的形状进行随机变化:Preferably, the variation module is adapted to randomly change a shape that the preset unlock pattern is to be displayed on the screen in at least one of the following manners:
第一种方式,按照随机比例缩小或放大所述预设解锁图案中图案元素之间的间距;In the first manner, the spacing between the pattern elements in the preset unlocking pattern is reduced or enlarged according to a random scale;
第二种方式,按照随机偏移量向预定方向移动所述解锁图案中的部分图案元素;In a second manner, a part of the pattern elements in the unlocking pattern are moved in a predetermined direction according to a random offset;
第三种方式,按照随机角度旋转解锁图案中部分图案元素组,所述图案元素组由位于同一条直线上的图案元素构成。In a third mode, a partial pattern element group in the unlock pattern is rotated according to a random angle, and the pattern element group is composed of pattern elements located on the same straight line.
较佳地,所述变化模块用于按照以下方式中的至少一种对所述预设解锁图案将要在屏幕上显示的位置进行随机变化:Preferably, the change module is configured to randomly change a position that the preset unlock pattern is to be displayed on the screen according to at least one of the following manners:
第一种方式,按照随机偏移量向预定方向移动所述解锁图案中所有图案元素;In the first manner, all the pattern elements in the unlock pattern are moved in a predetermined direction according to a random offset;
第二种方式,按照随机的镜像旋转方式旋转解锁图案中对应的图案元素组,所述图案元素组由位于同一条直线上的图案元素构成。In the second mode, the corresponding pattern element group in the unlock pattern is rotated in a random mirror rotation manner, and the pattern element group is composed of pattern elements located on the same straight line.
本实施例的解锁装置通过对预设解锁图案进行随机变化,使得每次显示的解锁图案都不相同,用户每次解锁时在解锁图案上的解锁手势也不一样,因此,即使在在屏幕上留下的解锁痕迹,但是解锁痕迹不会由于反复的相同 解锁操作而导致很清晰,并且在多次解锁后屏幕上留下的解锁痕迹也是乱的;防止他人通过用户终端屏幕上的解锁痕迹来对用户终端进行解锁获取终端信息,与相关技术相比,可以在不增加硬件成本的情况下,提高了终端的信息安全,另外,本实施例的装置还可以应用到已经售出的终端上,应用范围广,实用性强。The unlocking device of this embodiment randomly changes the preset unlocking pattern so that the unlocking pattern displayed each time is different, and the unlocking gesture on the unlocking pattern is different when the user unlocks each time, so even on the screen. The unlocking trace left, but the unlocking trace will not be the same due to iteration The unlocking operation is very clear, and the unlocking trace left on the screen after multiple unlocking is also disordered; preventing others from unlocking the user terminal through the unlocking trace on the screen of the user terminal, compared with related technologies, The information security of the terminal can be improved without increasing the hardware cost. In addition, the device of the embodiment can be applied to the terminal that has been sold, and has a wide application range and strong practicability.
本领域普通技术人员可以理解上述方法中的全部或部分步骤可通过程序来指令相关硬件完成,所述程序可以存储于计算机可读存储介质中,如只读存储器、磁盘或光盘等。可选地,上述实施例的全部或部分步骤也可以使用一个或多个集成电路来实现。相应地,上述实施例中的各模块/单元可以采用硬件的形式实现,也可以采用软件功能模块的形式实现。本发明不限制于任何特定形式的硬件和软件的结合。One of ordinary skill in the art will appreciate that all or a portion of the steps described above can be accomplished by a program that instructs the associated hardware, such as a read-only memory, a magnetic or optical disk, and the like. Alternatively, all or part of the steps of the above embodiments may also be implemented using one or more integrated circuits. Correspondingly, each module/unit in the foregoing embodiment may be implemented in the form of hardware or in the form of a software function module. The invention is not limited to any specific form of combination of hardware and software.
当然,本发明还可有其他多种实施例,在不背离本发明精神及其实质的情况下,熟悉本领域的技术人员当可根据本发明作出各种相应的改变和变形,但这些相应的改变和变形都应属于本发明的权利要求的保护范围。The invention may, of course, be embodied in a variety of other embodiments without departing from the spirit and scope of the invention. Changes and modifications are intended to fall within the scope of the appended claims.
工业实用性Industrial applicability
本实施例提供的解锁方案,通过对预设解锁图案进行随机变化,使得每次显示的解锁图案都不相同,不会因为用户反复的相同解锁操作而在屏幕上留下清晰的解锁痕迹,可以防止他人通过用户终端屏幕上的解锁痕迹获得用户终端的解锁信息,在不增加硬件成本的情况下,提高终端的信息安全,实用性强。 The unlocking scheme provided in this embodiment randomly changes the preset unlocking pattern, so that the unlocking pattern displayed each time is different, and the clear unlocking trace is not left on the screen due to the same unlocking operation repeated by the user. The user is prevented from obtaining the unlocking information of the user terminal through the unlocking trace on the screen of the user terminal, and the information security of the terminal is improved and the utility is strong without increasing the hardware cost.

Claims (14)

  1. 一种解锁方法,包括:An unlocking method, including:
    对终端中预设解锁图案进行随机变化,所述预设解锁图案包括预设的用于手势解锁的解锁图案;Performing a random change on the preset unlocking pattern in the terminal, where the preset unlocking pattern includes a preset unlocking pattern for gesture unlocking;
    在所述终端的屏幕上显示变化后的解锁图案;Displaying the changed unlock pattern on the screen of the terminal;
    当检测到用户在所述变化后的解锁图案上的操作符合预设的操作条件时,对所述终端进行解锁。When it is detected that the operation of the user on the changed unlock pattern conforms to a preset operating condition, the terminal is unlocked.
  2. 如权利要求1所述的方法,其中,所述对终端中预设解锁图案进行随机变化的步骤包括:The method of claim 1, wherein the step of randomly changing the preset unlock pattern in the terminal comprises:
    对所述预设解锁图案将要在终端屏幕上显示的形状和/或位置进行随机变化。The shape and/or position of the preset unlock pattern to be displayed on the terminal screen is randomly changed.
  3. 如权利要求2所述的方法,其中,所述对所述预设解锁图案将要在终端屏幕上显示的形状和/或位置进行随机变化的步骤包括:The method of claim 2, wherein the step of randomly changing the shape and/or position of the preset unlock pattern to be displayed on the terminal screen comprises:
    通过随机改变所述预设解锁图案中图案元素的位置,对所述预设解锁图案在屏幕上显示的形状和/或位置进行随机变化,所述图案元素的位置为所述图案元素将要在所述屏幕上显示的位置。Randomly changing the shape and/or position of the preset unlocking pattern displayed on the screen by randomly changing the position of the pattern element in the preset unlocking pattern, the position of the pattern element being that the pattern element is to be The location shown on the screen.
  4. 如权利要求3所述的方法,其中,当对所述预设解锁图案将要在终端屏幕上显示的形状进行随机变化时,所述随机改变所述预设解锁图案中图案元素的位置包括以下方式的至少一种:The method according to claim 3, wherein when the shape of the preset unlock pattern to be displayed on the terminal screen is randomly changed, the randomly changing the position of the pattern element in the preset unlock pattern includes the following manner At least one of:
    按照随机比例缩小或放大所述预设解锁图案中图案元素之间的间距;Shrinking or enlarging the spacing between pattern elements in the preset unlock pattern according to a random scale;
    按照随机偏移量向预定方向移动所述解锁图案中的部分图案元素;Moving a part of the pattern elements in the unlocking pattern in a predetermined direction according to a random offset;
    按照随机角度旋转解锁图案中部分图案元素组,其中所述部分图案元素组由位于同一条直线上的图案元素构成。The partial pattern element group in the unlock pattern is rotated at a random angle, wherein the partial pattern element group is composed of pattern elements located on the same straight line.
  5. 如权利要求4所述的方法,其中,所述按照随机比例缩小或放大所述预设解锁图案中图案元素之间的间距的步骤具体包括:The method of claim 4, wherein the step of reducing or enlarging the spacing between the pattern elements in the preset unlocking pattern according to a random scale comprises:
    按照随机比例缩小或放大解锁图案中每个图案元素之间的间距;Reduce or enlarge the spacing between each pattern element in the unlock pattern according to a random scale;
    或者 Or
    按照随机比例缩小或放大解锁图案中部分图案元素组中图案元素之间的间距,所述部分图案元素组由位于同一条直线上的图案元素构成。The spacing between the pattern elements in the partial pattern element group in the unlock pattern is reduced or enlarged according to a random scale, the partial pattern element group being composed of pattern elements located on the same straight line.
  6. 如权利要求3所述的方法,其中,当对所述预设解锁图案将要在屏幕上显示的位置进行随机变化时,所述随机改变所述预设解锁图案中图案元素的位置步骤包括以下方式的至少一种:The method according to claim 3, wherein when the position where the preset unlock pattern is to be displayed on the screen is randomly changed, the step of randomly changing the position of the pattern element in the preset unlock pattern includes the following manner At least one of:
    按照随机偏移量向预定方向移动所述解锁图案中所有图案元素;Moving all pattern elements in the unlocking pattern in a predetermined direction according to a random offset;
    按照随机的镜像旋转方式旋转解锁图案中对应的图案元素组,所述图案元素组由位于同一条直线上的图案元素构成。The corresponding pattern element group in the unlock pattern is rotated in a random mirror rotation manner, and the pattern element group is composed of pattern elements located on the same straight line.
  7. 如权利要求1-6任一项所述的方法,其中,所述预设解锁图案包括:由点阵组成的解锁图案。The method of any of claims 1-6, wherein the preset unlock pattern comprises an unlock pattern consisting of a dot matrix.
  8. 一种解锁装置,包括:变化模块、显示模块和解锁模块;An unlocking device includes: a change module, a display module and an unlocking module;
    所述变化模块设置为对终端中预设解锁图案进行随机变化,所述预设解锁图案包括预设的用于手势解锁的解锁图案;The change module is configured to randomly change a preset unlock pattern in the terminal, where the preset unlock pattern includes a preset unlock pattern for gesture unlocking;
    所述显示模块设置为在所述终端的屏幕上显示变化后的解锁图案;The display module is configured to display a changed unlock pattern on a screen of the terminal;
    所述解锁模块设置为当检测到用户在所述变化后的解锁图案上的操作符合预设的操作条件时,对所述终端进行解锁。The unlocking module is configured to unlock the terminal when it is detected that the operation of the user on the changed unlock pattern conforms to a preset operating condition.
  9. 如权利要求8所述的装置,其中,所述变化模块是设置为对所述预设解锁图案将要在终端屏幕上显示的形状和/或位置进行随机变化。The apparatus of claim 8, wherein the variation module is configured to randomly vary a shape and/or position to be displayed on the terminal screen of the preset unlock pattern.
  10. 如权利要求9所述的装置,其中,所述变化模块是设置为通过随机改变所述预设解锁图案中图案元素的位置,对所述预设解锁图案在终端屏幕上显示的形状和/或位置进行随机变化,所述图案元素的位置为所述图案元素将要在所述屏幕上显示的位置。The apparatus according to claim 9, wherein the variation module is configured to display a shape of the preset unlock pattern on the terminal screen by randomly changing a position of the pattern element in the preset unlock pattern. The position is randomly changed, and the position of the pattern element is the position at which the pattern element is to be displayed on the screen.
  11. 如权利要求10所述的装置,其中,所述变化模块是设置为按照以下方式的至少一种方式对所述预设解锁图案将要在屏幕上显示的形状进行随机变化:The apparatus of claim 10, wherein the variation module is configured to randomly change a shape that the preset unlock pattern is to be displayed on the screen in at least one of the following manners:
    按照随机比例缩小或放大所述预设解锁图案中图案元素之间的间距;Shrinking or enlarging the spacing between pattern elements in the preset unlock pattern according to a random scale;
    按照随机偏移量向预定方向移动所述解锁图案中的部分图案元素; Moving a part of the pattern elements in the unlocking pattern in a predetermined direction according to a random offset;
    按照随机角度旋转解锁图案中部分图案元素组,所述部分图案元素组由位于同一条直线上的图案元素构成。The partial pattern element group in the unlock pattern is rotated at a random angle, and the partial pattern element group is composed of pattern elements located on the same straight line.
  12. 如权利要求11所述的装置,其中,所述按照随机比例缩小或放大所述预设解锁图案中图案元素之间的间距包括:The apparatus according to claim 11, wherein the narrowing or enlarging the spacing between the pattern elements in the preset unlocking pattern according to a random scale comprises:
    按照随机比例缩小或放大解锁图案中每个图案元素之间的间距;Reduce or enlarge the spacing between each pattern element in the unlock pattern according to a random scale;
    或者or
    按照随机比例缩小或放大解锁图案中部分图案元素组中图案元素之间的间距,所述部分图案元素组由位于同一条直线上的图案元素构成。The spacing between the pattern elements in the partial pattern element group in the unlock pattern is reduced or enlarged according to a random scale, the partial pattern element group being composed of pattern elements located on the same straight line.
  13. 如权利要求10所述的装置,其中,所述变化模块是设置为按照以下方式的至少一种对所述预设解锁图案将要在屏幕上显示的位置进行随机变化:The apparatus of claim 10, wherein the variation module is configured to randomly change a position at which the preset unlock pattern is to be displayed on the screen in at least one of the following manners:
    按照随机偏移量向预定方向移动所述解锁图案中所有图案元素;Moving all pattern elements in the unlocking pattern in a predetermined direction according to a random offset;
    按照随机的镜像旋转方式旋转解锁图案中对应的图案元素组,所述图案元素组由位于同一条直线上的图案元素构成。The corresponding pattern element group in the unlock pattern is rotated in a random mirror rotation manner, and the pattern element group is composed of pattern elements located on the same straight line.
  14. 一种计算机可读存储介质,所述存储介质存储有计算机程序,该计算机程序包括程序指令,当该程序指令被终端设备执行时,使得该终端设备可执行权利要求1-7任一项的方法。 A computer readable storage medium storing a computer program, the computer program comprising program instructions, when the program instruction is executed by a terminal device, causing the terminal device to perform the method of any one of claims 1-7 .
PCT/CN2015/075265 2014-10-24 2015-03-27 Unlocking method and device WO2016062009A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201410577203.7A CN105590050A (en) 2014-10-24 2014-10-24 Unlocking method and unlocking device
CN201410577203.7 2014-10-24

Publications (1)

Publication Number Publication Date
WO2016062009A1 true WO2016062009A1 (en) 2016-04-28

Family

ID=55760172

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2015/075265 WO2016062009A1 (en) 2014-10-24 2015-03-27 Unlocking method and device

Country Status (2)

Country Link
CN (1) CN105590050A (en)
WO (1) WO2016062009A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111310157A (en) * 2020-02-10 2020-06-19 北京无限光场科技有限公司 Password unlocking method, device, equipment and storage medium

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111176522B (en) * 2019-12-16 2021-07-13 维沃移动通信有限公司 Unlocking method and electronic equipment

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101986251A (en) * 2010-10-28 2011-03-16 华为终端有限公司 Touch pattern locking/unlocking method and device
CN102707865A (en) * 2011-03-28 2012-10-03 宏达国际电子股份有限公司 Systems and methods for gesture lock obfuscation
CN103513905A (en) * 2012-06-28 2014-01-15 展讯通信(上海)有限公司 Information processing method and device and portable terminal

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101986251A (en) * 2010-10-28 2011-03-16 华为终端有限公司 Touch pattern locking/unlocking method and device
CN102707865A (en) * 2011-03-28 2012-10-03 宏达国际电子股份有限公司 Systems and methods for gesture lock obfuscation
CN103513905A (en) * 2012-06-28 2014-01-15 展讯通信(上海)有限公司 Information processing method and device and portable terminal

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111310157A (en) * 2020-02-10 2020-06-19 北京无限光场科技有限公司 Password unlocking method, device, equipment and storage medium

Also Published As

Publication number Publication date
CN105590050A (en) 2016-05-18

Similar Documents

Publication Publication Date Title
US10176315B2 (en) Graphical authentication
TW201239738A (en) Systems and methods for gesture lock obfuscation
JP5832339B2 (en) Scale display method and apparatus for scaling operation
US20140115690A1 (en) Electronic device and method for releasing screen locked state
US9946426B2 (en) Method for forming metal mesh pattern and touch panel
JP6687222B2 (en) Terminal device password unlock method, device and terminal device
WO2016206398A1 (en) Method and apparatus for controlling electronic device, and method and apparatus for unlocking hand-held terminal
CN103377001B (en) Control method for locking zoom area of browsed page of touch device
TWI644231B (en) Apparatus and method for enhancing lock screen security
CN106600664B (en) drawing method and device of symmetric graph
WO2016062009A1 (en) Unlocking method and device
WO2018198703A1 (en) Display device
CN105262889A (en) Icon arrangement method and device
JP2015032050A (en) Display controller, display control method, and program
TWI587169B (en) System and method for locking and unlocking an electronic device
US20120274573A1 (en) Korean input method and apparatus using touch screen, and portable terminal including key input apparatus
CN104866224A (en) Method and apparatus for unlocking touch screen, and terminal device
CN104615587B (en) A kind of electronic data composition method and device
CN109426429B (en) Unlocking device, unlocking method and electronic equipment
CN103914245A (en) Control method and device of electronic device
CN106873823B (en) A kind of screen picture method of controlling rotation, device and mobile device
CN101510135B (en) Input pattern judgement method
Jiang et al. A novel gesture-based CAPTCHA design for smart devices
TW201019181A (en) Data input method
CN109145569A (en) A kind of password generation system and method based on slice figure

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: 15853188

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: 15853188

Country of ref document: EP

Kind code of ref document: A1