How to Store API Keys Safely in Notes and Code

    5 min read
    ByGabriel CAKraftwire Software
    Illustration for How to Store API Keys Safely in Notes and Code

    Sources

    1. blog.encoded.life › safely-distributing-api-keys-in-your-mobile-app
    2. info5001.infosci.cornell.edu › store-api-keys.html
    3. docs.cloud.google.com › api-keys-best-practices
    4. blog.gitguardian.com › secrets-api-management
    5. simplyboard.io
    6. simplyboard.io › encryption

    Frequently asked questions

    Is encoding an API key with Base64 or XOR enough to keep it safe?
    No. Base64, Base32 and simple XOR are not safe protection for API keys. Use proven encryption such as AES-GCM instead.
    Can team secrets management tools replace local notes for API keys?
    Managed secrets tools offer another way to store keys, with encryption and tight access controls. They take resources to set up and maintain, so they are not a fit for every case.
    Does client-side encryption protect notes when an app session is unlocked?
    No. An unlocked SimplyBoard session exposes readable content, which encryption does not protect. Keep your devices and saved recovery code secure.

    Start writing with true privacy

    Get Started Free

    Related reading