CN104318186B - A cryptographic method for handover, and the terminal apparatus - Google Patents

A cryptographic method for handover, and the terminal apparatus Download PDF

Info

Publication number
CN104318186B
CN104318186B CN 201410508476 CN201410508476A CN104318186B CN 104318186 B CN104318186 B CN 104318186B CN 201410508476 CN201410508476 CN 201410508476 CN 201410508476 A CN201410508476 A CN 201410508476A CN 104318186 B CN104318186 B CN 104318186B
Authority
CN
Grant status
Grant
Patent type
Application number
CN 201410508476
Other languages
Chinese (zh)
Other versions
CN104318186A (en )
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
Grant date

Links

Abstract

本发明公开了一种密码切换设备,该设备驻留在移动终端中,该设备包括:输入接口,适于接收经由移动终端的触摸屏输入的输入密码;存储单元,适于存储第一密码和第二密码;验证单元,适于将经由触摸屏接收到的输入密码与当前密码进行比较,并根据所述输入密码与当前密码是否一致来确定密码是否验证成功;以及密码切换控制单元,适于将第一密码设置为当前密码,当验证单元确定验证不成功时,判断输入密码与第一密码的相似度是否超过第一阈值;当输入密码与第一密码的相似度超过第一阈值时,则将第二密码设置为当前密码,以便验证单元根据新设置的当前密码对经由输入接口接收的后续输入密码进行验证。 The present invention discloses a switching device password, the mobile device residing in a terminal, the apparatus comprising: an input interface adapted to receive a password via the mobile terminal, touch-screen input; a storage unit adapted to store a first password and two passwords; verification unit, adapted to received via a touch screen input password is compared with the current password, and the password is consistent with the current password to determine whether the password verification is successful according to the input; password and a switching control unit adapted to the first current password as a password, when the authentication unit determines that the verification is unsuccessful, the first degree of similarity is determined password code exceeds a first threshold value; when the input password with the first password similarity exceeds a first threshold value, then the second password is set to the current password to a password authentication unit for subsequent input via the input interface receives a password to verify the new setting of the current. 本发明还公开了包含该密码切换设备的移动终端以及相应的密码切换方法。 The present invention also discloses a mobile terminal and corresponding method comprising the cryptographic key changeover switching device.

Description

一种密码切换方法、设备和终端 A cryptographic method for handover, and the terminal apparatus

技术领域 FIELD

[0001] 本发明涉及移动通讯领域,特别涉及一种密码切换方法、设备和终端。 [0001] The present invention relates to the field of mobile communications, and particularly relates to a cryptographic method for handover, and the terminal apparatus.

背景技术 Background technique

[0002]随着移动互联网络的快速发展,越来越多的用户除了使用移动终端作为通信工具之外,还作为个人的信息管理工具和娱乐平台。 [0002] With the rapid development of mobile Internet, more and more users in addition to using a mobile terminal as a communication tool, but also as a personal information management tools and entertainment platform. 保存在移动终端中的隐私信息也越来越多并且越来越重要。 Private information stored in the mobile terminal more and more and more important. 目前的移动终端一般都提供锁屏界面,用户需要在该锁屏界面上输入正确的解锁手势或者密码,在解锁成功之后,才可以使用移动终端提供的功能。 The current mobile terminals generally provide the lock screen, the user needs to enter the correct password or unlock gesture on the lock screen, after unlocking success, it can use the functions provided by the mobile terminal.

[0003] 然而,由于移动终端的便携性,用户可以在各种场合来使用移动终端,例如用户有可能在人很多的场合使用移动终端。 [0003] However, since the portability of the mobile terminal, the user may use the mobile terminal in various occasions, such as a user using the mobile terminal is possible in the case of many people. 这时候,用户在进行解锁时,其他人可能会看到用户大概输入什么样的手势或者密码。 At this time, when a user carrying unlock, others may see the user input about what kind of gesture or password. 如果用户离开移动终端一段时间,则其他人可以进行尝试,这样会增大密码被破解的危险。 If the user leaves the mobile terminal period of time, then other people can try, this will increase the risk of your password being compromised.

[0004]因此,需要一种能够应对当用户离开移动终端时提高移动终端安全性的技术方案。 [0004] Accordingly, a need exists able to respond when the user leaves the mobile terminal to improve the security of the mobile terminal technical solution.

发明内容 SUMMARY

[0005] 为此,本发明提供一种新的密码切换方法、设备和移动终端,以力图解决或者至少缓解上面存在的问题。 [0005] To this end, the present invention provides a new password switching method, and a mobile terminal apparatus, in an attempt to solve or at least mitigate the above problems occurring.

[0006] 根据本发明的一个方面,提供一种密码切换设备,该设备驻留在移动终端中,该设备包括:输入接口,适于接收经由移动终端的触摸屏输入的输入密码;存储单元,适于存储第一密码和第二密码;验证单元,适于将经由触摸屏接收到的输入密码与当前密码进行比较,并根据所述输入密码与当前密码是否一致来确定密码是否验证成功;以及密码切换控制单元,适于将第一密码设置为当前密码,当验证单元确定验证不成功时,判断输入密码与第一密码的相似度是否超过第一阈值;当输入密码与第一密码的相似度超过第一阈值时,则将第二密码设置为当前密码,以便验证单元根据新设置的当前密码对经由输入接口接收的后续输入密码进行验证。 [0006] In accordance with one aspect of the invention, there is provided a cryptographic switching device which resides in a mobile terminal, the apparatus comprising: an input interface adapted to receive a password via the touch-screen input in a mobile terminal; storing unit, adapted storing a first password and the second password; verification unit, adapted to received via a touch screen input password is compared with the current password, and the password is consistent with the current password to determine whether the password verification is successful according to the input; handover and password a control unit adapted to the first password current password, when the authentication unit determines that the verification is unsuccessful, the first degree of similarity is determined password code exceeds a first threshold value; and a password when the similarity exceeds a first password when a first threshold value, the current password as the second password to a password authentication unit for subsequent input via the input interface receives a password to verify the current newly set.

[0007] 可选地,在根据本发明的密码切换设备中,密码切换控制单元适于:当所述验证单元持续验证不成功的次数超过预定次数时,如果输入密码与第一密码相似度超过第一阈值,则将第二密码设置为当前密码,以便验证单元根据新设置的当前密码对经由输入接口接收的后续输入密码进行验证。 [0007] Alternatively, in the code switching equipment of the present invention, the scramble key changeover control unit is adapted: when the authentication is not successful verification unit continuously exceeds the predetermined number of times, if the first password and the password similarity exceeds a first threshold value, then the password is set to the second current password to a password authentication unit for subsequent input via the input interface receives a password to verify the current newly set.

[0008]可选地,在根据本发明的密码切换设备中,在当前密码为第一密码时,输入接口接收以手势形式输入的输入密码;而在当前密码为第二密码时,输入接口接收以数字串形式输入的输入密码。 [0008] Alternatively, the switching device according to the present invention, the password in the current password when a password is first input interface receives input in the form of a gesture input password; and a second password in the current password, input interface receives enter the password input in the form of a numeric string.

[0009]可选地,在根据本发明的密码切换设备中,密码切换控制单元分别计算输入密码与第一密码的连接码,并根据输入密码与第一密码的连接码的相似程度计算得到输入密码与第一密码的相似度。 [0009] Alternatively, the switching device according to the present invention, the password, the password switching control unit calculates a first password and a password connection code, and the degree of similarity is calculated according to the input connection of the first code password password similarity password with the first password.

[0010] 可选地,在根据本发明的密码切换设备中,密码切换控制单元分别将输入密码和第一密码转换为相应的数字串,并获取各数字串中从第二个数字开始的每个数字相对上一个数字在九宫格中的位置信息,根据预定规则将位置信息转换为字符,连接经转换后的字符而分别得到输入密码和第一密码的连接码。 [0010] Alternatively, the switching device according to the present invention, the password, the password switching control unit respectively a first password and a password into a corresponding string of numbers, each number string, and acquires from the second digit of each relative numbers on a digital position information of squares in accordance with a predetermined rule to convert the location information, characters after conversion respectively connected to the connection code entered password and the first password.

[0011] 可选地,在根据本发明的密码切换设备中,第一阈值的范围为50 %-90 %,优选地为60 %。 [0011] Alternatively, the switching of the cryptographic apparatus of the present invention, a first threshold value range is 50% to 90%, preferably 60%.

[0012]可选地,在根据本发明的密码切换设备中,预定次数的范围为1-5,优选地为3。 [0012] Alternatively, the code switching according to the present invention apparatus, the number of times the predetermined range is 1-5, preferably 3.

[0013] 根据本发明的另一个方面,提供一种密码切换方法,该方法适于在移动终端中执行,所述方法包括:将第一密码设置为用于和输入密码进行比较的当前密码;经由移动终端的触摸屏获取输入密码;将所述输入密码与当前密码进行比较,以判断密码验证是否验证成功;如果验证不成功,判断输入密码与第一密码的相似度是否超过第一阈值;如果输入密码与第一密码的相似度超过第一阈值,则将第二密码设置为当前密码,以便根据新设置的当前密码对接收的后续输入密码进行验证。 [0013] According to another aspect of the present invention, there is provided a cryptographic handover method in a mobile terminal adapted to perform, the method comprising: a first current password for password and comparing the password; Get the mobile terminal via a touch screen to enter a password; comparing the input password with the current password, the password verification to determine whether the verification is successful; if the verification is unsuccessful, the degree of similarity is determined whether or not the first password with the password exceeds a first threshold; if enter the password of the first password similarity exceeds a first threshold value, the current password as the second password, the password to the password received subsequent to verify the new setting of the current.

[0014]可选地,在根据本发明的密码切换方法中,将第二密码设置为当前密码的步骤包括:当所述输入密码持续验证不成功的次数超过预定次数时,如果输入密码与第一密码的相似度超过第一阈值,则将第二密码设置为当前密码,以便根据新设置的当前密码对接收的后续输入密码进行验证。 [0014] Alternatively, in the code switching method of the present invention, the second password to the current password comprises the step of: when the password authentication is unsuccessful the duration count exceeds a predetermined number of times, and if the first password a password similarity exceeds a first threshold value, the current password as the second password, the password to the password received subsequent to verify the new setting of the current.

[0015]可选地,在根据本发明的密码切换方法中,在当前密码为第一密码时,所述移动终端接收以手势形式输入的输入密码;而在当前密码为第二密码时,所述移动终端接收以数字串形式输入的输入密码。 [0015] Alternatively, when the cryptographic handover method according to the present invention, the first password in the current password, the mobile terminal receives a password input in the form of a gesture; and on the current password as the second password, the said mobile terminal receiving a password input in the form of a numeric string.

[0016]可选地,在根据本发明的密码切换方法中,其中还包括步骤:计算所述输入密码与第一密码的连接码,并根据输入密码与第一密码的连接码的相似程度计算得到输入密码与第一密码的相似度。 [0016] Alternatively, in the code switching method of the present invention, further comprising the step of: calculating a password code input connected to the first password, and calculates the degree of similarity and the connection code to enter a password to the first password to obtain the similarity with the first password password.

[0017]可选地,在根据本发明的密码切换方法中,计算输入密码与第一密码的连接码的步骤包括:分别将所述输入密码和第一密码转换为相应的数字串;获取各数字串中从第二个数字开始的每个数字相对上一个数字在九宫格中的位置信息;根据预定规则将位置信息转换为字符;连接经转换后的字符而分别得到输入密码和第一密码的连接码。 [0017] Alternatively, in the handover method according to the present invention, the password, the password and the step of calculating a first password connection code comprises: converting the input code, respectively, and a corresponding digital first password string; acquires each each digit numeric string from the start of the second digit relative position information on a number of squares in; accordance with a predetermined rule to convert the location information of the character; connected via a character obtained after the conversion are entered password and the password of the first connection code.

[0018] 可选地,在根据本发明的密码切换方法中,第一阈值的范围为50%_90%,优选地为60 %。 [0018] Alternatively, in the code switching method of the present invention, a first threshold value range is 50% _90%, preferably 60%.

[0019]可选地,在根据本发明的密码切换方法中,预定次数的范围为1-5,优选地为3。 [0019] Alternatively, in the code switching method of the present invention, the range of the predetermined number of times is 1-5, preferably 3.

[0020] 根据本发明的一个方面,提供一种移动终端,包括触摸屏和如上所述的密码切换设备。 [0020] In accordance with one aspect of the invention, there is provided a mobile terminal including a touch screen and a switching device as described above password.

[0021] 根据本发明提供的技术方案,首先通过预先设置的第一密码验证用户的输入密码是否正确,当验证失败时,如果第一密码和用户输入的密码很像,则启用预先设置的第二密码来对用户后续输入的密码进行验证。 [0021] According to the present invention provides, first verify the user password is correct password is set in advance by the first, when the authentication fails, if the first password and the password entered by the user like, the first preset is enabled two passwords for authentication of subsequent user inputs the password. 由于第一密码和第二密码通常很不相同,例如第二密码的复杂性大于第一密码,这样,即使用户在例如对移动终端解锁期间,在他身边的恶意人员可能看到了他解锁的过程而大致记住了密码,如果该恶意人员后续尝试解锁时,系统会将验证密码切换为更复杂且明显不同的第二密码,从而使得恶意人员难以继续尝试。 Since the first password and the second password is often quite different, for example, the complexity of the password is greater than the second first password, so that, even if the user of the mobile terminal, for example, during unlocking, the malicious person may see around him his unlocking process and generally remember password, if a subsequent attempt to unlock the malicious person, the system will verify the more complex and distinct second password switched, thereby making it difficult for a malicious attempt to continue. 这提高了移动终端的安全性,有效的防止了因移动终端密码被破解造成的隐私泄露。 This improves the security of the mobile terminal, effectively preventing the loss of privacy due to the mobile terminal password is cracked due.

附图说明 BRIEF DESCRIPTION

[0022] 为了实现上述以及相关目的,本文结合下面的描述和附图来描述某些说明性方面,这些方面指示了可以实践本文所公开的原理的各种方式,并且所有方面及其等效方面旨在落入所要求保护的主题的范围内。 [0022] To achieve the foregoing and related ends, herein in connection with the following description and drawings depict certain illustrative aspects that indicate the principles disclosed herein can be practiced in a variety of ways, and all aspects and their equivalents It is intended to fall within the subject matter of the claims. 通过结合附图阅读下面的详细描述,本公开的上述以及其它目的、特征和优势将变得更加明显。 By reading the following detailed description in conjunction with the accompanying drawings, the above and other objects, features and advantages of the present disclosure will become more apparent. 遍及本公开,相同的附图标记通常指代相同的部件或元素。 Throughout this disclosure, like reference numerals generally refer to like parts or elements.

[0023] 图1示出了一个移动终端100的结构框图; [0023] FIG. 1 shows a block diagram of a mobile terminal 100;

[0024]图2示出了根据本发明一个实施例的密码切换设备200的示意图; [0024] FIG. 2 shows a schematic view of a switching device according to an embodiment of the password 200 of the present invention;

[0025]图3示出了根据本发明一个实施例的九宫格图;以及 [0025] FIG. 3 shows a view of one embodiment of the squares of the present invention; and

[0026]图4示出了根据本发明一个实施例的密码切换方法400的流程图。 [0026] FIG. 4 shows a flowchart 400 of a handover method according to the embodiment of the password of the present invention.

具体实施方式 detailed description

[0027] 下面将参照附图更详细地描述本公开的示例性实施例。 [0027] The following exemplary embodiments of the present disclosure will be described in more detail with reference to the drawings. 虽然附图中显示了本公开的示例性实施例,然而应当理解,可以以各种形式实现本公开而不应被这里阐述的实施例所限制。 While the exemplary embodiment shows an exemplary embodiment of the present disclosure in the drawings, it should be understood that the present disclosure may be implemented embodiments and should not be set forth herein to limit in various forms. 相反,提供这些实施例是为了能够更透彻地理解本公开,并且能够将本公开的范围完整的传达给本领域的技术人员。 Rather, these embodiments are able to more thorough understanding of the present disclosure, and the scope of the present disclosure can be completely conveying to those skilled in the art.

[0028]图1是移动终端100的结构框图。 [0028] FIG. 1 is a block diagram of a mobile terminal 100. 具有多点触摸能力的移动终端100可以包括存储器接口102、一个或多个数据处理器、图像处理器和/或中央处理单元104,以及外围接口106。 The mobile terminal having a multi-touch capabilities 100 may include a memory interface 102, one or more data processors, image processors and / or central processing unit 104, and a peripheral interface 106.

[0029] 存储器接口102、一个或多个处理器104和/或外围接口106既可以是分立元件,也可以集成在一个或多个集成电路中。 [0029] The memory interface 102, one or more processors 104 and / or the peripheral interface 106 may be a discrete component, may be integrated in one or more integrated circuits. 在移动终端100中,各种元件可以通过一条或多条通信总线或信号线来耦合。 In the mobile terminal 100, various elements may be coupled via one or more communication buses or signal lines. 传感器、设备和子系统可以耦合到外围接口106,以便帮助实现多种功能。 Sensors, devices and subsystems can be coupled to the peripherals interface 106, in order to help achieve a variety of functions. 例如,运动传感器110、光传感器112和距离传感器114可以耦合到外围接口106,以方便定向、照明和测距等功能。 For example, a motion sensor 110, optical sensor 112 and distance sensor 114 may be coupled to the peripherals interface 106 to facilitate orientation, lighting and ranging functions. 其他传感器116同样可以与外围接口106相连,例如定位系统(例如GPS接收机)、温度传感器、生物测定传感器或其他感测设备,由此可以帮助实施相关的功能。 Other sensors 116 can also be connected to peripherals interface 106, such as a positioning system (e.g. GPS receiver), a temperature sensor, a biometric sensor, or other sensing devices, thereby helping implement the relevant functions.

[0030] 相机子系统120和光学传感器122可以用于方便诸如记录照片和视频剪辑的相机功能的实现,其中所述相机子系统和光学传感器例如可以是电荷耦合器件(CCD)或互补金属氧化物半导体(CMOS)光学传感器。 [0030] A camera subsystem 120 and an optical sensor 122 such as a camera may be used to easily implement the function of recording photographs and video clips, wherein the camera subsystem and the optical sensor may be, for example, a charge coupled device (CCD) or complementary metal oxide semiconductor (CMOS) optical sensor.

[0031] 可以通过一个或多个无线通信子系统124来帮助实现通信功能,其中无线通信子系统可以包括射频接收机和发射机和/或光(例如红外)接收机和发射机。 [0031] can help through one or more wireless communication subsystems 124 implement a communication function, wherein the wireless communication subsystem may include radio frequency receivers and transmitters and / or optical (e.g., infrared) receivers and transmitters. 无线通信子系统124的特定设计和实施方式可以取决于移动终端100所支持的一个或多个通信网络。 The specific design and wireless communication subsystem 124 may depend embodiments one or more communication networks supported by the mobile terminal 100. 例如,移动终端100可以包括被设计成支持GSM网络、GPRS网络、EDGE网络、W1-Fi或WiMax网络以及Bluebooth™网络的通信子系统124。 For example, the mobile terminal 100 may comprise a GSM network is designed to support, communication subsystem GPRS network, EDGE network, W1-Fi or WiMax network, and a network 124 Bluebooth ™.

[0032] 音频子系统126可以与扬声器128以及麦克风130相耦合,以便帮助实施启用语音的功能,例如语音识别、语音复制、数字记录和电话功能。 [0032] The audio subsystem 126 may be coupled to a speaker 128, and microphone 130, to assist in the implementation of voice-enabled functions, such as voice recognition, voice replication, digital recording, and telephony functions.

[0033] I/O子系统140可以包括触摸屏控制器142和/或一个或多个其他输入控制器144。 [0033] I / O subsystem 140 may include a touch screen controller 142 and / or one or more other input controller 144.

[0034] 触摸屏控制器142可以耦合到触摸屏146。 [0034] The touch screen controller 142 may be coupled to the touchscreen 146. 举例来说,该触摸屏146和触摸屏控制器142可以使用多种触摸感测技术中的任何一种来检测与之进行的接触和移动或是暂停,其中感测技术包括但不局限于电容性、电阻性、红外和表面声波技术。 For example, the touch screen 146 and touch screen controller 142 may use any of a plurality of touch sensing technology to detect contact and movement or with whom the suspension, wherein the sensing techniques include, but are not limited to, capacitive, resistive, infrared, and surface acoustic wave technologies.

[0035] 一个或多个其他输入控制器144可以耦合到其他输入/控制设备148,例如一个或多个按钮、摇杆开关、拇指旋轮、红外端口、USB端口、和/或指示笔之类的指点设备。 [0035] The one or more other input controller 144 may be coupled to other input / control devices 148, such as one or more buttons, rocker switches, thumb-wheel, infrared port, USB port, and / or a stylus or the like the pointing device. 一个或多个按钮(未显示)可以包括用于控制扬声器128和/或麦克风130音量的向上/向下按钮。 One or more buttons (not shown) may include a speaker 128 for controlling and / or microphone 130 volume up / down button.

[0036] 存储器接口102可以与存储器150相耦合。 [0036] The memory interface 102 may be coupled to memory 150. 该存储器150可以包括高速随机存取存储器和/或非易失性存储器,例如一个或多个磁盘存储设备,一个或多个光学存储设备,和/或闪存存储器(例如NAND,N0R)。 The memory 150 may include high-speed random access memory and / or nonvolatile memory, such as one or more magnetic disk storage devices, one or more optical storage devices, and / or flash memory (e.g., NAND, N0R).

[0037] 存储器150可以存储操作系统152,例如AndroicU1S或是Windows Phone之类的操作系统。 [0037] The memory 150 may store an operating system 152, such as an operating system, or Windows Phone AndroicU1S like. 该操作系统152可以包括用于处理基本系统服务以及执行依赖于硬件的任务的指令。 The operating system 152 may include instructions for handling basic system services and performing hardware dependent tasks. 存储器150还可以存储各种应用154。 The memory 150 may also store various application 154. 在移动设备运行时,会从存储器150中加载操作系统152,并且由处理器104执行。 In the mobile equipment is operating, the operating system 152 is loaded from the memory 150, and executed by the processor 104. 应用154在运行时,也会从存储器150中加载,并由处理器104执行。 At runtime application 154, also loaded from the memory 150, executed by the processor 104. 应用154运行在操作系统之上,利用操作系统以及底层硬件提供的接口实现各种用户期望的功能,如即时通信、网页浏览、图片管理等。 Application 154 runs on the operating system, using the operating system and the underlying hardware provides various user interface desired features, such as instant messaging, web browsing, picture management. 应用可以是独立于操作系统提供的,也可以是操作系统自带的。 Applications can be independent of the operating system, it can be the operating system itself.

[0038] 在各种应用154中,其中的一种应用为密码切换设备200,该设备可以通过用户的输入密码和预先设置的密码进行对比,从而可以启用复杂密码,有效的防止当用户离开移动终端时密码被破解的情况,有效增加系统的安全性。 [0038] In various applications 154, one of which is a cryptographic application switching device 200, the device may be by comparing the user password and the password set in advance, so as to enable complex password, effectively prevent movement when the user leaves case terminal password is cracked, effectively increasing the security of the system.

[0039]图2示出了根据本发明一个实施例的密码切换设备200的示意图。 [0039] FIG. 2 shows a schematic view of a switching device according to an embodiment of the password 200 of the present invention. 如图2所示,密码切换设备200包括输入接口210、验证单元220、储存单元230和密码切换控制单元240。 As shown, the second switching apparatus 200 includes a password input interface 210, authentication unit 220, storage unit 230, the switching control unit 240 and a password.

[0040] —般而言,用户会给移动终端锁屏和各种应用设置密码,当用户离开移动终端时,其他用户可能尝试输入密码来进行解锁或者进入应用。 [0040] - In general, give the mobile user terminal screen lock password and a variety of applications, when the user leaves the mobile terminal, other users may attempt to enter a password to unlock or enter the application. 因此,当用户在移动终端上输入密码进行验证时,移动终端中的触摸屏146会获取用户的输入密码,并将该输入密码传输给密码切换设备200进行处理。 Thus, when the user inputs the password for authentication on the mobile terminal, the mobile terminal 146 obtains a touch screen user to enter a password, and the password to the password input switching device 200 for processing. 应当注意的是,本发明不受限于此,所有可以启动该密码切换设备的应用或终端都在本发明的保护范围之内。 It should be noted that the present invention is not limited to this, all of the terminal application can be started or switched cryptographic device are within the scope of the present invention.

[0041] 在接收用户的输入密码之前,存储单元230存储有移动终端100中预先设置的第一密码和第二密码。 [0041] Prior to receiving the user password, the storage unit 230 stores a first password and a second password set in advance in the mobile terminal 100. 根据一种实施方式,第一密码为以手势形式输入的输入密码,第二密码为以数字形式输入的输入密码。 According to one embodiment, the first password is a password input in the form of a gesture, a second password is input in digital form, enter the password. 应当注意的是,本发明不受限于第一密码和第二密码的输入的具体形式,所有的第一密码和第二密码的输入方式都在本发明的保护范围之内。 It should be noted that the present invention is not limited to the specific form of the first input of a second password and password, all password input mode first and second passwords are within the scope of the present invention.

[0042] 根据一种实施例,例如,在安卓4.2操作系统中,针对如上所述的第一密码和第二密码,系统中会添加支持输入两套密码的接口,并通过修改LockPatternUtiIs.java中的saveLockPat tern模块和saveLockPas sword模块获取用户设置的第一密码和第二密码,并加密存储于存储单元中。 [0042] According to one embodiment, for example, Andrews 4.2 operating system, as described above for the first password and a second password, the system will be added to the input interface supports two passwords, and by modifying the LockPatternUtiIs.java obtaining a first code and the second saveLockPat password set by the user module and the tern saveLockPas sword module, and stored encrypted in the storage unit.

[0043] 在对来自用户的输入密码进行验证之前,密码切换控制单元240读取存储单元230中的第一密码,并将第一密码设置为验证单元220中的当前密码。 [0043] Before the password from the user is verified, the password a first switching control unit 240 reads the password storage unit 230, and a first password for the current password authentication unit 220.

[0044] 在密码切换设备200中,输入接口210耦合连接验证单元220,该验证单元220经由输入接口210获取用户的输入密码。 [0044] In the switching device password 200, an input interface 210 coupled to the connection authentication unit 220, the verification unit 220 acquires a password 210 via the user input interface. 该输入密码为例如用户以手势形式输入的输入密码。 The password is a password input by the user, for example in the form of a gesture.

[0045] 验证单元220根据接收到的输入密码与第一密码进行对比,并根据输入密码与第一密码的一致性来确定是否验证成功。 [0045] The authentication unit 220 to compare the password received with the first password, and determines whether the password authentication is successful according to the consistency of the first password. 如果密码验证成功,则用户可以进行后续操作。 If the password authentication is successful, the user can proceed. 如果密码验证失败,则由耦接到验证单元220的密码切换控制单元240进行进一步处理。 If the password authentication fails, by password authentication unit 220 is coupled to the switching control unit 240 for further processing.

[0046] 当验证单元220中密码验证失败时,密码切换控制单元240根据用户的输入密码和耦接的存储单元230中的第一密码,来判断输入密码与第一密码的相似度是否超过第一阈值。 [0046] When the authentication unit 220 fails password authentication, a password according to the switching control unit 240 and the user password storage unit 230 coupled to the first password, a password to determine whether the degree of similarity exceeds the first password a threshold value.

[0047] 根据本发明的一种实施方式,在密码切换控制单元240对输入密码与第一密码进行相似度对比时,密码切换控制单元240分别计算出输入密码与第一密码的连接码,并根据输入密码与第一密码的连接码的相似程度计算得到输入密码与第一密码的相似度。 [0047] According to one embodiment of the present invention, the switching control unit 240 in the password when the password with the first password similarity comparison, the switching control unit 240 cryptographic calculates the password and the password is connected to the first codes, and password calculated degree of similarity according to the first degree of similarity password code input connected to the first password and the password.

[0048] 密码切换控制单元240在计算输入密码与第一密码的连接码时,分别将输入密码和第一密码转换为相应的数字串,并获取各数字串中从第二个数字开始每个数字相对上一个数字在九宫格中的位置信息,根据预定规则将位置信息转换为字符,连接经转换后的字符而分别得到输入密码和第一密码的连接码。 [0048] Password the switching control unit 240 when calculating a first password and a password connection code, respectively, a first password and a password into a corresponding string of numbers, each number string, and acquires the second beginning of each digit digital relative position information on a number of squares in accordance with a predetermined rule to convert the location information, characters after conversion respectively connected to the connection code entered password and the first password.

[0049]图3示出了根据本发明一个实施例的九宫格图; [0049] FIG. 3 shows a view of a squared one embodiment of the present invention;

[0050] 根据一个实施例,如图3所示,以九宫格为模板,密码切换控制单元240分别将手势输入密码和第一密码转换为数字串。 [0050] According to one embodiment, shown in FIG. 3, as a template to squares, key changeover control unit 240, respectively, a first gesture input password and the password number string conversion. 随后分别获取输入密码数字串和第一密码数字串中每个数字相对上一个数字的位置信息。 Were subsequently acquires the position information and the password a first password string of numbers each number digit string on a relative number.

[0051]以转换后的输入密码的数字串为4569,第一密码的数字串为1236为例进行说明。 [0051] string of digits is converted into a password 4569, a first string of digits as a password 1236 as an example.

[0052] 在输入密码数字串中: [0052] In the digital input code string:

[0053] 第二个数字为5:相对上一个数字4的位置为右方®ight)。 [0053] The second number is 5: relative position of a number 4 is the right ®ight).

[0054] 第三个数字为6:相对上一个数字5的位置为右方®ight)。 [0054] The third digit is 6: 5 relative position of a number of right ®ight).

[0055] 第四个数字为9:相对上一个数字6的位置为下方(Down)。 [0055] The fourth digit is 9: a relative position of the number six downward (Down).

[0056] 在第一密码数字串中: [0056] In a first password string numbers:

[0057] 第二个数字为2:相对上一个数字I的位置为右方(;Right)。 [0057] The second number is 2: relative position of a digital I rightward (; Right).

[0058] 第三个数字为3:相对上一个数字2的位置为右方®ight)。 [0058] The third number is 3: 2 relative to the position of a number on the right ®ight).

[0059] 第四个数字为6:相对上一个数字3的位置为下方(Down)。 [0059] The fourth digit is 6: 3 relative to the digit position is downward (Down).

[0060]随后,根据上述数字的位置关系,设定预定规则,将相应的位置关系转换为字符。 [0060] Subsequently, the positional relationship of the above figures, a predetermined rule is set, the positional relationship into a corresponding character.

[0061] 根据一个实施方式,位置关系的预定规则为: [0061] According to one embodiment, the positional relationship of predetermined rules:

[0062] 上方:U;下方:D;左方:L;右方:R; [0062] above: U; below: D; left: L; right: R;

[0063] 左上:LU;左下:LD;右上:RU;右下:RD。 [0063] The upper left: LU; bottom left: LD; top right: RU; bottom right: RD.

[0064]因此,连接经转换后的字符得到输入密码的连接码为:RRD,第一密码的连接码为:RRD0 [0064] Thus, the character connected via a connection code converted password is: RRD, the connection code is the first code: RRD0

[0065] 随后,对比输入密码与第一密码连接码的相似程度得到相似度。 [0065] Subsequently, the degree of similarity comparison password code and password to connect to the first degree of similarity obtained. 因此,在上面的示例中,输入密码和第一密码的相似度为100%。 Thus, in the above example, a first password and a password input similarity is 100%.

[0066]当输入密码与第一密码的相似度超过第一阈值时,密码切换控制单元240将第二密码设置为当前密码,以便验证单元220根据新设置的当前密码对经由输入接口210接收的后续输入密码进行验证。 [0066] When the input password with the first password similarity exceeds a first threshold, the switching control unit 240 cryptographic password is set to a second current password to the verification unit 220 according to the newly set interface 210 receives a current via the input password subsequent input password for authentication.

[0067] 根据一种实施方式,第一阈值的范围为50%-90%,优选地可以设置为60%。 [0067] According to one embodiment, a first threshold value range is 50% to 90%, preferably 60% may be provided.

[0068] 根据一个实施例,当密码切换控制单元进行输入密码与第一密码相似度对比时,LockPatternUti Is.java会获取用户的输入密码,LockPatternUti Is.java通过修改checkPattern模块和checkPassword模块增加输入密码与第一密码相似度的对比。 [0068] According to one embodiment, when the switching control unit performs the password with the first password password similarity comparison, LockPatternUti Is.java user obtains a password, LockPatternUti Is.java increased by modifying the password checkPattern modules and module checkPassword compared with the first password similarity. 当密码切换控制单元确定输入密码与第一密码的相似度大于第一阈值时,则读取存储单元中的第二密码并替换data/system下的password.key文件,最终实现密码切换。 When the switching control unit determines that the input password is the password to the first password similarity is greater than a first threshold value, the memory cell is read and replaces the second password data / password.key files under System, ultimately switching password.

[0069] 输入密码和第一密码的连接码反映了当这些密码以手势方式输入时,在屏幕上的走势。 [0069] The first password and the password connection code reflected when these gestures password input mode, on the trend screen. 如果两个密码的走势很接近,则连接码非常相似。 If the two passwords trend is very close, very similar to the connection code. 由于移动终端的便携性,在移动终端用户附近的恶意用户很容易看见用户输入手势的过程,并可以大致猜测出手势在屏幕上的走势。 Because of the portability of the mobile terminal, a malicious user in the vicinity of the mobile terminal user readily visible during user input gesture, and the trend may be roughly guessed gesture on the screen. 当输入密码不同于第一密码,但是又和第一密码具有类似走势时,可以确定不是用户误输入密码,而是可能有其它用户在猜测用户的第一密码,因此,密码切换控制单元240将用于验证的第一密码切换为明显不同于第一密码、并且要复杂的第二密码,从而可以防止密码被猜测出来。 When the input password is different from the first password, but it has a similar trend, and a first password, the user can not determine the password input error, but there may be other users guess the password of the first user, and therefore, the switching control unit 240 the password a first password for verifying the first switch is significantly different from the password, and a second complex passwords, the password can be prevented from being guessed.

[0070]另外,考虑到用户会偶尔输入密码错误,因此可以允许用户在限定次数内持续输入密码而不进行密码切换。 [0070] Further, considering that the user enter a password error occasionally, thus allow the user continues to enter a password in the password without defining the switching frequency. 根据一个实施例,当验证单元220持续验证不成功的次数超过预定次数时,此时,如果密码切换控制单元240确定输入密码与获取的存储单元230中第一密码的相似度超过第一阈值,密码切换控制单元240将第二密码设置为当前密码,以便验证单元220根据新设置的当前密码对经由输入接口210接收的后续输入密码进行验证。 According to one embodiment, when the number of unsuccessful authentication verifying unit 220 continuously exceeds a predetermined number of times, this time, if the password input switching control unit 240 determines the similarity storage unit 230 and acquires a password in the password first exceeds the first threshold value, password switching control unit 240 the current password to the second password to a password authentication unit 220 performs the subsequent authentication password via the input interface 210 receives newly set based on the current.

[0071] 根据一种实施方式,限定次数可以设置的较少,限定次数的范围为1-5次。 [0071] According to one embodiment, defines a small number can be set, defining the number of times in the range of 1-5. 限定次数为3次。 Defining for 3 times.

[0072] 本发明不受限于密码切换控制单元240的具体实现方式,所有可以对移动终端进行密码切换的方式都在本发明的保护范围之内。 [0072] The present invention is not limited to the specific implementation of the cryptographic switching control unit 240, all the way to the mobile terminal can switch the password are within the scope of the present invention.

[0073]图4示出了根据本发明一个示例性实施例的密码切换方法400的流程图。 [0073] FIG. 4 shows a flowchart 400 of a handover method according cryptographic exemplary embodiment of the present invention. 如图4所示,本实施方法适于在移动终端100中执行,例如由上面参考图2描述的密码切换设备200执行,以便有效地将移动终端中的第一密码切换为第二密码,增加系统的安全性。 4, the present embodiment is adapted to perform the method in the mobile terminal 100, for example, with reference to FIG. 2 described above by a switching device 200 performs password, to a mobile terminal effectively switched to the second password to the first password, an increase security of the system. 该密码切换方法始于步骤S410。 The password method begins handover to step S410.

[0074] 在步骤S410中,获取触摸屏上的用户输入密码。 [0074] In step S410, acquires the user on the touch screen to enter a password. 当用户在移动终端上输入密码时,移动终端会获取用户的输入密码,以便执行后续步骤。 When a user enters a password on the mobile terminal, the mobile terminal obtains the user to enter a password in order to perform the subsequent steps. 应当注意的是,本发明不受限于此,所有可以启动该密码切换方法的应用或终端都在本发明的保护范围之内。 It should be noted that the present invention is not limited to this, all of the terminal application can be started or password switching method are within the scope of the present invention.

[0075] 在接收用户的输入密码之前,移动终端中会预先设置第一密码和第二密码。 [0075] Prior to receiving the user password, the mobile terminal can previously set a first password and a second password. 根据一种实施方式,第一密码为以手势形式输入的输入密码,第二密码为以数字形式输入的输入密码。 According to one embodiment, the first password is a password input in the form of a gesture, a second password is input in digital form, enter the password. 应当注意的是,本发明不受限于第一密码和第二密码的输入的具体形式,所有的第一密码和第二密码的输入方式都在本发明的保护范围之内。 It should be noted that the present invention is not limited to the specific form of the first input of a second password and password, all password input mode first and second passwords are within the scope of the present invention.

[0076] 根据一种实施例,例如,在安卓4.2系统中,针对如上所述的第一密码和第二密码,系统代码中会添加支持输入两套密码的接口,并通过修改LockPatternUtiIs.java中的saveLockPat tern模块和saveLockPas sword模块获取用户设置的第一密码和第二密码,并加密存储于存储单元中。 [0076] According to one embodiment, for example, Andrews 4.2 system, as described above for the first password and a second password, the system will add the code input interface supports two passwords, and by modifying the LockPatternUtiIs.java obtaining a first code and the second saveLockPat password set by the user module and the tern saveLockPas sword module, and stored encrypted in the storage unit.

[0077] 在步骤S410之前,可以将将第一密码设置为用于验证的当前密码。 [0077] Before step S410, the password can be set to a first current password used for authentication.

[0078] 随后,在步骤S420中,移动终端根据步骤S410中用户的输入密码与当前密码进行对比,判断密码是否验证成功。 [0078] Subsequently, in step S420, the mobile terminal compared with the current password as the user password in step S410, it is determined whether the password verification is successful. 移动终端根据接收到的输入密码与获取的第一密码进行对比,并根据输入密码与第一密码的一致性来确定是否验证成功。 The mobile terminal comparing the received password with the first password, the authentication is successful and to determine whether to enter a password in accordance with the first identity password. 如果密码验证成功,则密码切换方法结束。 If the password verification is successful, the password switching method ends. 如果密码验证失败,则执行步骤S430。 If the password validation fails, it proceeds to step S430.

[0079] 在步骤S430中,根据在步骤S410中获取的用户输入密码和事先设置的第一密码,判断用户的输入密码和第一密码的相似度是否超过第一阈值。 [0079] In step S430, a first password and a password set in advance based on the user acquired in step S410, it determines whether the user entered password and the first degree of similarity exceeds a first threshold password.

[0080] 根据本发明的一个实施方式,在步骤S430中,对输入密码与第一密码进行相似度对比时,移动终端分别计算出输入密码与第一密码的连接码,并根据输入密码与第一密码的连接码的相似程度计算得到输入密码与第一密码的相似度。 [0080] According to an embodiment of the present invention, in the step S430, when the degree of similarity comparison of the password with the first password, the mobile terminal calculates the input password with the first password connection code, and in accordance with the first password a connection code of the degree of similarity calculated by the similarity of the password and the password to the first password.

[0081] 移动终端在计算输入密码与第一密码的连接码时,分别将输入密码和第一密码转换为相应的数字串,并获取各数字串中从第二个数字开始每个数字相对上一个数字在九宫格中的位置信息,根据预定规则将位置信息转换为字符,连接经转换后的字符而分别得到输入密码和第一密码的连接码。 [0081] When calculating the mobile terminal and the first password password connection code, respectively, a first password and a password into a corresponding digit string, and acquires from the second digit of each numeral in each numeric string on opposite a number of squares in the position information, position information according to a predetermined rule into a character, the character conversion is connected via the respectively connected first code entered password and the password.

[0082] 有关各个密码连接码的计算方式可以参考上面结合图3进行的详细描述,为了简洁起见,这里不再赘述。 [0082] For each connection code password may be calculated above in reference to FIG 3 will be described in detail, for brevity, not repeated here.

[0083] 在步骤S430中,当输入密码与第一密码的相似度超过第一阈值时,执行步骤S440,以便移动终端根据新设置的当前密码对接收的后续输入密码进行验证。 [0083] In step S430, when the input password with the first password similarity exceeds a first threshold value, performing step S440, the password to the mobile terminal receiving a subsequent password to verify the current newly set.

[0084] 根据一种实施方式,第一阈值的范围为50%_90%,优选地可以设置为60%。 [0084] According to one embodiment, a first threshold value range is 50% _90%, preferably 60% may be provided.

[0085] 根据一个实施例,当密码切换控制单元进行输入密码与第一密码相似度对比时,LockPatternUti Is.java会获取用户的输入密码,LockPatternUti Is.java通过修改checkPattern模块和checkPassword模块增加输入密码与第一密码相似度的对比。 [0085] According to one embodiment, when the switching control unit performs the password with the first password password similarity comparison, LockPatternUti Is.java user obtains a password, LockPatternUti Is.java increased by modifying the password checkPattern modules and module checkPassword compared with the first password similarity.

[0086] 在步骤S430中,考虑到用户会偶尔输入密码错误,因此当步骤S420验证失败时,可以允许用户在限定次数内持续输入密码而不进行密码切换。 [0086] In step S430, considering that the user enter a password error occasionally, so when the authentication fails in step S420, the user may be allowed to continue for a limited number of password password without switching. 当验证密码持续验证不成功的次数超过预定次数时,如果确定输入密码与第一密码相似度超过第一阈值,则执行步骤S440,以便验证单元根据新设置的当前密码对接收的后续输入密码进行验证。 When the authentication password authentication failure times of duration exceeds the predetermined number of times, if the first password and the password is determined similarity exceeds a first threshold value, then perform step S440, the password verification unit subsequent to the password received newly set according to the current verification.

[0087] 根据一种实施方式,限定次数可以设置的较少,限定次数的范围为1-5次。 [0087] According to one embodiment, defines a small number can be set, defining the number of times in the range of 1-5. 限定次数为3次。 Defining for 3 times.

[0088] 随后,在步骤S440中,将第二密码设置为当前密码,以便步骤S420根据新设置的当前密码对后续输入密码进行验证。 [0088] Subsequently, in step S440, the password is set to the second current password, the current password to Step S420 subsequent to verify the new password setting.

[0089] 根据一个实施例,当密码切换控制单元确定输入密码与第一密码的相似度大于第一阈值时,则读取存储单元中的第二密码并替换data/system下的password, key文件,最终实现密码切换。 [0089] According to one embodiment, when the switching control unit determines that the input password is the password to the first password similarity is greater than a first threshold value, the memory cell is read a second password and password in the replacement data / system, key file and ultimately password switch.

[0090] 输入密码和第一密码的连接码反映了当这些密码以手势方式输入时,在屏幕上的走势。 [0090] The first password and the password connection code reflected when these gestures password input mode, on the trend screen. 如果两个密码的走势很接近,则连接码非常相似。 If the two passwords trend is very close, very similar to the connection code. 由于移动终端的便携性,在移动终端用户附近的恶意用户很容易看见用户输入手势的过程,并可以大致猜测出手势在屏幕上的走势。 Because of the portability of the mobile terminal, a malicious user in the vicinity of the mobile terminal user readily visible during user input gesture, and the trend may be roughly guessed gesture on the screen. 当输入密码不同于第一密码,但是又和第一密码具有类似走势时,可以确定不是用户误输入密码,而是可能有其它用户在猜测用户的第一密码,因此,移动终端将用于验证的第一密码切换为明显不同于第一密码、并且要复杂的第二密码,从而可以防止密码被猜测出来。 When the input password is different from the first password, but it has a similar trend, and a first password, the user can not determine the password input error, but there may be other users guess the password of the first user, therefore, will be used to authenticate the mobile terminal a first switch is significantly different from the first password code, and a second complex passwords, the password can be prevented from being guessed.

[0091] 本发明不受限于密码切换控制方法的具体实现方式,所有可以对移动终端进行密码切换的方式都在本发明的保护范围之内。 [0091] The present invention is not limited to the specific implementation of the cryptographic handover control method, all of the ways the mobile terminal can switch the password are within the scope of the present invention.

[0092] 在此处所提供的说明书中,说明了大量具体细节。 [0092] In the description provided herein, numerous specific details are described. 然而,能够理解,本发明的实施例可以在没有这些具体细节的情况下被实践。 However, it can be understood that the embodiments of the present invention may be practiced without these specific details. 在一些实例中,并未详细示出公知的方法、结构和技术,以便不模糊对本说明书的理解。 In some examples, not shown in detail in well-known methods, structures and techniques, so as not to obscure the understanding of this description.

[0093] Al:在当前密码为第一密码时,所述移动终端接收以手势形式输入的输入密码;而在当前密码为第二密码时,所述移动终端接收以数字串形式输入的输入密码。 [0093] Al: When the current password as the first password, the mobile terminal receives a password input in the form of a gesture; and when the current password as the second password, the mobile terminal receives an input in the form of a password string of numbers . A2:还包括步骤:计算所述输入密码与第一密码的连接码,并根据输入密码与第一密码的连接码的相似程度计算得输入密码与第一密码的相似度。 A2: further comprising the step of: calculating a password code input connected to the first password, and the degree of similarity calculated password input according to the first degree of similarity password code input connected to the first password with the password. A3:计算输入密码与第一密码的连接码的步骤包括:分别将所述输入密码和第一密码转换为相应的数字串;获取各数字串中从第二个数字开始的每个数字相对上一个数字在九宫格中的位置信息;根据预定规则将位置信息转换为字符;连接经转换后的字符而分别得到输入密码和第一密码的连接码。 A3: a step of calculating a first password and password connection code comprises: respectively, a first password and the password into a corresponding string of digits; obtaining each number string from each of the second digit number starting with the opposite a number of squares in the position information; position information according to a predetermined rule into a character; character after the conversion are connected via a connection code to obtain a first password and a password. A4:第一阈值的范围为50 % -90 %,优选地为60 %oA5:预定次数的范围为1-5,优选地为3。 A4: a first threshold value range is 50% to 90%, preferably 60% oA5: number of times the predetermined range is 1-5, preferably 3.

[0094] 类似地,应当理解,为了精简本公开并帮助理解各个发明方面中的一个或多个,在上面对本发明的示例性实施例的描述中,本发明的各个特征有时被一起分组到单个实施例、图、或者对其的描述中。 [0094] Similarly, it should be understood that the purpose of streamlining the disclosure and aiding in the understanding of one or more of the various inventive aspects in the description of exemplary embodiments of the present invention, various features of the invention are sometimes grouped into a single together embodiment, FIG, or the description thereof. 然而,并不应将该公开的方法解释成反映如下意图:即所要求保护的本发明要求比在每个权利要求中所明确记载的特征更多特征。 However, the methods disclosed herein should not be interpreted as reflecting an intention: that the claimed invention requires more features than in each of the claims expressly recited. 更确切地说,如下面的权利要求书所反映的那样,发明方面在于少于前面公开的单个实施例的所有特征。 More specifically, as reflected in the book as the following claims, inventive aspects lie in less than all features of a single foregoing disclosed embodiment. 因此,遵循具体实施方式的权利要求书由此明确地并入该具体实施方式,其中每个权利要求本身都作为本发明的单独实施例。 Thus, the claims following the specific embodiments are hereby incorporated into this Detailed Description explicitly, with each claim itself as a separate embodiment of the present invention.

[0095] 本领域那些技术人员应当理解在本文所公开的示例中的设备的模块或单元或组件可以布置在如该实施例中所描述的设备中,或者可替换地可以定位在与该示例中的设备不同的一个或多个设备中。 [0095] Those skilled will appreciate that modules or units or components of the device in the examples herein disclosed may be arranged in the apparatus embodiments as described in this embodiment, or may alternatively be positioned in this example the device according to one or more different devices. 前述示例中的模块可以组合为一个模块或者此外可以分成多个子模块。 The foregoing examples may be combined into one module or block addition may be divided into a plurality of sub-modules.

[0096] 本领域那些技术人员可以理解,可以对实施例中的设备中的模块进行自适应性地改变并且把它们设置在与该实施例不同的一个或多个设备中。 [0096] Those skilled in the art can appreciate that embodiments of the device modules adaptively changed and set them in one or more devices different from this embodiment of the. 可以把实施例中的模块或单元或组件组合成一个模块或单元或组件,以及此外可以把它们分成多个子模块或子单元或子组件。 The embodiments may be modules or units into one module or component or components or units, and in addition they can be divided into a plurality of sub-modules or sub-units or sub-assemblies. 除了这样的特征和/或过程或者单元中的至少一些是相互排斥之外,可以采用任何组合对本说明书(包括伴随的权利要求、摘要和附图)中公开的所有特征以及如此公开的任何方法或者设备的所有过程或单元进行组合。 Any method other than such features and / or process, or at least some of the units are mutually exclusive, any combination of the present specification (including the accompanying claims, abstract and drawings) All of the features disclosed in, or disclosed herein and such All process units or equipment combination. 除非另外明确陈述,本说明书(包括伴随的权利要求、摘要和附图)中公开的每个特征可以由提供相同、等同或相似目的的替代特征来代替。 Unless expressly stated otherwise, each feature of the present specification (including the accompanying claims, abstract and drawings) may be provided by the same disclosed, characterized equivalents or similar purpose may be substituted.

[0097] 此外,本领域的技术人员能够理解,尽管在此所述的一些实施例包括其它实施例中所包括的某些特征而不是其它特征,但是不同实施例的特征的组合意味着处于本发明的范围之内并且形成不同的实施例。 [0097] Moreover, those skilled in the art will appreciate that although in some embodiments described herein include some features included in other embodiments, rather than other features, combinations of features of different embodiments are meant in the present within the scope of the invention and form different embodiments. 例如,在下面的权利要求书中,所要求保护的实施例的任意之一都可以以任意的组合方式来使用。 For example, in one embodiment any forth in the following claims, it may be claimed in any combination used.

[0098] 此外,所述实施例中的一些在此被描述成可以由计算机系统的处理器或者由执行所述功能的其它装置实施的方法或方法元素的组合。 [0098] In addition, some of the compositions herein may be described as a method or element of a computer system by a processor, or implemented by other means performing the function of the embodiment. 因此,具有用于实施所述方法或方法元素的必要指令的处理器形成用于实施该方法或方法元素的装置。 Thus, the apparatus for carrying out the method or element of a processor with the necessary instructions for carrying out the method or element of a method forms. 此外,装置实施例的在此所述的元素是如下装置的例子:该装置用于实施由为了实施该发明的目的的元素所执行的功能。 Further, in this embodiment of the device element is an example of the apparatus as follows: The means for implementing the functions of the elements for the purpose of the invention embodiment being performed.

[0099]如在此所使用的那样,除非另行规定,使用序数词“第一”、“第二”、“第三”等等来描述普通对象仅仅表示涉及类似对象的不同实例,并且并不意图暗示这样被描述的对象必须具有时间上、空间上、排序方面或者以任意其它方式的给定顺序。 [0099] As used herein as, unless otherwise specified, use of the ordinal adjectives "first," "second," "third," and the like describe a common object, merely represent different instances of like objects are directed, and are not intended to imply the objects so described must have temporally, spatially, in ranking or in any other aspect of the embodiment of the given sequence.

[0100]尽管根据有限数量的实施例描述了本发明,但是受益于上面的描述,本技术领域内的技术人员明白,在由此描述的本发明的范围内,可以设想其它实施例。 [0100] While the invention has been described to a limited number of embodiments, but the benefit of the above description, those skilled in the art will appreciate, within the scope of the present invention thus described, it is contemplated that other embodiments. 此外,应当注意,本说明书中使用的语言主要是为了可读性和教导的目的而选择的,而不是为了解释或者限定本发明的主题而选择的。 Further, it should be noted that the language used in this specification primarily for purposes of readability and teachings selected, for purposes of explanation and not subject of the present invention is defined or selected. 因此,在不偏离所附权利要求书的范围和精神的情况下,对于本技术领域的普通技术人员来说许多修改和变更都是显而易见的。 Thus, without departing from the scope and spirit of the appended claims of the book, those of ordinary skill in the art Many modifications and variations will be apparent. 对于本发明的范围,对本发明所做的公开是说明性的,而非限制性的,本发明的范围由所附权利要求书限定。 For the scope of the present invention, the present invention is made to the disclosed illustrative and not restrictive, the scope of the invention defined by the appended claims.

Claims (19)

  1. 1.一种密码切换设备,该设备驻留在移动终端中,该设备包括: 输入接口,适于接收经由移动终端的触摸屏输入的输入密码; 存储单元,适于存储第一密码和第二密码; 验证单元,适于将经由触摸屏接收到的输入密码与当前密码进行比较,并根据所述输入密码与当前密码是否一致来确定密码是否验证成功;以及密码切换控制单元,适于将第一密码设置为当前密码,当验证单元确定验证不成功时,判断输入密码与第一密码的相似度是否超过第一阈值;当输入密码与第一密码的相似度超过第一阈值时,则将第二密码设置为当前密码,以便验证单元根据新设置的当前密码对经由输入接口接收的后续输入密码进行验证。 1. A cryptographic switching device which resides in a mobile terminal, the apparatus comprising: an input interface adapted to receive a password via the mobile terminal, touch-screen input; a storage unit adapted to store a first password and a second password ; verification unit, adapted to received via a touch screen input password is compared with the current password, and according to the input password is consistent with the current password to determine whether the password verification is successful; password and a switching control unit adapted to the first password set as the current password, when the authentication unit determines that the verification is unsuccessful, the first degree of similarity is determined password code exceeds a first threshold value; when the input password with the first password similarity exceeds a first threshold value, then the second password is set to the current password to a password authentication unit for subsequent input via the input interface receives a password to verify the new setting of the current.
  2. 2.根据权利要求1所述的密码切换设备,其中所述密码切换控制单元适于: 当所述验证单元持续验证不成功的次数超过预定次数时,如果输入密码与第一密码相似度超过第一阈值,则将第二密码设置为当前密码,以便验证单元根据新设置的当前密码对经由输入接口接收的后续输入密码进行验证。 A password according to claim 1, said switching device, wherein the cryptographic control unit is adapted to switch: when the authentication is not successful verification unit continuously exceeds the predetermined number of times, if the first password and the second password similarity exceeds a threshold, then the password is set to the second current password to a password authentication unit for subsequent input via the input interface receives a password to verify the current newly set.
  3. 3.根据权利要求1所述的密码切换设备,其中在当前密码为第一密码时,所述输入接口接收以手势形式输入的输入密码;而在当前密码为第二密码时,所述输入接口接收以数字串形式输入的输入密码。 The password according to claim 1 when the switching device, wherein the first password in the current password, the password input interface receives input in the form of a gesture; and when the current password as the second password, the input interface receiving a password input in the form of a numeric string.
  4. 4.根据权利要求1-3中任意一个所述的密码切换设备,其中所述密码切换控制单元分别计算所述输入密码与第一密码的连接码,并根据输入密码与第一密码的连接码的相似程度计算得到输入密码与第一密码的相似度。 4. 1-3 password any one of claims switching device, wherein the cryptographic unit calculates the switching control input connected to the first password is a password code and the connection code and the password in accordance with a first password degree of similarity calculated by the similarity of the password to the first password.
  5. 5.根据权利要求4中所述的密码切换设备,其中所述密码切换控制单元分别将所述输入密码和第一密码转换为相应的数字串,并获取各数字串中从第二个数字开始的每个数字相对上一个数字在九宫格中的位置信息,根据预定规则将位置信息转换为字符,连接经转换后的字符而分别得到输入密码和第一密码的连接码。 The password in the switching device 4, wherein the cryptographic control unit respectively switch the first password and the password into a corresponding string of numbers, each number string, and acquires from the second digit to claim each number on the relative position information in a number of squares in accordance with a predetermined rule to convert the location information, characters after conversion respectively connected to the connection code entered password and the first password.
  6. 6.根据权利要求1-3中任意一个所述的密码切换设备,其中所述的第一阈值的范围为50%-90%。 6. The password 1-3 in any one of claims switching device, wherein the range of said first threshold is 50% -90%.
  7. 7.根据权利要求6所述的密码切换设备,其中所述的第一阈值为60 %。 7. The password of the switching device according to claim 6, wherein said first threshold is 60%.
  8. 8.根据权利要求2所述的密码切换设备,其中所述的预定次数的范围为1-5。 8. The password of the switching device according to claim 2, wherein the range of the predetermined number of times is 1-5.
  9. 9.根据权利要求8所述的密码切换设备,其中所述的预定次数为3。 9. The cryptographic said switching device according to claim 8, wherein said predetermined number is 3.
  10. 10.一种密码切换方法,该方法适于在移动终端中执行,所述方法包括: 将第一密码设置为用于和输入密码进行比较的当前密码; 经由移动终端的触摸屏获取输入密码; 将所述输入密码与当前密码进行比较,以判断密码验证是否验证成功; 如果验证不成功,判断输入密码与第一密码的相似度是否超过第一阈值; 如果输入密码与第一密码的相似度超过第一阈值,则将第二密码设置为当前密码,以便根据新设置的当前密码对接收的后续输入密码进行验证。 A cryptographic method for switching, adapted to perform the method in a mobile terminal, the method comprising: comparing a first password for the current password and the password; obtaining a password via the touch screen of the mobile terminal; and comparing the input password with the current password, the password verification to determine whether the verification is successful; if the verification is unsuccessful, the degree of similarity is determined whether or not the first password with the password exceeds a first threshold; if the input password with the first password similarity exceeds a first threshold value, the current password as the second password, the password to the password received subsequent to verify the new setting of the current.
  11. 11.根据权利要求10所述的密码切换方法,其中所述将第二密码设置为当前密码的步骤包括: 当所述输入密码持续验证不成功的次数超过预定次数时,如果输入密码与第一密码的相似度超过第一阈值,则将第二密码设置为当前密码,以便根据新设置的当前密码对接收的后续输入密码进行验证。 11. A cryptographic method of switching according to claim 10, wherein the second password to the current password comprises the step of: when the password authentication is unsuccessful the duration count exceeds a predetermined number of times, and if the first password password similarity exceeds a first threshold value, the current password as the second password, the password to the password received subsequent to verify the new setting of the current.
  12. 12.根据权利要求10所述的密码切换方法,其中在当前密码为第一密码时,所述移动终端接收以手势形式输入的输入密码;而在当前密码为第二密码时,所述移动终端接收以数字串形式输入的输入密码。 12. A cryptographic method of switching according to claim 10, wherein when a current password the first password, the mobile terminal receives a password input in the form of a gesture; and when the current password as the second password, the mobile terminal receiving a password input in the form of a numeric string.
  13. 13.根据权利要求10-12中任意一个所述的密码切换方法,其中还包括步骤: 计算所述输入密码与第一密码的连接码,并根据输入密码与第一密码的连接码的相似程度计算得到输入密码与第一密码相似度。 13. The handover method as claimed in claim password to any one of 10-12, further comprising the step of: calculating a password code input connected to the first password, and a connection code according to the degree of similarity with the first password in the password password calculated degree of similarity with the first password.
  14. 14.根据权利要求13中所述的密码切换方法,其中所述计算输入密码与第一密码的连接码的步骤包括: 分别将所述输入密码和第一密码转换为相应的数字串; 获取各数字串中从第二个数字开始的每个数字相对上一个数字在九宫格中的位置信息; 根据预定规则将位置信息转换为字符; 连接经转换后的字符而分别得到输入密码和第一密码的连接码。 14. A switching method according to the password according to claim 13, wherein said step of calculating a first password and a password connection code comprises: converting the input code, respectively, and a corresponding digital first password string; acquires each each digit numeric string from the start of the second digit relative position information on a number of squares in; accordance with a predetermined rule to convert the location information of the character; connected via a character obtained after the conversion are entered password and the password of the first connection code.
  15. 15.根据权利要求10-12中任意一个所述的密码切换方法,其中所述的第一阈值的范围为50%-90 %。 According to any of claims 10-12 according to a cryptographic handover method, wherein a range of the first threshold is 50% -90%.
  16. 16.根据权利要求15所述的密码切换方法,其中所述的第一阈值为60 %。 16. A cryptographic method of handover as claimed in claim 15, wherein said first threshold is 60%.
  17. 17.根据权利要求11所述的密码切换方法,其中所述的预定次数的范围为1-5。 17. A cryptographic method of switching according to claim 11, wherein the range of the predetermined number of times is 1-5.
  18. 18.根据权利要求17所述的密码切换方法,其中所述的预定次数为3。 18. A cryptographic method of switching as claimed in claim 17, wherein said predetermined number is 3.
  19. 19.一种移动终端,包括触摸屏和如权利要求1-9中任一个所述的密码切换设备。 19. A mobile terminal, and includes a touch screen as claimed in any of claims 1-9 in the switching device a password.
CN 201410508476 2014-09-28 2014-09-28 A cryptographic method for handover, and the terminal apparatus CN104318186B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN 201410508476 CN104318186B (en) 2014-09-28 2014-09-28 A cryptographic method for handover, and the terminal apparatus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN 201410508476 CN104318186B (en) 2014-09-28 2014-09-28 A cryptographic method for handover, and the terminal apparatus

Publications (2)

Publication Number Publication Date
CN104318186A true CN104318186A (en) 2015-01-28
CN104318186B true CN104318186B (en) 2017-03-15

Family

ID=52373417

Family Applications (1)

Application Number Title Priority Date Filing Date
CN 201410508476 CN104318186B (en) 2014-09-28 2014-09-28 A cryptographic method for handover, and the terminal apparatus

Country Status (1)

Country Link
CN (1) CN104318186B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104780162A (en) * 2015-03-24 2015-07-15 深圳市艾优尼科技有限公司 Authentication information verification method

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5592553A (en) * 1993-07-30 1997-01-07 International Business Machines Corporation Authentication system using one-time passwords
US5793952A (en) * 1996-05-17 1998-08-11 Sun Microsystems, Inc. Method and apparatus for providing a secure remote password graphic interface
CN102411682A (en) * 2011-08-01 2012-04-11 吴成贵 Password setting and authentication method
CN102693380A (en) * 2012-05-07 2012-09-26 李良 Password authentication method

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5592553A (en) * 1993-07-30 1997-01-07 International Business Machines Corporation Authentication system using one-time passwords
US5793952A (en) * 1996-05-17 1998-08-11 Sun Microsystems, Inc. Method and apparatus for providing a secure remote password graphic interface
CN102411682A (en) * 2011-08-01 2012-04-11 吴成贵 Password setting and authentication method
CN102693380A (en) * 2012-05-07 2012-09-26 李良 Password authentication method

Also Published As

Publication number Publication date Type
CN104318186A (en) 2015-01-28 application

Similar Documents

Publication Publication Date Title
US20060005023A1 (en) Input device feature
US20120124662A1 (en) Method of using device motion in a password
US20120127179A1 (en) Method, apparatus and computer program product for user interface
US20090083847A1 (en) Embedded authentication systems in an electronic device
US20090191846A1 (en) Biometric smart card for mobile devices
US20070136796A1 (en) Wireless authentication
US20100138914A1 (en) System and method of providing biometric quick launch
US20130219454A1 (en) Location-based security system for portable electronic device
US20130142363A1 (en) Devices and methods for transferring data through a human body
US20150257004A1 (en) Symbiotic biometric security
US20130227678A1 (en) Method and system for authenticating user of a mobile device via hybrid biometics information
US20140189828A1 (en) System and method for processing random challenges within an authentication framework
US20110080260A1 (en) Method and computer program product of switching locked state of electronic device
CN103745147A (en) System mode starting method and application program starting method and device
US20140283012A1 (en) Method of locking an application on a computing device
US20130305336A1 (en) User-based identification system for social networks
US20150067827A1 (en) Apparatus and method for setting a user-defined pattern for an application
WO2012120253A1 (en) Method and apparatus for transferring data
US20140189791A1 (en) System and method for implementing privacy classes within an authentication framework
US20150089585A1 (en) Scored Factor-Based Authentication
CN103135761A (en) Method of executing software functions using biometric detection and related electronic device
US9286482B1 (en) Privacy control based on user recognition
US20150012988A1 (en) Authentication method and authentication system
CN104391635A (en) Device and method for unlocking screen
US20130347087A1 (en) Authenticating A User Of A System Via An Authentication Image Mechanism

Legal Events

Date Code Title Description
C06 Publication
C10 Entry into substantive examination
C14 Grant of patent or utility model