Encryption ESP32 & Attiny85

Hi everyone,

I decided to "expand" my project and add rf433 capability.

  1. Attiny85 with rf transmitter + temperature sensor
  2. ESP32 with rf receiver added now

What kind of encryption would you suggest that its compatible with both?
I guess writing the key to the EEPROM isn't wise because anyone who could have access to the devices could retrieve the key.
Can the key be retrieved if its written on the "code" on a variable?

Thank you

It doesn't seem like the data is secret and needs to be encrypted.

Who are you protecting the data from?

..R

Robin2:
It doesn't seem like the data is secret and needs to be encrypted.

Who are you protecting the data from?

..R

Im Chris and I always encrypt data and I try to comply with GDPR and local rules which require encryption

chris700:
Im Chris and I always encrypt data and I try to comply with GDPR and local rules which require encryption

AFAIK GDPR applies to personal data, not temperatures from a sensor.

...R

It's not obvious from your post what the use case is, However, I often use Open MQTT Gateway to do this kind of thing. I don't think you'll find encryption on 433MHz devices but I think(?) OMG can do https.

And if you want to encrypt the code being stored on the ESP32 see ESP32 Flash Encryption API Flash Encryption - ESP32 - — ESP-IDF Programming Guide latest documentation

Robin2:
AFAIK GDPR applies to personal data, not temperatures from a sensor.

...R

I made an example that I follow rules. whether its gdpr or local area rules.
Now if you don't have anything heplful to add on the topic leave the topic as you left EU. Don't delay it too much tho, id like some really helpful posts.
Thank you

Idahowalker:
And if you want to encrypt the code being stored on the ESP32 see ESP32 Flash Encryption API Flash Encryption - ESP32 - — ESP-IDF Programming Guide latest documentation

If that encrypts the code, that means that char and strings variables will also be encrypted? In that case i could store the key on a variable and it would be encrypted?? (i remember in the past writing code on VB, i could easily recover all strings with a decompiler)
Regarding attiny85 what would be your suggestion? If i put the key on the eeprom but i have a function which adds "salt" could it be recovered?

chris700:
If that encrypts the code, that means that char and strings variables will also be encrypted? In that case i could store the key on a variable and it would be encrypted?? (i remember in the past writing code on VB, i could easily recover all strings with a decompiler)
Regarding attiny85 what would be your suggestion? If i put the key on the eeprom but i have a function which adds “salt” could it be recovered?

When you read the ESP32 FLASH Encryption API what does it say that the FLASH Encryption API does?
I do not use the attiny85; perhaps using the InterPornWeb and doing a search for “attiny85 flash encryption” could get results?

What kind of encryption would you suggest that its compatible with both?

Any. Encrypted data are just data; a collection of bytes.

Im Chris and I always encrypt data

Then why are you asking us about encryption?

jremington:
Any. Encrypted data are just data; a collection of bytes.
Then why are you asking us about encryption?

Thanks for your help.
Regarding your question, its too obvious. Because im not sure about esp32 and attiny85. Dont you think life is too short to even type question with a so obvious answer?

Idahowalker:
When you read the ESP32 FLASH Encryption API what does it say that the FLASH Encryption API does?
I do not use the attiny85; perhaps using the InterPornWeb and doing a search for “attiny85 flash encryption” could get results?

Thank you for your suggestion.not sure what you mean by interpornweb tho. Its either a joke i dont get or a wrong copy paste you did. Thanks tho my friend

Dont you think life is too short to even type question with a so obvious answer?

I answered your question.

However, I suspect that the code for some methods of encryption may require more memory than is available on an ATtiny85.

chris700:
I made an example that I follow rules. whether its gdpr or local area rules.
Now if you don't have anything heplful to add on the topic leave the topic as you left EU.

I am an Irish and EU citizen.

The point of my question (which you have not answered) "Who are you protecting the data from?" is that the level of encryption must be tailored to the threat.

I could encrypt data by swapping letters of the alphabet (change A to Z and B to Y etc) but it would not take long for someone to break the encryption and I would be very foolish to think that it would protect me.

The level of encryption that can be implemented on an ESP32 will be very different from what is practical on an Attiny.

...R