Here’s a quick test for any single-page web app you’ve built or are using. (Single-page web apps are the kind of apps an AI chatbot can code for us in HTML.)
After publishing, open the app in your browser. Right-click anywhere on the page and choose View Page Source.

Take a look.
You’re looking at the HTML the browser received to display the app. If something is written into that source code, a student (or anyone else on the web) can read it too.
That could include a passcode, an answer key, a hint, or a student name. It isn’t really hacking. It’s simply looking at the code the browser was given.
So when you build an app with AI, write the code as if anyone and everyone will inspect it.
A few good rules
- Keep student information out. Never put student names, email addresses, ID numbers, grades, or other personally identifiable information in your app’s code.
- Don’t hide secrets in the code. If you wouldn’t want students to know a password, don’t put it in the app.
- Treat answer keys as public. If an answer is stored in the page source, assume a determined student can find it.
- Don’t confuse hidden with private. Something can be hidden on the page and still be visible in the code.
But what about apps that use student information?
Here’s an important distinction: code and data are two different things.
Code is the instructions that tell an app what to do. Data is the information the app uses or stores.
For example, the code for a name picker tells the app how to randomly select a name. The student names themselves are data.
You can build the app without putting the names into its code. Then, after the app is published, the teacher can provide the names when using it. That's what Coach B. did in his Partner Picker Wheel app.
Comments
Sign in to leave a comment.