Secure file transfer options for WiPy?
-
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.
-
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
-
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?
-
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.
-
yes that is the design. as @jmarcelino mentioned SSH can use a lot of memmory so there is a trade off
-
@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)
-
@ade-ro You can use WLAN.init() it accepts the password in the
authparameter.
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