I'm realy a newbie in cryptography, I want to do MQTT payload encryption with AES, i've done it with PyCrypto library, but i'm still wondering how I can encrypt AES key before sending it to the subscriber, so i choose Python library called PyNacl to do that with ECC (curve25519), but i have no idea how to exchange the public key between the publisher and subscriber, have you any idea to do that ?
Asked
Active
Viewed 409 times
1 Answers
3
Public keys by definition are public (no need to keep them secret).
So there is no reason it can't be available for download via http or at a push published as a retained message on a known MQTT topic.
hardillb
- 12,813
- 1
- 21
- 34