Protecting privacy and confidential code when using AI tools
Private information like personal data, passwords or secret code. Never paste it into an AI tool, as it may be stored or used to train the model. Use fake sample data and check the data policy.
Understanding Protecting privacy and confidential code when using AI tools in VCE Software Development U3O1
What it does: The example.com address is a reserved placeholder that belongs to no real person, so it shows the structure of the data without leaking personal information. Never paste real passwords into an AI tool. It may store them or use them to train the model. Replace them with fake placeholder values. Confidential code and credentials must stay private. Generic code with no sensitive content is fine to share. Checking the data policy tells you whether prompts are stored, shared or used to train the model. Popularity does not guarantee privacy. The risk is privacy. Personal data could be kept by the tool or appear in training data, so use fake data instead.
Common mistakes: real_name is never defined, so this causes a NameError. It also suggests using real personal data in the prompt. The line should use the fake sample value: f'Fix {fake_name}'. replace(old, new) has its arguments swapped. This would insert the secret key into the code instead of removing it. It should be code.replace(key,'X') so the key is hidden before pasting into an AI tool.
Free printable worksheet with full answer key — or add this module to a class and your students practise it interactively.
This module's key terms are also in a printable crossword (Modules 178–193) and word search (Modules 168–193).
Take this worksheet further — free with Cloodit
Each concept is reinforced from every angle — learned, then applied, then tested.
Cloodit turns curriculum-aligned coding content into journeys students work through one biome at a time.
Over 100 of them, across seven natural biomes.
Turns their work into revision material ready for Flash Cards and Exam study.
Live, competitive practice for the start of the lesson or a teacher-led lesson finisher.
Honour your top performers, or encourage a student who's trying hard — ready to print in seconds.
Quick Questions
Match the Pairs
Key Term
confidential dataFill in the Blanks
Spot the Error
Student with a class code? Join your class →