Caesar Cipher Program in Python | Encryption and Decryption With Caesar Cipher

Sdílet
Vložit
  • čas přidán 13. 12. 2022
  • 💻 Get the Source Code and support the channel ❤️: www.buymeacoffee.com/fabiomus...
    ⬇️ LEARN ON THE BEST LEARNING PLATFORMS (LINKS BELOW) 😉💪 ⬇️
    💻 My Source Codes: www.buymeacoffee.com/fabiomus...
    ☕ Buy me a coffee: www.buymeacoffee.com/fabiomus...
    😍 One-off donation: www.paypal.me/FabioMusanni/
    SKILLSHARE
    (Python, Web Dev, UI/UX Design, Music, Art, Animation and a lot more)
    🔗 skillshare.eqcm.net/5gxzD2 (Affiliate)
    DATACAMP
    (Python, ChatGPT, SQL, Power BI, and a lot more)
    🔗 datacamp.pxf.io/vN1bDj (Affiliate)
    COURSERA PYTHON
    (For beginners, Data Science, Data Analysis, AI, Cybersecurity and a lot more):
    🔗 imp.i384100.net/k0Nk60 (Affiliate)
    COURSERA WEB DEVELOPMENT
    (Full Stack, Front-End, Back-End, Web Design and a lot more):
    🔗 imp.i384100.net/EKWxBW (Affiliate)
    Make a Python program to encrypt and decrypt text using the Caesar Cipher.
    🎥🔥 Caesar Cipher GUI APP: • Create a Python Caesar...
    🎥🔥 RECOMMENDED VIDEOS TO WATCH 🎥🔥
    ➡ Count frequency of letters in text (used to break ciphers): • Count Occurrences of L...
    ➡ How to validate user inputs: • How to Validate User I...
    ➡ Python Playlist: • 🐍 Learn Python With Fa...
    If the video was helpful, let me know in the comments down below and also like the video so that other people can see it. Needles to say I really appreciate your support 💪❤️
    📨 SUBSCRIBE so that you don't miss any new video:
    czcams.com/users/FabioMusann...
    🤗 BIO PAGE (contacts, etc): solo.to/fabiomusanni
    Create Your Bio Page (10% OFF Upgraded Plans 😉): solo.to/inv/NDE4NzE2
    🔗 RELATED CONTENT (videos, playlists, etc) 🔗
    Python Playlist: • 🐍 Learn Python With Fa...
    🤩 AFFILIATE LINKS 🤩
    Create Your Bio Page (10% OFF Upgraded Plans): solo.to/inv/NDE4NzE2
    🧑🏻‍💻 ABOUT ME 🧑🏻‍💻
    I'm Fabio, I started programming with Python a lot of years ago and I fell in love with this world.
    I started this CZcams channel to help you during your own journey and I hope that my help can make you an amazing programmer who loves this world as I do.
    Welcome on board!! 🚀
    #pythonWithFabioMusanni #python #pythontutorial #pythonprojects #pythonprogramming #pythonforbeginners #coding #programming
  • Věda a technologie

Komentáře • 43

  • @FabioMusanni
    @FabioMusanni  Před rokem +3

    💻 *Source Code:* www.buymeacoffee.com/fabiomusanni/e/182935
    ⬇️ *LEARN ON THE BEST LEARNING PLATFORMS (LINKS BELOW)* 😉💪 ⬇️
    ☕ *Buy me a coffee:* www.buymeacoffee.com/fabiomusanni
    ❤️ *Support me monthly:* www.patreon.com/FabioMusanni
    😍 *One-off donation:* www.paypal.me/FabioMusanni/
    *SKILLSHARE*
    _(Python, Web Dev, UI/UX Design, Music, Art, Animation and a lot more)_
    🔗 skillshare.eqcm.net/5gxzD2 (Affiliate)
    *DATACAMP*
    _(Python, ChatGPT, SQL, Power BI, and a lot more)_
    🔗 datacamp.pxf.io/vN1bDj (Affiliate)
    *COURSERA PYTHON*
    _(For beginners, Data Science, Data Analysis, AI, Cybersecurity and a lot more):_
    🔗 imp.i384100.net/k0Nk60 (Affiliate)
    *COURSERA WEB DEVELOPMENT*
    _(Full Stack, Front-End, Back-End, Web Design and a lot more):_
    🔗 imp.i384100.net/EKWxBW (Affiliate)
    Thank you for the support!❤
    🎥🔥 Caesar Cipher GUI APP: czcams.com/video/vVBSmYSgNNM/video.html
    🎥All my videos about Python: czcams.com/play/PLs8qUrmRvaR0IT4IwJl-LSweAdACW-yLK.html

  • @pilotcourse
    @pilotcourse Před rokem +4

    well done man, i appreciate you sharing the knowledge. the least i could do is subscribe and hit the like button. looking forward to see your future videos. many thanks brother.

    • @FabioMusanni
      @FabioMusanni  Před rokem +2

      Thank you very much for the comment bro! 🥰 Really appreciated! And welcome, you won't be disappointed, a lot of cool content coming up, so stay tuned! 💪🔥

  • @martaaramu30
    @martaaramu30 Před 3 měsíci +2

    I've got a problem with the input function: it does not let me write on the console, like it's read only. What can I do?

  • @mdaniels6311
    @mdaniels6311 Před dnem

    When I did this, it only prints one letter. Any ideas anyone??

  • @alayovictor5378
    @alayovictor5378 Před 15 dny

    What is ciphertext,what is plaintext? Those functions that were used, under which condition can they be used?These questions and many other questions are running on my mind. You're a bit fast and it is somewhat not easy to grasp those things at your pace. But you're really doing a great job and I want to reach your level of knowledge in python language ❤❤

  • @liquidation22
    @liquidation22 Před 10 měsíci +3

    lots of new information, but I watched it all just to be familiar for cybersecruity to see what is like going on in the background or under the hood

    • @FabioMusanni
      @FabioMusanni  Před 10 měsíci

      Glad you liked the video! 💪
      This cipher is really easy to break but it was definitely a big steppingstone to getting where we are now with cryptography, so it's really important to know how it works.

  • @dineshkarki371
    @dineshkarki371 Před rokem +1

    thanks for the video much love from Nepal

    • @FabioMusanni
      @FabioMusanni  Před rokem +2

      Thank you for taking the time to comment! Really appreciated! 😍💪

  • @annsoul6635
    @annsoul6635 Před rokem +2

    Useful❤️🙌

    • @FabioMusanni
      @FabioMusanni  Před rokem +1

      Thank you very much for the comment!! ❤😊

  • @mdaniels6311
    @mdaniels6311 Před dnem

    My code doesn't work, and even AI cant fix it. No idea what I did wrong. When I have more energy I will go through the video again slowly.

  • @MuhammadAshir-du5di
    @MuhammadAshir-du5di Před 2 měsíci

    really i enjoy this video your teaching method is easy to understand i like that make more video and thanks best wishes for you

    • @FabioMusanni
      @FabioMusanni  Před 2 měsíci

      Thank you for the comment! Really appreciated! 😍💪😊

  • @domzzy6432
    @domzzy6432 Před 14 dny

    How can i get your source code on Github

  • @barbs923
    @barbs923 Před rokem +4

    Hi! I understood everything :) but what if the user entered a special character? Would we need to create a list with those special characters? but how could we make sure that they don't alter the cypher?

    • @FabioMusanni
      @FabioMusanni  Před rokem +2

      Hello 😊 I'm glad you could understand everything! 😍 💪
      If the user enters a character that is not in the list (numbers, special chars, etc), that character will be shown as is, meaning, it won't be encrypted at all. You can add as many characters as you want to the list "letters". Of course you need to encrypt and decrypt using the same list (same order of characters), otherwise you would get a wrong result when decrypting. If you use the same app as we do here, everything will be fine. If someone alters the program the only thing you would get is a wrong result, so nothing to worry about 😉

    • @Oksana7305
      @Oksana7305 Před 8 měsíci

      Me again. I'm.looking at the theory of one academic who suggested a modification to cessr cipher, if alphabet index is even then increase value by one if not decrease key value by - 1. What program would this be

  • @Razan-adel
    @Razan-adel Před 6 měsíci

    where I can contact with you please?

  • @assassinsassassinator6397
    @assassinsassassinator6397 Před 11 měsíci

    Sir I tried this program the gui works fine but the caesar cipher part throws an string index out of range error please help me out !!!

    • @FabioMusanni
      @FabioMusanni  Před 11 měsíci

      Hello, thank you for the comment 😊
      The code at the beginning works properly only if you have 26 letters in the "letters" string, if you have more or fewer, things might not work as expected because we hard coded the 26 when creating the new_index.
      For this reason, if you have a different amount of letters, you need to replace the 26 with the amount of letters you have in the string "letters", otherwise you'll get that error. During the video I also changed the 26 with a not hard coded value so that it does this change automatically.
      Remember that you can get personalised coding support and a lot more if you are a Level 4 member of my Patreon community ( www.patreon.com/FabioMusanni )

  • @shannufarhath5292
    @shannufarhath5292 Před 7 měsíci

    Hi sir Im not getting the output of cipher text for the encryption sir kindly help me to resolve it

    • @FabioMusanni
      @FabioMusanni  Před 7 měsíci

      Hello Shannu,
      you can find the working source code here: www.buymeacoffee.com/fabiomusanni/e/182935

  • @figureofspeech4581
    @figureofspeech4581 Před rokem

    Can this be made into a webpage to make it look better? Just for a school project

    • @FabioMusanni
      @FabioMusanni  Před rokem +1

      Hello 😊
      I actually made a video where I show you how to make this Python program with also the Graphic User Interface: czcams.com/video/vVBSmYSgNNM/video.html
      I also have a video about making this as a web application, but in that case I used Javascript: czcams.com/video/CNDijVw-tSQ/video.html

  • @bishwarupdey10
    @bishwarupdey10 Před rokem

    I have a question sir,so there is a string and i encrypted it using the caeser cipher method and i got the encrypted string,now i want to xor it.For ex : abcd
    places to shift: 3
    Encrypted Caesar String: defg
    Now encrypt it with a salt lets say ‘abc’

    • @FabioMusanni
      @FabioMusanni  Před rokem

      Hello 😊
      This is how the Caesar Cipher works. I'm not an expert in cryptography but I'm not sure if the salt in this case makes sense. When hashing a password, for example, a random salt and the password are concatenated and then the whole thing is hashed so that the same password hashed more than once will have a different result each time, making it more difficult to crack. In this case if you add random letters before the actual text and you encrypt it, then when you decrypt it, you'll have random letters at the beginning and then the text that makes sense, so it's completely understandable even with the salt.
      If you have something else in mind, it could be a nice exercise, experiment with that 😉💪

  • @rainbow312
    @rainbow312 Před rokem

    can you tell which website you use for python program?

    • @FabioMusanni
      @FabioMusanni  Před rokem +1

      I think you mean the code editor, right? I'm using Visual Studio Code (VS Code for short) 😊

    • @rainbow312
      @rainbow312 Před rokem

      @@FabioMusanni thank you for replying ☺️

    • @FabioMusanni
      @FabioMusanni  Před rokem

      @@rainbow312 No worries ☺☺

  • @Pwnedby
    @Pwnedby Před rokem +2

    I found some code really similar to this in openai

    • @FabioMusanni
      @FabioMusanni  Před rokem +2

      So what's that supposed to mean? 🤔🤔

    • @Pwnedby
      @Pwnedby Před rokem

      @@FabioMusanni Its means i found some similar code to that when i used openai. but anyways keep up the content man :)

    • @FabioMusanni
      @FabioMusanni  Před rokem +2

      Okay 😊 Thanks! 💪
      I was just making sure you weren't assuming that I copied it from there, because this is definitely not the case. In fact, as I write the program I always try to explain the reasoning behind each step so that a beginner can actually learn something along the way, although a lot of people don't actually watch and listen to the whole video and just copy and paste things, which is not ideal if you want to really learn and improve 😉😊

    • @Pwnedby
      @Pwnedby Před rokem

      @@FabioMusanni ohh yeahh I didn’t mean it like that I’m sorry I’ve watched ur videos for a really long time haha. I’m very sorry for saying it that way ❤️💪

    • @FabioMusanni
      @FabioMusanni  Před rokem

      Haha no worries!! Thank you for clarifying that! ❤💪🔥

  • @ShivamRawat-gw5xv
    @ShivamRawat-gw5xv Před rokem

    COULD YOU SHARE CODE LINK

    • @FabioMusanni
      @FabioMusanni  Před 11 měsíci

      Hello 😊
      I share the code only with level 3 members of my Patreon community ( www.patreon.com/FabioMusanni )

  • @akuganteng1945
    @akuganteng1945 Před měsícem

    nooooo dont buy please, mr :')