Encryption Libraries

Discussion about programs, libraries and tools that work with MicroPython. Mostly these are provided by a third party.
Target audience: All users and developers of MicroPython.
Post Reply
Expert
Posts: 10
Joined: Mon Sep 30, 2019 12:16 pm
Contact:

Encryption Libraries

Post by Expert » Mon Oct 19, 2020 7:04 pm

Are there any encryption libraries that can be used with both MicroPython and Python3? The idea is to send encrypted data back and forth from the computer to an ESP32.

User avatar
jimmo
Posts: 2754
Joined: Tue Aug 08, 2017 1:57 am
Location: Sydney, Australia
Contact:

Re: Encryption Libraries

Post by jimmo » Tue Oct 20, 2020 6:08 am

The ESP32 port includes encryption support as part of its implementation of SSL. You can access this with the "ssl" module.

Is your goal to just encrypt the data as it's being transmitted (in which case SSL or HTTPS might be sufficient), or do you actually need to generate an encrypted file that can be later decrypted on some other device/pc.

User avatar
jimmo
Posts: 2754
Joined: Tue Aug 08, 2017 1:57 am
Location: Sydney, Australia
Contact:

Re: Encryption Libraries

Post by jimmo » Tue Oct 20, 2020 7:05 am

FWIW, if you want to do symmetric encryption of data, then the cryptolib module gives you AES encyrption/decryption, and there are many ways to also work with AES from CPython.
https://docs.micropython.org/en/latest/ ... tolib.html

Post Reply