Starting at line eight, the code becomes a bit trickier. Lines five through ten use an if statement to determine the user’s choice. This particular choice is asking the user to enter either a numerical 1 or 2.Ĭhoice = input("\nEnter 1 to Encrypt or 2 to Decrypt:\n>") For line three, create a choice variable and assign it an input. Starting at line one, declare variable result and assign it an empty string. Lastly, it should be known that this technique is relatively secure, but, like most encryption, if someone really wants to decode, they can. Second, I didn’t want to install external modules. Three things to note: for the first portion I used Trinket, as I did with a previous post about Creating a Text-Based Adventure and Quiz Game in Python, to allow easier coding and follow-along. Before going straight into sending encrypted emails, I created a mechanism to encrypt and decrypt content first. Knowing Python is a multifaceted language, I wanted to see what could be done regarding encryption. Seeing how online privacy is relatively absent, I started contemplating a project to encrypt messages. Posted in Web Development on May 2018 Facebook Twitter PinterestĪs internet data mining and security concerns continue to burgeon, privacy often feels relinquished.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |