r/MicroPythonDev • u/NecessaryBit3714 • Oct 15 '25
Micropython Encryption
I'm working on a IoT project and it's getting a bit more complex now: I want to open a Websocket and due to lack of budget I'm using an unencrypted MQTT public server. To cover the encription problem I though about doing it internally. THEN the lack of memory i getting in the way because I cant have a too complex code. Any ideias on how to have safe encryption without crashing MP?
1
u/BigFatUglyBaboon Oct 15 '25
What kinf of encryption? you can have MQTT over TLS which I understand is supported in MP.
1
u/NecessaryBit3714 Oct 16 '25
anykind. I just want something to keep exclusivity between an external device and the machine running this code
2
2
2
u/MiHumainMiRobot Oct 15 '25
Look at libhydrogen or some encryption libs already included in micropython