Go Down

Topic: Store your sensitive data safely when sharing a sketch via URL (Read 701 times) previous topic - next topic


We have just released a new feature this morning, we would like to hear your feedback before writing a blogpost, a full tutorial, and updating the Arduino Examples :)

Often when sharing a sketch there are some sensitive data that you want to keep private, but there was no way to do so. Now you can add a secret tab and store your private data there.

How to do it?
- Write your sketch as usual

- In your sketch replace the strings containing sensitive data by writing SECRET_NAMEYOUWANT. For instance if your string is "psw", you should replace it with SECRET_PSW, make sure all these identifiers are in caps.

- The Secret tab will be automatically created as soon as you type. Go to that tab and fill the fields with the sensitive values.

- That's it! If you share this sketch with someone the values on this tab will be blank.

Alternatively you can also click on the tab button and add the Secret tab directly from there, these instructions will be reported in the tab for quick reference.

All the values you enter will be considered as string, and only secret values used in .ino file will be processed (not in the .cpp, nor .h file).

Let us know what you think and enjoy!

Go Up