WO2016045469A1 - 信息加密方法和移动终端 - Google Patents

信息加密方法和移动终端 Download PDF

Info

Publication number
WO2016045469A1
WO2016045469A1 PCT/CN2015/087393 CN2015087393W WO2016045469A1 WO 2016045469 A1 WO2016045469 A1 WO 2016045469A1 CN 2015087393 W CN2015087393 W CN 2015087393W WO 2016045469 A1 WO2016045469 A1 WO 2016045469A1
Authority
WO
WIPO (PCT)
Prior art keywords
encryption
plaintext
ciphertext
input box
input
Prior art date
Application number
PCT/CN2015/087393
Other languages
English (en)
French (fr)
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 WO2016045469A1 publication Critical patent/WO2016045469A1/zh

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L9/00Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols

Definitions

  • This application relates to, but is not limited to, the field of mobile communications.
  • This paper provides an information encryption method and mobile terminal, which solves the security problem of the terminal leaking user information.
  • An information encryption method including:
  • the plaintext display is replaced with the ciphertext.
  • the method further includes:
  • the obtaining the encryption indication includes:
  • the obtaining the encryption indication includes:
  • the encryption indication including all or part of the plaintext content of the input box that needs to be encrypted.
  • the encryption indication further includes an encryption key.
  • encrypting the plaintext in the input box according to the encryption indication, and obtaining the ciphertext includes:
  • the method further includes:
  • the ciphertext portion is displayed in a hyperlink form.
  • a mobile terminal includes:
  • Instructing the obtaining module to be set to: obtain an encryption indication
  • the encryption execution module is configured to: encrypt the plaintext in the input box according to the encryption indication, to obtain a ciphertext;
  • a display module configured to: replace the plaintext display with the ciphertext.
  • the mobile terminal further includes:
  • the prompting module is configured to: when detecting that there is a text input in the input box, issue a prompt message for whether to encrypt.
  • the indication obtaining module includes:
  • a display control unit configured to: display a system navigation edit bar including an encryption button when detecting that some or all of the plaintext is selected in the input box;
  • the encryption determining unit is configured to: after detecting that the encryption button is triggered by clicking, determine to encrypt some or all of the selected plaintext in the input box.
  • the indication obtaining module includes:
  • the indication receiving unit is configured to: obtain an externally input encryption indication, the encryption indication including all or part of the plaintext content in the input box that needs to be encrypted.
  • the encryption indication further includes an encryption key.
  • the encryption execution module is configured to: encrypt part or all of the plaintext selected by the input box to obtain the ciphertext corresponding to the part or all of the plaintext.
  • the display module is further configured to display the content of the subsequent input in a plain text when detecting that the content continues to be input in the input box.
  • the display module displays the ciphertext
  • the ciphertext portion is displayed in a hyperlink form.
  • a computer readable storage medium storing computer executable instructions for performing the method of any of the above.
  • An embodiment of the present invention provides an information encryption method and a mobile terminal.
  • the mobile terminal obtains an encryption indication, and encrypts the plaintext in the input box according to the encryption indication to obtain a ciphertext, and then replaces the ciphertext with the ciphertext. Clear text display.
  • the encryption of the input information in the communication software is realized, and the security problem of the terminal leaking the user information is solved.
  • Figure 1 is a schematic diagram of an input text suspension encryption button
  • Figure 2 is a schematic diagram of the interface after clicking the hover button
  • FIG. 3 is a schematic diagram of an interface restored to plaintext after generating a ciphertext
  • FIG. 4 is a schematic diagram of automatically identifying a hyperlink in a transceiving record after sending a ciphertext
  • Figure 5 is a schematic diagram of entering a key after clicking a ciphertext hyperlink
  • Figure 6 is a schematic diagram showing plain text after the key is correct
  • Figure 7 is a schematic diagram of a complete interaction process of encryption and decryption
  • Figure 8 is a schematic diagram of a long press text to invoke a navigation edit bar
  • Figure 9 is a schematic diagram of the contents of the encrypted input box
  • FIG. 10 is a flowchart of an information encryption method according to Embodiment 2 of the present invention.
  • FIG. 11 is a schematic structural diagram of a mobile terminal according to Embodiment 3 of the present invention.
  • FIG. 12 is a schematic structural diagram of the indication acquiring module 1101 in FIG.
  • clients such as SMS are not encrypted during transmission, and are easily intercepted or leaked.
  • Clients such as WeChat and QQ are encrypted during the transmission process but are displayed on the client. When displayed, the plain text is directly displayed. If the mobile phone is lost, or the other person shares the mobile phone, or the server account is stolen by others, the past sensitive chat records will still leak, causing huge losses to the user.
  • An embodiment of the present invention provides an information encryption method for directly encrypting communication content on a mobile terminal.
  • the user can directly encrypt the plaintext that needs to be encrypted before sending, and then send it after encryption, and send it out and receive it by the other party. It is a ciphertext, and the other party can only decrypt it by the key agreed by both parties. In this way, even if other people obtain the communication content through the improper channel, they cannot know the content of the communication.
  • An embodiment of the present invention provides an information encryption method, which provides an encryption function in an information input process. After the user input is completed, the user may select encryption if necessary, encrypt all or part of the original plaintext, and then store the ciphertext. Or send it. After the stored ciphertext is opened again, or the other party to the communication receives the ciphertext, it needs to input the encrypted password to decrypt the ciphertext, thereby ensuring the security of the content.
  • Embodiments of the present invention provide an encryption function for input information and a decryption function after storage or transmission when the mobile terminal software performs information input.
  • Adding and decrypting links include:
  • the ciphertext generated by the above encryption is directly replacing the original content in the input box.
  • the ciphertext and the original plaintext are transparent, and all are just ordinary content, but As far as the user is concerned, the ciphertext is a messy character that cannot directly understand the meaning, so as to achieve the function of confidentiality.
  • the user can select the sending function of the communication software to send the ciphertext, or save the ciphertext in the note software.
  • the chat message in the send and receive records The recording will automatically detect whether the ciphertext format used in the embodiment of the present invention is displayed in a hyperlink or the like, and the user clicks the hyperlink to pop up the input key interface. If the key is correct, the password will be dense.
  • the text is decrypted as plain text, as shown in Figures 4-6.
  • the embodiment of the present invention encrypts and decrypts the input information content itself, and the application software itself is not limited.
  • the encrypted ciphertext is treated as ordinary plaintext for the application software.
  • the encryption function is provided by automatically detecting whether the input box has information input to automatically pop up or hide the encryption and decryption floating button.
  • the encryption and decryption algorithm used for encryption and decryption itself is not limited, and any recognized mature encryption and decryption algorithm or a new algorithm may be used for encryption and decryption.
  • the interaction mode, the encryption and decryption mode, and the like may include, but are not limited to, other alternative technical solutions.
  • the cryptographic interaction entry and encryption are provided in the system control or other custom interface popped up after the long press.
  • the encryption button is newly added. After clicking the button, the content in the input box is automatically encrypted (such as If the key is not configured, a key configuration interface similar to the above scheme should be popped up first.
  • the content of the input box is directly replaced with the ciphertext, and the toolbar disappears.
  • encryption and decryption can also be implemented by setting a global encryption/decryption button, that is, the floating button is always suspended on any interface, and when the encryption is needed, the content of the currently input input box is encrypted and decrypted by clicking the global button.
  • the input box event interception interface is encrypted and decrypted, that is, when the user clicks or touches the input box, a new text editing interface is directly popped up, and the text is input and encrypted in the interface, and the generated ciphertext is displayed to the original after the encryption is completed. Input box.
  • This solution is suitable for editing and encrypting large amounts of text.
  • the input method of the encryption and decryption key may include, but is not limited to, other key modes in addition to texts such as numbers and letters: a) pattern key mode, that is, in the process of adding and decrypting, dense The key is a pre-agreed pattern, and the encryption is performed by the correspondence between the pattern and the specific key, and when the decryption is performed, the pattern is first input, and the pattern is decrypted by the correspondence relationship with the specific key.
  • gesture key mode that is, in the process of adding and decrypting, the key is a pre-agreed gesture, and the encryption is performed by the corresponding relationship between the gesture and the specific key, and the gesture is first input when the decryption is performed, and the correspondence between the gesture and the specific key is adopted. Relationship to decrypt; b) face, palm print, voiceprint, fingerprint and other biometric identification methods. The encryption and decryption process first establishes the correspondence between the relevant biometrics and the specific key to perform encryption and decryption processing.
  • the above scheme directly encrypts the contents of the input box directly.
  • a slight modification can only encrypt and decrypt part of the information in the input box, that is, partial encryption and decryption technology.
  • Partial selection of the content in the input box is an existing related technology. Part of the encryption and decryption only needs to encrypt and replace the selected content on the basis of the original encryption and decryption scheme.
  • both parties of the communication use the same key agreed in advance, that is, the symmetric encryption and decryption method in which the encryption and decryption keys are consistent.
  • the process of encryption and decryption can adopt asymmetric encryption of public and private keys.
  • the general process is as follows: 1) Before communication, A first obtains B's public key through standard communication, and will The public key of B is saved to the mobile terminal. 2) When communicating, A enters the plain text in the input box, and then clicks the encryption button to encrypt.
  • An embodiment of the present invention provides an information encryption method.
  • the method for performing encryption when a mobile terminal inputs text through a communication software is as shown in FIG. 10, and includes:
  • Step 1001 Obtain an encryption indication.
  • This step includes two methods:
  • the mobile terminal When the mobile terminal detects that there is a text input in the input box, the mobile terminal sends out whether to perform encryption.
  • the message may be displayed in the form of a pop-up window to ask the user whether the content in the input box needs to be encrypted.
  • the encryption indication input by the user is detected. The user can choose to encrypt some or all of the content in the input box.
  • the mobile terminal After the user inputs some content in the input box, the user can select all or part of the input text by long pressing and the like.
  • the mobile terminal displays a system navigation edit bar including an encryption button, and after detecting that the encryption button is triggered by tapping, determining that the input box is selected Part or all of the plaintext is encrypted.
  • the encryption indication is used as an external input encryption indication, and the encryption indication includes all or part of the plaintext content in the input box that needs to be encrypted.
  • the encryption indication further includes an encryption key, indicating that the mobile terminal encrypts using the encryption key.
  • the mobile terminal can also perform encryption using a preset encryption key.
  • Step 1002 Encrypt the plaintext in the input box according to the encryption indication to obtain a ciphertext
  • Step 1003 Replace the plaintext display with the ciphertext
  • the ciphertext portion is displayed in a hyperlink form.
  • the menu containing the decryption function option can be called up, and the corresponding content can be decrypted and displayed.
  • the mobile terminal displays the content of the subsequent input in plain text when detecting that the content continues to be input in the input box.
  • the embodiment of the invention provides a mobile terminal, and its structure is as shown in FIG. 11 and includes:
  • Instructing the obtaining module 1101, configured to: obtain an encryption indication
  • the encryption execution module 1102 is configured to: encrypt the plaintext in the input box according to the encryption indication, to obtain a ciphertext;
  • the display module 1103 is configured to replace the plaintext display with the ciphertext.
  • the device further includes:
  • the prompting module 1104 is configured to: when detecting that there is a text input in the input box, issue prompt information indicating whether to encrypt.
  • the structure of the indication obtaining module 1101 is as shown in FIG. 12, and includes:
  • the display control unit 1201 is configured to: when detecting that some or all of the plaintext in the input box is selected, display a system navigation edit bar including an encryption button;
  • the encryption determining unit 1202 is configured to: after detecting that the encryption button is triggered by clicking, determine to encrypt some or all of the selected plaintext in the input box.
  • the indication obtaining module 1101 further includes:
  • the indication receiving unit 1203 is configured to: obtain an externally input encryption indication, the encryption indication including content of all or part of the plaintext in the input box that needs to be encrypted.
  • the encryption indication further includes an encryption key.
  • the encryption execution module 1102 is configured to: encrypt part or all of the plaintext selected by the input box to obtain the ciphertext corresponding to the part or all of the plaintext.
  • the display module 1103 is further configured to display the content of the subsequent input in a plain text when detecting that the content continues to be input in the input box.
  • the display module 1103 displays the ciphertext
  • the ciphertext portion is displayed in a hyperlink form.
  • An embodiment of the present invention provides an information encryption method and a mobile terminal.
  • the mobile terminal acquires an encryption indication, and encrypts the plaintext in the input box according to the encryption indication to obtain a ciphertext, and then replaces the ciphertext with the ciphertext.
  • the stated text is displayed.
  • the encryption of the input information in the communication software is realized, and the security problem of the terminal leaking the user information is solved.
  • the technical solution provided by the embodiment of the present invention may be implemented only on the application software itself, or may provide additional encryption and decryption functions from the framework layer to the information content. If it is only implemented on the application software, the support mechanism in the automatic encryption and decryption button, the way to decrypt the hyperlink, etc. need to be implemented on the application software, and the encryption and decryption function is only available for the application software, but the software developed in this way has more High independence, applicable to all mobile terminals of the same system platform; from the implementation of the framework level, in the system of the mobile terminal, support mechanisms such as automatic encryption and decryption buttons, decryption of hyperlinks, etc. are supported from the framework level.
  • the implementation is suitable for all system software and third-party application software of the mobile terminal equipped with the technical solution of the embodiment of the present invention, and the application software itself is not required to be modified and adapted.
  • the encrypted content itself is encrypted, and the encrypted ciphertext can be directly transmitted or saved through an existing transmission channel or an existing communication client, and has the advantages of wide adaptability and low cost.
  • the embodiment of the present invention encrypts the content, and the user can directly see the encrypted ciphertext effect, and the security effect is visually visible, and has a good confidentiality experience.
  • the solution provided by the embodiment of the present invention is simple and easy to use, and the user is very convenient to learn and use.
  • all or part of the steps of the above embodiments may also be implemented by using an integrated circuit. These steps may be separately fabricated into individual integrated circuit modules, or multiple modules or steps may be fabricated into a single integrated circuit module. achieve.
  • the devices/function modules/functional units in the above embodiments may be implemented by a general-purpose computing device, which may be centralized on a single computing device or distributed over a network of multiple computing devices.
  • each device/function module/functional unit in the above embodiment When each device/function module/functional unit in the above embodiment is implemented in the form of a software function module and sold or used as a stand-alone product, it can be stored in a computer readable storage medium.
  • the above mentioned computer readable storage medium may be a read only memory, a magnetic disk or an optical disk or the like.
  • An embodiment of the present invention provides an information encryption method and a mobile terminal.
  • the mobile terminal obtains an encryption indication, and encrypts the plaintext in the input box according to the encryption indication to obtain a ciphertext, and then replaces the ciphertext with the ciphertext. Clear text display.
  • the encryption of the input information in the communication software is realized, and the security problem of the terminal leaking the user information is solved.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Mobile Radio Communication Systems (AREA)
  • Telephone Function (AREA)

Abstract

本文公布一种信息加密方法和移动终端。该方法包括:获取加密指示;根据所述加密指示,对输入框中的明文进行加密,得到密文;使用所述密文替换所述明文显示。

Description

信息加密方法和移动终端 技术领域
本申请涉及但不限于移动通信领域。
背景技术
当前移动互联网飞速发展,智能手机已经普及,基于智能手机的社交软件,即时通信软件极大的改变了人们的通信和沟通方式。在通信过程中,往往需要发送一些敏感的私人信息,例如银行卡号、密码,或者仅能让双方知道的重要的商业机密等信息。如果在发送过程中能够对这些信息进行加密发送,将为用户提供更加放心的安全保障。目前像短信等客户端在传输过程中是没有加密处理的,极易被截获或泄露,而诸如微信、QQ等客户端在发送过程中虽然在底层传输时进行了加密处理,但是在客户端展现显示时是直接显示出来的明文,如果手机遗失,或者他人共用手机,或者服务器账号被他人盗取,过去的敏感聊天记录依然会泄露,给用户造成巨大损失。
发明内容
以下是对本文详细描述的主题的概述。本概述并非是为了限制权利要求的保护范围。
本文提供了一种信息加密方法和移动终端,解决了终端泄露用户信息的安全问题。
一种信息加密方法,包括:
获取加密指示;
根据所述加密指示,对输入框中的明文进行加密,得到密文;
使用所述密文替换所述明文显示。
可选的,所述获取加密指示的步骤之前,还包括:
在检测到所述输入框内有文字输入时,发出是否进行加密的提示信息。
可选的,所述获取加密指示包括:
检测到所述输入框中部分或全部明文被选中时,显示包含加密按钮的系统导航编辑条;
在检测到所述加密按钮被点按触发后,判定对所述输入框中被选中的部分或全部明文进行加密。
可选的,所述获取加密指示包括:
获取外部输入的加密指示,所述加密指示包括需要加密的所述输入框中全部或部分明文的内容。
可选的,所述加密指示还包括加密密钥。
可选的,根据所述加密指示,对输入框中的明文进行加密,得到密文包括:
对所述输入框被选中的部分或全部明文进行加密,得到该部分或全部明文对应的密文。
可选的,使用所述密文替换所述明文显示的步骤之后,还包括:
在检测到在所述输入框中有继续输入的内容时,以明文显示后续输入的内容。
可选的,在显示所述密文时,密文部分以超链接形式显示。
一种移动终端,包括:
指示获取模块,设置为:获取加密指示;
加密执行模块,设置为:根据所述加密指示,对输入框中的明文进行加密,得到密文;
显示模块,设置为:使用所述密文替换所述明文显示。
可选的,该移动终端还包括:
提示模块,设置为:在检测到所述输入框内有文字输入时,发出是否进行加密的提示信息。
可选的,所述指示获取模块包括:
显示控制单元,设置为:在检测到所述输入框中部分或全部明文被选中时,显示包含加密按钮的系统导航编辑条;
加密判定单元,设置为:在检测到所述加密按钮被点击触发后,判定对所述输入框中被选中的部分或全部明文进行加密。
可选的,所述指示获取模块包括:
指示接收单元,设置为:获取外部输入的加密指示,所述加密指示包括需要加密的所述输入框中全部或部分明文的内容。
可选的,所述加密指示还包括加密密钥。
可选的,所述加密执行模块,是设置为:对所述输入框被选中的部分或全部明文进行加密,得到该部分或全部明文对应的密文。
可选的,所述显示模块,还设置为:在检测到在所述输入框中有继续输入的内容时,以明文显示后续输入的内容。
可选的,所述显示模块在显示所述密文时,密文部分以超链接形式显示。
一种计算机可读存储介质,存储有计算机可执行指令,所述计算机可执行指令用于执行上述任一项的方法。
本发明实施例提供了一种信息加密方法和移动终端,移动终端获取加密指示,并根据所述加密指示,对输入框中的明文进行加密,得到密文,再使用所述密文替换所述明文显示。实现了对通信软件中输入信息的加密,解决了终端泄露用户信息的安全问题。
在阅读并理解了附图和详细描述后,可以明白其他方面。
附图概述
图1为输入文本悬浮加密按钮的示意图;
图2为点击悬浮按钮后的界面示意图;
图3为生成密文后又恢复为明文的界面示意图;
图4为密文发送后收发记录中自动识别为超链接的示意图;
图5为点击密文超链接后输入密钥的示意图;
图6为密钥正确后显示明文的示意图;
图7为加解密完整交互流程示意图;
图8为长按文本唤出导航编辑条的示意图;
图9为加密后的输入框内容示意图;
图10本发明的实施例二提供的一种信息加密方法的流程图;
图11为本发明的实施例三提供的一种移动终端的结构示意图;
图12为图11中指示获取模块1101的结构示意图。
本发明的实施方式
目前像短信等客户端在传输过程中是没有加密处理的,极易被截获或泄露,而诸如微信、QQ等客户端在发送过程中虽然在底层传输时进行了加密处理,但是在客户端展现显示时是直接显示出来的明文,如果手机遗失,或者他人共用手机,或者服务器账号被他人盗取,过去的敏感聊天记录依然会泄露,给用户造成巨大损失。
本发明的实施例提供了一种在移动终端上直接对通信内容进行加密的信息加密方法,用户可以在发送前直接对需要加密的明文加密,加密之后才发送,发送出去和对方接收到的都是密文,对方只有通过双方约定的密钥才能解密。这样即使其他人通过非正当渠道获取到了通信内容,也无法知道通信的内容。
下文中将结合附图对本发明的实施例进行详细说明。需要说明的是,在不冲突的情况下,本申请中的实施例及实施例中的特征可以相互任意组合。
首先,结合附图,对本发明的实施例一进行说明。
在移动终端上,用户在文本记事或者即时通信时,往往会输入或发送一 些涉及个人隐私的敏感信息或者商业机密,这些信息只应该被自己或者通信双方知道,但直接明文存储或者发送容易被截获或者意外泄漏,给用户带来巨大风险和损失。本发明的实施例提供了一种信息加密方法,在信息输入过程中提供加密功能,用户输入完成后在必要的情况下可以选择加密,将原来的明文全部或者部分内容加密,然后将密文存储或者发送。再次打开存储的密文,或者通信的另一方收到密文后,需要输入加密的密码进行解密才能解密密文,从而保证了内容的安全性。
本发明的实施例在移动终端软件在进行信息输入时,提供对输入信息的加密功能以及存储或发送后的解密功能。
加、解密环节包括:
(1)当用户通过点击或触摸等操作获得输入框的焦点后,系统自动检测输入框的输入状态,当监测到输入了文本等信息后,在界面上自动弹出具有加密功能的悬浮按钮。示意图见图1。
(2)在用户认为输入的文本信息有加密的必要时,点击具有加密功能的悬浮按钮,如果未配置加密密钥,则先弹出密钥设置界面,设置完密钥后输入框的内容根据特定的加密算法加密为具有特定前缀或后缀的密文;如果已经配置过加密密钥,则直接采用之前配置的密钥将输入框的内容根据特定的加密算法加密为具有特定前缀或后缀的密文。见图2。
上述加密后产生的密文是直接替换输入框中的原有内容的,对输入框所在的应用软件或者系统界面而言,密文和原来的明文是透明的,都只是普通内容而已,但对用户而言,密文是一些杂乱的字符,不能直接明白含义,从而达到保密的功能。
(3)输入框的明文被加密成密文后,用户可以继续在密文之外继续编辑输入框,从而编写密文和明文混合的文本。在生成密文后,加密悬浮按钮自动显示为解密按钮,此时点击解密按钮自动将输入框中的密文解密并替换成原来的明文,这便于在加解密输入过程的编辑和调整。如图3所示。
(4)用户编辑完输入框后,可以选择通信软件的发送功能将密文发送出去,或者在记事软件中将密文保存。在发送和接收方,在收发记录的聊天记 录中将自动检测是否为本发明实施例使用的密文格式,并将密文所在字段以超链接等方式展现,用户点击该超链接将弹出输入密钥界面,如果密钥正确,则将密文解密为明文,如图4至图6所示。
(5)当输入框中输入内文为空后(用户删除输入框中内容或者原编辑内容已经发送出去软件自动清空),自动隐藏加解密悬浮按钮。见图7所示。
本发明实施例对输入的信息内容本身进行加解密,对应用软件本身不限制,加密后的密文对应用软件来说是当着普通明文一样来对待的。在交互方式上,通过自动检测输入框是否有信息输入来自动弹出或隐藏加解密悬浮按钮来提供加密功能。此外,对于加解密采用的加解密算法本身不作限制,可以采用任意的公认的成熟加解密算法或者新的算法来加解密。在交互方式、加解密方式等方面可以包括但不限于其它替代技术方案。
此外,对于加密过程的触发,也可以在有信息输入的情况下,通过长按输入框中的信息,在长按后弹出的导航栏等系统控件或者其它定制界面中提供加解密交互入口并加密。例如图8,输入文本后再长按文本,在弹出的系统导航编辑条中,除了剪切、复制等工具外,新增加了加密按钮,点击该按钮后自动将输入框中内容进行加密(如未配置密钥应先弹出类似上面方案的密钥配置界面),如图9所示,加密完成后输入框内容直接替换为密文,同时工具条消失。
此外,还可以通过设置全局加解密按钮来实现加解密,即该悬浮按钮始终悬浮在任意界面上,当需要加密时通过点击该全局按钮来对当前获得焦点的输入框内容进行加解密。
输入框事件拦截界面加解密,即当用户点击或者触摸输入框时,直接弹出一个新的文本编辑界面,在该界面中进行文本的输入和加密,加密完成后再将生成的密文显示到原输入框。这种方案适合大量文本的编辑和加密处理。
在加解密方式上,可以有其他替代方案:
加解密过程中,加解密的密钥的输入方式除了数字、字母等文本外,还可以包括但不限于其他密钥方式:a)图案密钥方式,即加、解密过程中,密 钥为事先约定的图案,通过图案与特定密钥的对应关系来进行加密,而解密时先输入图案,通过图案与特定密钥的对应关系来解密。b)手势密钥方式,即加、解密过程中,密钥为事先约定的手势,通过手势与特定密钥的对应关系来进行加密,而解密时先输入手势,通过手势与特定密钥的对应关系来解密;b)人脸、掌纹、声纹、指纹等其它生物识别等方式,加解密过程都是先建立相关生物特征与特定的密钥的对应关系来进行加解密处理。
上述方案在加解密过程中,简化起见都是对输入框的内容直接全部加密,实际上稍作修改可以仅对输入框中信息的部分内容进行加解密,即部分加解密技术。而对输入框中的内容进行部分选中是已有的相关技术,部分加解密只需要在原来的加解密方案基础上只对选中的内容进行加密和对位替换即可。
上述方案简化起见,加解密时通信双方来都采用事先约定的相同密钥,即加解密密钥均一致的对称加解密方式。为更高的安全性和灵活性,加解密的过程可以采用公钥与私钥的非对称加密方式,大致流程为:1)通信之前A先通过标准的通信方式获取B的公钥,并将B的公钥保存到移动终端中。2)通信时,A在输入框中输入明文,然后点击加密按钮进行加密,加密时选取事先存好的B的公钥作为密钥来进行加密,密文生成后发送给B;3)B收到密文后输入只有自己知道的私钥进行解密。这种技术方案在交互方式上跟原有方案大致相同,只是加解密双方的密钥不同,这样生成的密文只有掌握私钥的一方能够解密,具有更高的安全性。
下面结合附图,对本发明的实施例二进行说明。
本发明实施例提供了一种信息加密方法,使用该方法,在移动终端通过通信软件输入文字时进行加密的流程如图10所示,包括:
步骤1001、获取加密指示;
本步骤包括两种方式:
方式一:
移动终端在检测到所述输入框内有文字输入时,发出是否进行加密的提 示信息,可通过弹窗的形式显示提示信息,询问用户是否需要对输入框中的内容进行加密。然后,检测用户输入的加密指示。用户可以选择对输入框中的部分或全部内容进行加密。
方式二:
用户在输入框输入部分内容后,可通过长按等操作选中输入的全部或部分文字。移动终端在检测到所述输入框中部分或全部明文被选中时,显示包含加密按钮的系统导航编辑条,在检测到所述加密按钮被点按触发后,判定对所述输入框中被选中的部分或全部明文进行加密。
移动终端获取用户通过点按加密按钮发出的加密指示后,以该加密指示作为外部输入的加密指示,所述加密指示包括需要加密的所述输入框中全部或部分明文的内容。
可选的,所述加密指示还包括加密密钥,指示移动终端使用该加密密钥加密。移动终端也可以使用预置的加密密钥完成加密。
步骤1002、根据所述加密指示,对输入框中的明文进行加密,得到密文;
对所述输入框被选中的部分或全部明文进行加密,得到该部分或全部明文对应的密文。
步骤1003、使用所述密文替换所述明文显示;
可选的,在显示所述密文时,密文部分以超链接形式显示。这样,用户在点按该超链接时,即可调出包含解密功能选项的菜单,选择解密显示相应的内容。
此外,在加密完毕后,移动终端在检测到在所述输入框中有继续输入的内容时,以明文显示后续输入的内容。
下面结合附图,对本发明的实施例三进行说明。
本发明实施例提供了一种移动终端,其结构如图11所示,包括:
指示获取模块1101,设置为:获取加密指示;
加密执行模块1102,设置为:根据所述加密指示,对输入框中的明文进行加密,得到密文;
显示模块1103,设置为:使用所述密文替换所述明文显示。
可选的,该装置还包括:
提示模块1104,设置为:在检测到所述输入框内有文字输入时,发出是否进行加密的提示信息。
可选的,所述指示获取模块1101的结构如图12所示,包括:
显示控制单元1201,设置为:在检测到所述输入框中部分或全部明文被选中时,显示包含加密按钮的系统导航编辑条;
加密判定单元1202,设置为:在检测到所述加密按钮被点击触发后,判定对所述输入框中被选中的部分或全部明文进行加密。
可选的,所述指示获取模块1101还包括:
指示接收单元1203,设置为:获取外部输入的加密指示,所述加密指示包括需要加密的所述输入框中全部或部分明文的内容。
可选的,所述加密指示还包括加密密钥。
可选的,所述加密执行模块1102,是设置为:对所述输入框被选中的部分或全部明文进行加密,得到该部分或全部明文对应的密文。
可选的,所述显示模块1103,还设置为:在检测到在所述输入框中有继续输入的内容时,以明文显示后续输入的内容。
可选的,所述显示模块1103在显示所述密文时,密文部分以超链接形式显示。
本发明的实施例提供了一种信息加密方法和移动终端,移动终端获取加密指示,并根据所述加密指示,对输入框中的明文进行加密,得到密文,再使用所述密文替换所述明文显示。实现了对通信软件中输入信息的加密,解决了终端泄露用户信息的安全问题。
本发明的实施例提供的技术方案可以只在应用软件本身上实现,也可以从框架层面对信息内容提供额外的加解密功能。如果只在应用软件上实现,在自动加解密按钮、解密超链接的方式等环节的支持机制均需要在应用软件上实现,且加解密功能只有该应用软件可用,但这样开发出的软件具有更高的独立性,适用于所有相同系统平台的移动终端;从框架层面的实现,在移动终端的系统中需从框架层面支持自动加解密按钮、解密超链接等方式等环节的支持机制,这种实现方式适合搭载了本发明的实施例技术方案的移动终端的所有系统软件和第三方应用软件,也不需要应用软件本身作修改和适配。
本发明的实施例中仅对加密内容本身进行加密,加密后的密文可以通过已有的传输信道或者已有的通信客户端直接发送或者保存,具有适应面广、成本低廉的优势。
本发明的实施例对内容进行加密,用户直接可以看到加密后的密文效果,保密效果直观可见,具有良好的保密体验。
本发明的实施例提供的方案交互简洁易用,用户学习和使用都非常方便。
本领域普通技术人员可以理解上述实施例的全部或部分步骤可以使用计算机程序流程来实现,所述计算机程序可以存储于一计算机可读存储介质中,所述计算机程序在相应的硬件平台上(如系统、设备、装置、器件等)执行,在执行时,包括方法实施例的步骤之一或其组合。
可选地,上述实施例的全部或部分步骤也可以使用集成电路来实现,这些步骤可以被分别制作成一个个集成电路模块,或者将它们中的多个模块或步骤制作成单个集成电路模块来实现。
上述实施例中的各装置/功能模块/功能单元可以采用通用的计算装置来实现,它们可以集中在单个的计算装置上,也可以分布在多个计算装置所组成的网络上。
上述实施例中的各装置/功能模块/功能单元以软件功能模块的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。上述提到的计算机可读取存储介质可以是只读存储器,磁盘或光盘等。
工业实用性
本发明实施例提供了一种信息加密方法和移动终端,移动终端获取加密指示,并根据所述加密指示,对输入框中的明文进行加密,得到密文,再使用所述密文替换所述明文显示。实现了对通信软件中输入信息的加密,解决了终端泄露用户信息的安全问题。

Claims (15)

  1. 一种信息加密方法,包括:
    获取加密指示;
    根据所述加密指示,对输入框中的明文进行加密,得到密文;
    使用所述密文替换所述明文显示。
  2. 根据权利要求1所述的信息加密方法,其中,所述获取加密指示的步骤之前,还包括:
    在检测到所述输入框内有文字输入时,发出是否进行加密的提示信息。
  3. 根据权利要求1所述的信息加密方法,其中,所述获取加密指示包括:
    检测到所述输入框中部分或全部明文被选中时,显示包含加密按钮的系统导航编辑条;
    在检测到所述加密按钮被点按触发后,判定对所述输入框中被选中的部分或全部明文进行加密。
  4. 根据权利要求1所述的信息加密方法,其中,所述获取加密指示包括:
    获取外部输入的加密指示,所述加密指示包括需要加密的所述输入框中全部或部分明文的内容。
  5. 根据权利要求4所述的信息加密方法,其中,所述加密指示还包括加密密钥。
  6. 根据权利要求1所述的信息加密方法,其中,根据所述加密指示,对输入框中的明文进行加密,得到密文包括:
    对所述输入框被选中的部分或全部明文进行加密,得到该部分或全部明文对应的密文。
  7. 根据权利要求1所述的信息加密方法,其中,使用所述密文替换所述明文显示的步骤之后,还包括:
    在检测到在所述输入框中有继续输入的内容时,以明文显示后续输入的内容。
  8. 根据权利要求1所述的信息加密方法,其中,在显示所述密文时,密文部分以超链接形式显示。
  9. 一种移动终端,包括:
    指示获取模块,设置为:获取加密指示;
    加密执行模块,设置为:根据所述加密指示,对输入框中的明文进行加密,得到密文;
    显示模块,设置为:使用所述密文替换所述明文显示。
  10. 根据权利要求9所述的移动终端,还包括:
    提示模块,设置为:在检测到所述输入框内有文字输入时,发出是否进行加密的提示信息。
  11. 根据权利要求9所述的移动终端,其中,所述指示获取模块包括:
    显示控制单元,设置为:在检测到所述输入框中部分或全部明文被选中时,显示包含加密按钮的系统导航编辑条;
    加密判定单元,设置为:在检测到所述加密按钮被点击触发后,判定对所述输入框中被选中的部分或全部明文进行加密。
  12. 根据权利要求9所述的移动终端,其中,所述指示获取模块包括:
    指示接收单元,设置为:获取外部输入的加密指示,所述加密指示包括需要加密的所述输入框中全部或部分明文的内容。
  13. 根据权利要求9所述的移动终端,其特征在于,
    所述加密执行模块,是设置为:对所述输入框被选中的部分或全部明文进行加密,得到该部分或全部明文对应的密文。
  14. 根据权利要求9所述的移动终端,其中,
    所述显示模块,还设置为:在显示所述密文时,密文部分以超链接形式显示和/或在检测到在所述输入框中有继续输入的内容时,以明文显示后续输入的内容。
  15. 一种计算机可读存储介质,存储有计算机可执行指令,所述计算机可执行指令用于执行权利要求1-8任一项的方法。
PCT/CN2015/087393 2014-09-23 2015-08-18 信息加密方法和移动终端 WO2016045469A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201410491678.4A CN104270517B (zh) 2014-09-23 2014-09-23 信息加密方法和移动终端
CN201410491678.4 2014-09-23

Publications (1)

Publication Number Publication Date
WO2016045469A1 true WO2016045469A1 (zh) 2016-03-31

Family

ID=52162005

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2015/087393 WO2016045469A1 (zh) 2014-09-23 2015-08-18 信息加密方法和移动终端

Country Status (2)

Country Link
CN (1) CN104270517B (zh)
WO (1) WO2016045469A1 (zh)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113194100A (zh) * 2021-05-06 2021-07-30 中国民航大学 航空地空数据链acars系统数据加密/解密技术的设计与实现

Families Citing this family (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106156638B (zh) * 2015-04-22 2020-12-04 腾讯科技(深圳)有限公司 消息记录处理方法及设备
CN104994499B (zh) * 2015-05-20 2019-01-22 努比亚技术有限公司 信息处理方法及装置
CN105071932B (zh) * 2015-08-21 2018-05-22 褚万青 一种基于对位密码系统的对称加密方法及间接通信法
CN113206737A (zh) 2015-09-01 2021-08-03 北京三星通信技术研究有限公司 语音通信加密方法、解密方法及其装置
CN106685897B (zh) * 2015-11-09 2020-09-08 国民技术股份有限公司 一种安全输入方法、装置和系统
CN106570405B (zh) * 2016-11-04 2020-10-27 北京百度网讯科技有限公司 一种在输入法中对文字进行加密/解密的方法和装置
CN107276884A (zh) * 2017-08-21 2017-10-20 江苏北弓智能科技有限公司 一种基于智能终端的社交软件自主加解密系统
CN110121002A (zh) * 2018-11-28 2019-08-13 熵加网络科技(北京)有限公司 一种在安卓操作系统对文字加解密的方法
CN110119634A (zh) * 2018-11-28 2019-08-13 熵加网络科技(北京)有限公司 一种用浏览器插件对文字加解密的方法
CN109598143A (zh) * 2018-12-06 2019-04-09 叶云龙 一种互联网聊天隐私保护方法、装置、设备及存储介质
CN109815727A (zh) * 2018-12-18 2019-05-28 维沃移动通信有限公司 一种隐私保护方法及终端设备
CN110110549B (zh) * 2019-04-17 2021-10-01 苏州达家迎信息技术有限公司 一种信息处理方法、装置、终端及存储介质
CN112367323B (zh) * 2020-11-10 2023-04-25 西安热工研究院有限公司 一种智能终端的文本端到端加解密系统与方法
CN114124880B (zh) * 2021-11-29 2023-07-18 北京天融信网络安全技术有限公司 基于公有云的保密通信方法、装置及计算机设备及存储介质

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1885762A (zh) * 2005-06-24 2006-12-27 网际威信控股公司 电子邮件加解密方法及其储存媒体与模块
CN1885836A (zh) * 2006-07-04 2006-12-27 华为技术有限公司 一种即时通信中信息过滤和保密的方法和装置
CN101534311A (zh) * 2009-04-14 2009-09-16 杨筑平 信息保密方法和程序
US20100131599A1 (en) * 2008-11-24 2010-05-27 The Mitre Corporation Methods, Systems, and Computer Program Products For Instant Messaging
CN104660589A (zh) * 2015-01-20 2015-05-27 中兴通讯股份有限公司 一种对信息进行加密控制、解析信息的方法、系统和终端

Family Cites Families (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7921292B1 (en) * 2003-04-04 2011-04-05 Voltage Security, Inc. Secure messaging systems
TW200701730A (en) * 2005-06-24 2007-01-01 Hitrust Com Inc E-mail encryption/decryption method and storage media and module thereof
US20070269041A1 (en) * 2005-12-22 2007-11-22 Rajat Bhatnagar Method and apparatus for secure messaging
CN101626567A (zh) * 2009-06-29 2010-01-13 深圳华为通信技术有限公司 短信发送、接收方法及发送、接收装置以及移动终端
FI20096404A (fi) * 2009-12-29 2011-06-30 Kabuto Oy Menetelmä ja järjestelmä tiedon siirtoon salattuna
CN101841785B (zh) * 2010-06-13 2012-12-26 联信摩贝软件(北京)有限公司 通过手机短信加密传送信息的方法和系统
CN102055685B (zh) * 2010-12-21 2013-02-13 常熟理工学院 网页邮件信息加密的方法
CN102334306A (zh) * 2011-07-18 2012-01-25 华为终端有限公司 一种信息即时加密解密的方法和装置
CN102546597B (zh) * 2011-12-15 2015-11-18 深圳市易联盛世科技有限公司 通讯终端消息加密传输的方法、通讯终端、服务器及系统
CN103218374B (zh) * 2012-01-21 2016-08-17 国际商业机器公司 用于电子文档定位的方法和系统
CN102916948B (zh) * 2012-09-29 2015-05-06 深圳市易联盛世科技有限公司 数据安全处理方法、装置及终端

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1885762A (zh) * 2005-06-24 2006-12-27 网际威信控股公司 电子邮件加解密方法及其储存媒体与模块
CN1885836A (zh) * 2006-07-04 2006-12-27 华为技术有限公司 一种即时通信中信息过滤和保密的方法和装置
US20100131599A1 (en) * 2008-11-24 2010-05-27 The Mitre Corporation Methods, Systems, and Computer Program Products For Instant Messaging
CN101534311A (zh) * 2009-04-14 2009-09-16 杨筑平 信息保密方法和程序
CN104660589A (zh) * 2015-01-20 2015-05-27 中兴通讯股份有限公司 一种对信息进行加密控制、解析信息的方法、系统和终端

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113194100A (zh) * 2021-05-06 2021-07-30 中国民航大学 航空地空数据链acars系统数据加密/解密技术的设计与实现

Also Published As

Publication number Publication date
CN104270517B (zh) 2019-06-14
CN104270517A (zh) 2015-01-07

Similar Documents

Publication Publication Date Title
WO2016045469A1 (zh) 信息加密方法和移动终端
CN110169009A (zh) 隔离的集合中的密码操作
WO2016115889A1 (zh) 一种对信息进行加密控制、解析信息的方法、系统和终端
KR101777698B1 (ko) 사용자 단말, 메시지를 송수신하는 방법 및 컴퓨터 프로그램
WO2016154898A1 (zh) 移动终端隐私保护方法、保护装置及移动终端
WO2016045464A1 (zh) 解密方法和移动终端
US10708237B2 (en) System and method for chat messaging in a zero-knowledge vault architecture
CN103559451A (zh) 一种隐私信息保护、显示方法及装置
US11456872B2 (en) Offline protection of secrets
CN104270353B (zh) 一种信息安全传递方法及系统、接收终端、发送终端
US10019913B2 (en) Information encryption system and information encryption method using optical character recognition
US11245530B2 (en) System and method for secure communication
CN110140336A (zh) 相继密码技术
CN106464973A (zh) 共享内容的移动设备及方法
WO2018018726A1 (zh) 一种群文件管理方法、用户终端、群聊系统
CN102891749A (zh) 数据加密的方法及其通信终端
US11252145B2 (en) Cross-device access to one-time passwords
KR20210110597A (ko) 디지털 식별성 관리 장치
EP3134863B1 (en) Methods of providing social network service and server performing the same
CN103795849A (zh) 在便携式终端中针对私密联系人执行操作的设备及方法
CN102404107A (zh) 一种保障输入内容安全的方法、装置、发送端和接收端
EP3486828B1 (en) Electronic device including display and method of encrypting information
CN106156571B (zh) 指纹加密工具、指纹加密工具加解密系统及加解密方法
CN107743063A (zh) 数据处理方法及装置
WO2019136496A1 (en) System and method for secure communication

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

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

Country of ref document: EP

Kind code of ref document: A1