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

Поделиться
HTML-код
  • Опубликовано: 29 ноя 2024

Комментарии • 47

  • @FabioMusanni
    @FabioMusanni  Год назад +4

    💻 *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: ruclips.net/video/vVBSmYSgNNM/видео.html
    🎥All my videos about Python: ruclips.net/p/PLs8qUrmRvaR0IT4IwJl-LSweAdACW-yLK

  • @liquidation22
    @liquidation22 Год назад +6

    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  Год назад

      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.

  • @alayovictor5378
    @alayovictor5378 5 месяцев назад +2

    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 ❤❤

  • @martaaramu30
    @martaaramu30 8 месяцев назад +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?

  • @pilotcourse
    @pilotcourse Год назад +5

    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  Год назад +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! 💪🔥

  • @dineshkarki371
    @dineshkarki371 Год назад +1

    thanks for the video much love from Nepal

    • @FabioMusanni
      @FabioMusanni  Год назад +2

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

  • @barbs923
    @barbs923 Год назад +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  Год назад +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 Год назад

      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

  • @MuhammadAshir-du5di
    @MuhammadAshir-du5di 7 месяцев назад

    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  7 месяцев назад

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

  • @annsoul6635
    @annsoul6635 Год назад +2

    Useful❤️🙌

    • @FabioMusanni
      @FabioMusanni  Год назад +1

      Thank you very much for the comment!! ❤😊

  • @No-xt3ej
    @No-xt3ej 10 месяцев назад +1

    That was cool.

    • @FabioMusanni
      @FabioMusanni  10 месяцев назад +1

      Thank you for the comment! 🥹🙏🏻
      Remember that you can get all my source codes (this included) from here: www.buymeacoffee.com/fabiomusanni/extras

  • @mdaniels6311
    @mdaniels6311 4 месяца назад

    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.

  • @shannufarhath5292
    @shannufarhath5292 Год назад

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

    • @FabioMusanni
      @FabioMusanni  Год назад

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

  • @assassinsassassinator6397
    @assassinsassassinator6397 Год назад

    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  Год назад

      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 )

  • @domzzy6432
    @domzzy6432 5 месяцев назад

    How can i get your source code on Github

  • @bishwarupdey10
    @bishwarupdey10 Год назад

    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  Год назад

      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 Год назад

    can you tell which website you use for python program?

    • @FabioMusanni
      @FabioMusanni  Год назад +1

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

    • @rainbow312
      @rainbow312 Год назад

      @@FabioMusanni thank you for replying ☺️

    • @FabioMusanni
      @FabioMusanni  Год назад

      @@rainbow312 No worries ☺☺

  • @Razan-adel
    @Razan-adel 11 месяцев назад

    where I can contact with you please?

  • @mdaniels6311
    @mdaniels6311 4 месяца назад

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

    • @meriemabdeladim1672
      @meriemabdeladim1672 2 месяца назад

      you are probably returning letter instead of cipher_text

  • @figureofspeech4581
    @figureofspeech4581 Год назад

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

    • @FabioMusanni
      @FabioMusanni  Год назад +1

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

  • @Pwnedby
    @Pwnedby Год назад +2

    I found some code really similar to this in openai

    • @FabioMusanni
      @FabioMusanni  Год назад +2

      So what's that supposed to mean? 🤔🤔

    • @Pwnedby
      @Pwnedby Год назад

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

    • @FabioMusanni
      @FabioMusanni  Год назад +3

      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 Год назад

      @@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  Год назад

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

  • @ShivamRawat-gw5xv
    @ShivamRawat-gw5xv Год назад

    COULD YOU SHARE CODE LINK

    • @FabioMusanni
      @FabioMusanni  Год назад

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

  • @akuganteng1945
    @akuganteng1945 6 месяцев назад

    nooooo dont buy please, mr :')

    • @ysuff._us
      @ysuff._us 2 месяца назад

      Tinggal tiru aja bg sesuai videonya, kalo emang ga bisa lgsg copy