Home > Projects > Security – Safety Projects > Store Your Sensitive Data Safely When Sharing a Sketch

Store Your Sensitive Data Safely When Sharing a Sketch

Summary of Store Your Sensitive Data Safely When Sharing a Sketch


This article explains how to protect sensitive data like Wi-Fi credentials and API keys when sharing Arduino sketches. By using the `SECRET_` identifier in the `.ino` file, users can create a dedicated Secret tab in the Arduino Web Editor or Desktop IDE to store private values. These values remain hidden when the sketch is shared via URL or downloaded, ensuring security while allowing easy configuration for the user's own account.

Parts used in the Store Your Sensitive Data Safely When Sharing a Sketch:

  • Arduino Web Editor
  • Arduino IDE
  • WiFi101 Library
  • MKR1000 Board
  • Wi-Fi Shield

If there is sensitive data that you want to keep private when sharing a sketch, add a secret tab and store your private info there!

Store Your Sensitive Data Safely When Sharing a Sketch

Things used in this project

Software apps and online services

Arduino Web Editor
Arduino Web Editor
Arduino IDE
Arduino IDE

Story

Quick Solutions to Questions related to Store Your Sensitive Data Safely When Sharing a Sketch:

  • How do I hide sensitive data in my Arduino sketch?
    Replace strings containing sensitive data with SECRET_NAMEYOUWANT identifiers in your .ino file.
  • What software supports the Secret tab feature?
    The feature is designed specifically for the Arduino Create Editor and the Desktop Arduino IDE.
  • Can I use the Secret tab with .cpp or .h files?
    No, only secret values used directly in the .ino file will be processed.
  • What happens to my secrets if I share the sketch via URL?
    The values on the Secret tab will appear blank to anyone you share the sketch with.
  • Does the system store secrets as encrypted text?
    No, the secrets are stored as plain text values accessible only when logged into your personal account.
  • How do I remove the Secret tab from my project?
    You can delete the Secret tab by removing all SECRET_XX identifiers from the .ino file.
  • What file is created when downloading a sketch with secrets?
    Downloading creates a file named arduino_secrets.h inside the .zip archive.
  • Are there any specific requirements for the secret identifiers?
    All identifiers must be written in capital letters, such as SECRET_SSID.

About The Author

Ibrar Ayyub

I am an experienced technical writer holding a Master's degree in computer science from BZU Multan, Pakistan University. With a background spanning various industries, particularly in home automation and engineering, I have honed my skills in crafting clear and concise content. Proficient in leveraging infographics and diagrams, I strive to simplify complex concepts for readers. My strength lies in thorough research and presenting information in a structured and logical format.

Follow Us:
LinkedinTwitter
Scroll to Top