Message Encryption and Decryption, this Python program presents a secure message encryption and decryption system. It consists of two main functions: encrypt and decrypt, which allow users to safeguard and recover messages using a customized encryption scheme.
In the encryption process, a receiver ID, comprising a sequence of digits from 0 to 9, is provided. The message is then transformed based on specific rules associated with each digit in the receiver ID. This transformation includes appending special characters, duplicating sections of the message, inserting emojis, or even altering its structure. The encrypted message is generated, printed, and returned for further communication.
The decryption process reverses the encryption by utilizing the receiver ID. The encrypted message undergoes a series of reverse transformations to retrieve the original message. The decryption process ensures that only the intended recipient, with the appropriate receiver ID, can decode and access the original message.
The script also features a user-friendly interface, allowing users to choose between encryption, decryption, and exiting the system. Users are guided to provide the receiver's ID and the message to be sent. The encrypted message is displayed for encryption, while decryption requires the input of the encrypted message. Overall, this program provides a creative and customizable approach to message security and retrieval.
Note: This project was accomplished by drawing insights from open literature and online resources available on the internet.