Patent ID: 8793484

Claim:
An electronic device with a message encryption function, the electronic device comprising: a configure interface module for a user to set an encryption code; a storage module; an encryption module; and a message processing module; wherein the message processing module is electrically connected to the configure interface module, the storage module and the encryption module for receiving, sending, or reading a message; the message processing module checking whether the encryption code exists; the message processing module determining whether the type of the message processing event is “reading a message”; if the processing module determines the processing event is not “reading a message” encrypt the received or sent message with the encryption code to generate an encrypted message and transmit the encrypted message back and then store the encrypted message; if the processing module determines the processing event is “reading a message” the processing module determines whether the encrypted message has been read yet ever, or not; if the encrypted message has been read, directly transmit the encrypted message back and then display the encrypted message in a cipher-text manner; if the encrypted message has not been read, decrypt the encrypted message to generate a decrypted message, transmit the decrypted message back and then display the decrypted message in a clear-text manner.