Encrypted File Transfer via Sockets in Python

Поделиться
HTML-код
  • Опубликовано: 10 фев 2025
  • In this video, we learn how to implement encrypted file transfer using sockets in Python.
    ◾◾◾◾◾◾◾◾◾◾◾◾◾◾◾◾◾
    📚 Programming Books & Merch 📚
    🐍 The Python Bible Book: www.neuralnine...
    💻 The Algorithm Bible Book: www.neuralnine...
    👕 Programming Merch: www.neuralnine...
    🌐 Social Media & Contact 🌐
    📱 Website: www.neuralnine...
    📷 Instagram: / neuralnine
    🐦 Twitter: / neuralnine
    🤵 LinkedIn: / neuralnine
    📁 GitHub: github.com/Neu...
    🎙 Discord: / discord
    🎵 Outro Music From: www.bensound.com/

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

  • @dankeroner
    @dankeroner Год назад +10

    "pip install pycrypto" failed
    "pip install pycryptodome " worked perfectly
    close the file after reading it to prevent encoding and decoding errors
    with open('"file", "rb") as f:
    data = f.read()
    f.close()
    ....
    ....
    ....
    Thanks for the content bruv

    • @Dyanosis
      @Dyanosis 8 месяцев назад

      But you're using "with", which handles closing the file for you. Also f doesn't exist in the outer scope, only the scope of the with... so f.close() in your example does nothing.
      That'd be like saying that, in Java, you still need to close a file/resource that was opened with "try(some_resource)".

  • @tips1483
    @tips1483 2 года назад +1

    Love the video, I'd love to see this with an encryption implementation similar to SSL!

  • @mtahiralauddin
    @mtahiralauddin 2 года назад +5

    Your content is always good

  • @paulthomas1052
    @paulthomas1052 2 года назад +2

    Great tutorial - really enjoying your sessions. Thanks :)

  • @roamsoffical
    @roamsoffical 2 года назад +1

    More Encrypted like content, its very cool.

  • @atsbmnt7279
    @atsbmnt7279 2 года назад

    very nice @NeuralNine Thank you

  • @safakkoklu6414
    @safakkoklu6414 9 месяцев назад +3

    That is not a good approach for sending big files. Storing the recieved data in variable consumes your ram equals to the file size. You may want to write recieved data chunk on disk as soon as you get and empty the variable.

  • @pyalgoGPT
    @pyalgoGPT 2 года назад

    It will be best of both world if a Flet app is made ,which provides this feature !

  • @jaydeepchauhan4989
    @jaydeepchauhan4989 23 дня назад

    I wanna create this type of project and I wanna modify it like it was in GUI or whenever I send a file it asks me for the path which file I wanna send and that type of extension it encrypt and send

  • @uncannyRishabh
    @uncannyRishabh 2 года назад +3

    No matter what I do, I cannot send any kind of messages or files remotely from windows to my mac machine.
    I have tried opening the ports on the firewall, disabling the firewall, while keeping the IP address as my public IP, I even tried changing the port to 8080 (i thought this would make the transfer possible via http but didnt work).. am I missing something, please help me out.
    Thanks in advance

    • @kmazz3666
      @kmazz3666 2 года назад +2

      Are the files you are sending compatible with mac? Windows programs are not compatible with mac. It wont understand the data it's decrypting.
      Or are you talking about just establishing the connection itself?
      You'll have to forward the port on your router if you're trying to connect outside of your local network.

    • @khadijanaz404
      @khadijanaz404 2 года назад

      same issue

    • @lengors7327
      @lengors7327 2 года назад +2

      Are you running the server on the windows or on the mac machine? Also, which firewall were you messing with?

    • @khadijanaz404
      @khadijanaz404 2 года назад

      @@lengors7327 window

    • @uncannyRishabh
      @uncannyRishabh 2 года назад +2

      I figured it out guys, my ISP is blocking requests to my forwarded ports (I did port forwarding on my router), but I realised it later that it was my ISP.
      And now I'm back to developing Android apps 🤡

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

    awesome!!!!

  • @alexandruspinu2484
    @alexandruspinu2484 2 года назад

    Neat

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

    It only works on txt file not on docx files

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

      Did you make sure that client.send() has the proper end or not?
      Like:
      client.send("Example.docx")
      Just curious

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

    btw mkv is total shit i always stick with mp4, least then it plays on the player side!

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

    wheres the link to the code whats the point in having github if your not going to make a repo for every project on yt makes no fkin sense!

    • @Dyanosis
      @Dyanosis 8 месяцев назад

      Someone needs a chill pill and to learn how to talk to other people even though the internet gives you "anonymity".
      Besides, there's this lovely feature called "pause" for videos. Maybe you've heard of it? You can pause the video and copy what he's written. It's better, for your learning, if you're forced to write/type out what he did so you better understand what you're using rather than just copy/pasting and not understanding a thing.