Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • CreatiCode
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo

CreatiCode Scratch Forum

  1. CreatiCode Forum
  2. Help
  3. Does saving private data act as like a "secret" or "environment variable"?

Does saving private data act as like a "secret" or "environment variable"?

Scheduled Pinned Locked Moved Help
questionhelpvariables
2 Posts 2 Posters 964 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • JaecadeJnightJ Offline
    JaecadeJnightJ Offline
    JaecadeJnight
    Mod Helper
    wrote on last edited by jeffreyrb03-gmail
    #1

    14bd6469-55be-4d50-8b37-24d32abb763f-image.png
    Is this basically like a code secret, or better known as an “environment variable”? Like is it secure enough for like storing a password (for anything) or API key/token (for cloud blocks)? Replit has a whole article about secrets, but here is the most important part which just defines them:

    “Secrets are encrypted variables you can store within your project to keep sensitive information safe. With APIs, databases, or other external services, secrets allow you to securely pass authentication credentials without exposing them directly in your code.”

    #LLJW
    <span style="color:white;background-image:linear-gradient(to right, lightblue, navy)">My name is Jeff</span>

    CreatiCodeI 1 Reply Last reply
    0
    • JaecadeJnightJ JaecadeJnight

      14bd6469-55be-4d50-8b37-24d32abb763f-image.png
      Is this basically like a code secret, or better known as an “environment variable”? Like is it secure enough for like storing a password (for anything) or API key/token (for cloud blocks)? Replit has a whole article about secrets, but here is the most important part which just defines them:

      “Secrets are encrypted variables you can store within your project to keep sensitive information safe. With APIs, databases, or other external services, secrets allow you to securely pass authentication credentials without exposing them directly in your code.”

      CreatiCodeI Online
      CreatiCodeI Online
      CreatiCode
      wrote on last edited by
      #2

      @jeffreyrb03-gmail

      It should not be used to store real secrets like passwords. The reason is that this block runs on the “client” side (the user’s browser), so when the data is sent over the Internet to the webserver, it is exposed in the network package.

      However, for most games/projects you build for learning, it should be good enough.

      The “private” mode is meant to store data specific for one user. Say 100 users are running your shared game. Suppose each of them can specify a secret passcode that can be used to save or load game progress. You can use this block and use the “private” mode, so the data is separated by user ID, and 2 users can’t see each other’s data.

      1 Reply Last reply
      2

      Hello! It looks like you're interested in this conversation, but you don't have an account yet.

      Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

      With your input, this post could be even better 💗

      Register Login
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • CreatiCode