摘要 |
The present invention relates to the field of communications. Disclosed are a method and device for instantly encrypting and decrypting messages, the method comprising the steps of: detecting, during composition of a message, whether there is an encryption control signal for calling-up an encryption program; if there is, initiating the encryption program automatically and instantly to encrypt message content that is input; displaying on the screen the message content in the form of "garbled text"; detecting whether there is a decryption control signal; if there is, initiating a decryption program to automatically instantly decrypt the encrypted message content; displaying on the screen the message content in the form of the original text. When a user composes a message in a public place, the present invention can encrypt the message being composed, displaying the message content in the form of "garbled text", and thereby prevent other people from surreptitiously viewing private information of the user. When the user needs to view the full content, however, the user can still view or preview the original text. |