Welcome to the Pycom forum Forum
    • \[\[global:header.categories\]\]
    • \[\[global:header.recent\]\]
    • \[\[global:header.tags\]\]
    • \[\[global:header.popular\]\]
    • Login

    Explore Pybytes | Official Documentation | Report a Firmware Bug/Issue | GitHub

    Secure file transfer options for WiPy?

    Scheduled Pinned Locked Moved WiPy 2&3
    ftpwipysecurity
    7 Posts 5 Posters 2.0k Views 6 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • D Offline
      dhblumenfeld1989
      last edited by

      I am new to the forum and just started playing around with the WiPy software on an ESP32 devkitC board. I followed one of the tutorials for uploading files via FTP, but I was wondering if there is any way to use SFTP or any other secure file transfer protocol? I'm developing for a product that will be going out in the field and would like to do secure file transferring to avoid any security breaches.

      1 Reply Last reply Reply Quote 0
      • ahaw021A Offline
        ahaw021
        last edited by

        SFTP usually requires an SSH server

        the chip has fairly limited processing power so you may be able to run an HTTPS server

        https://docs.pycom.io/chapter/firmwareapi/micropython/ussl.html

        Another option is to use AES crypto to encrypt your contents and decrypt on the board

        Andrei

        1 Reply Last reply Reply Quote 0
        • D Offline
          dhblumenfeld1989
          last edited by

          Thanks for the quick answer! Just to make sure I understand, the second option would be having contents AES encrypted, send over FTP and decrypt on the board?

          J ahaw021A 2 Replies Last reply Reply Quote 0
          • J Offline
            jmarcelino @dhblumenfeld1989
            last edited by

            @dhblumenfeld1989

            If the problem is only updating devices in the field I’d suggest simply setting WIPy to AP mode (so the WiPy creates its own WiFi network) and using a complex password to connect. WiFi WPA will then encrypt your data for you.

            If you only use it occasionally - so an attacker can’t collect a lot of data it should be reasonable safe.

            It is possible to do SSH on the ESP32 and we’re looking to support that on our new 4MB RAM devices. The limitation was more of a memory one.

            A 1 Reply Last reply Reply Quote 0
            • ahaw021A Offline
              ahaw021 @dhblumenfeld1989
              last edited by

              @dhblumenfeld1989

              yes that is the design. as @jmarcelino mentioned SSH can use a lot of memmory so there is a trade off

              1 Reply Last reply Reply Quote 0
              • A Offline
                ade.ro @jmarcelino
                last edited by

                @jmarcelino Any news on the SSH? Also, how exactly can we change the password? (assuming is the 'www.pycom.io' one, not the 'python' one)

                S 1 Reply Last reply Reply Quote 0
                • S Offline
                  Sympatron @ade.ro
                  last edited by

                  @ade-ro You can use WLAN.init() it accepts the password in the auth parameter.

                  1 Reply Last reply Reply Quote 1

                  Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                  Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                  With your input, this post could be even better 💗

                  Register Login
                  • 1 / 1
                  • First post
                    Last post

                  Pycom on Twitter

                  Pycom