Learn to create user-defined functions to take plain-text and scramble it using Caesar cipher. By the end of this tutorial, you will be able to create Caesar cipher that is able to handle upper case letters, lower case letters, and symbols. We will be able to encrypt plain-text provided by the user into cipher-text, as well as decrypt and get the original plain-text back from the cipher-text.
For this tutorial, I will use slicing technique.
Links:
Code in GitHub: https://github.com/ComputingUntangled/Python-for-Beginners/blob/main/Caesar_Cipher.ipynb
Code in Google Colab: https://colab.research.google.com/drive/1xrbBR5TW52EEmbVThFGA4IxPv-bIFyYm?usp=sharing
Understand Indexing and Slicing in String and List: https://www.youtube.com/watch?v=JQgY5cDcET0
Timestamps:
00:00 Welcome/ Intro
00:52 Quick Note on Caesar Cipher
02:11 Sequential Coding
06:26 Adding Lower-Case Letters
07:26 Adding Symbols
08:14 Creating User-defined Functions
10:37 Using Modulo to Cycle Offset
13:04 Outro
Download
0 formats
No download links available.
Python Project #7: Caesar Cipher to Encrypt and Decrypt Data | NatokHD