Simple Caesar Encryption in Python

preview_player
Показать описание
In this video we build a simple Caesar cipher in Python.

◾◾◾◾◾◾◾◾◾◾◾◾◾◾◾◾◾
📚 Programming Books & Merch 📚

💻 Exclusive Content 💻

🌐 Social Media & Contact 🌐

Рекомендации по теме
Комментарии
Автор

You are so good and the channel is underated ;( you deserve a lot, thc for the content!!!

whipyyy
Автор

5:31 I particularly don't understand what is going on with the 26-80 thing, I have seen other blog tutorials too where this something is subtracted from 26 in order to get back to the original value from an encrypted value; but I found an easy solution. Just use negative numbers. Put shift = -5 and it will work fine to give the original result back. (But thanks to the tutorial tho)

sudarshandas
Автор

dude.. i advise you to start makin'/workin' on Udemy. i would like to buy a Python course from you!

simon
Автор

If you really want to get fancy, you can use "frequency analysis" to decode the message:

Let's assume that the message is in English for this example.
1. Look at the distribution of how often the letters come up.
2. The most common letter in English is the letter E.
3. So, at least if the message is long enough, one of the most common letters in the encrypted message should map to E.
4. So we can get the shift by simply looking at the distance between E and the most common letter, because that would map the most common letter back to E.

SimonTiger
Автор

Thank you for what you do! Your films are very interesting and I teach a lot. I have been learning to program in Python for several months, I am currently 12 years old :)

By the way, I come from Poland, so even there it is helpful!

ryszard
Автор

I'm in 1st year of high school and your videos are so much awesome, amazing, and informative. Love from INDIA❤

neelaynaman
Автор

I was just thinking of creating a gui that encrypts a message, when your notification came in

hasaranger
Автор

You just got yourself a new subscriber 🤠

tibish
Автор

A+ tutorials, training products and content creation.

pitman
Автор

I just want to point out that you're not actually implementing a "Caesar" cipher. You're using a shift value of 7, so you're actually implementing a ROT-7 cipher. Caesar cipher is specifically when the shift value is 3. All other values of the shift produce rotation ciphers, but not a Caesar cipher.

_zelatrix
Автор

Awesome encription brother.

Thank you soo much.

subhankarchakraborty
Автор

Ok but how do you decrypt it? Could you make a short video telling us how to?

danasgudaitis
Автор

when there are comments before anyone has had time to watch the video

harrybestfriend
Автор

That was amazing im gonna give you a subscribe for that!

ronneljayag
Автор

Suppose I want to convert the space as well? Or in stead of jumping from w to a, I enter a range of special characters?

tatiannalindsay
Автор

So many tips such as nesting functions in functions and string methods. Very helpful.

StephenEhrlichPhotos
Автор

Hello There!

Is there a way to decrypt the encrypted word/sentence?

And is there a way for the user to choose how many shift they want?

I would appreciate if anyone can answer me!

mr_wavey
Автор

Awesome video bro! I have done a script that makes the same, but I didn't use the string module. I did it "manually" 😂😂

luislima
Автор

Can someone tell me where I can learn more about the method used in line 7 of this code.
Seems very useful and I haven't been taught it. :)

calvin_limbu
Автор

Now the hard part: learning how it works. Like i get the big picture but if i want to change something on my own im stuck

GameDev_Master