Lesson 1018 of 1169
Don't Paste Real Passwords Into AI Code
Never paste your real passwords or keys into AI when coding.
Explorers · AI-Assisted Coding · ~4 min read
The big idea
When coding with AI, never paste real passwords, API keys, or family info. Use fake placeholder words instead.
Some examples
- Use 'YOUR_PASSWORD_HERE' as a placeholder.
- Use 'your-email@example.com' as a fake email.
- Never paste a real bank or game login.
- AI chat may save what you typed for a long time.
Try it!
Look at any tutorial code. Notice how they use 'YOUR_KEY_HERE' instead of real keys. Copy that habit.
Here's why "Don't Paste Real Passwords Into AI Code" matters: AI can help you write, fix, and understand code faster than ever — even if you're just learning. Never paste your real passwords or keys into AI when coding — and knowing how to apply this gives you a concrete advantage.
- Learn what "secrets" means and why it's important
- Learn what "code safety" means and why it's important
- Learn what "AI coding" means and why it's important
- 1Ask AI to explain what a 'loop' does in simple words
- 2Try asking AI to fix a bug in a few lines of code
- 3Ask AI to write a simple 'Hello World' program in any language
Key terms in this lesson
End-of-lesson quiz
Check what stuck
8 questions · Score saves to your progress.
Lesson help
Questions are best handled with a grown-up here.
For this age range, Tendril keeps freeform AI chat paused until parent/guardian consent and child-safe moderation are fully verified. Use the quiz, notes, and related lessons below, or ask a parent, guardian, teacher, or librarian to work through the question with you.
Progress saved locally in this browser. Sign in to sync across devices.
Related lessons
Keep going
Explorers · 40 min
How AI Helps Make Sure Code Actually Works
AI can write 'tests' — little checks that make sure your code does what you want.
Creators · 45 min
Codex Environments: Make the Agent's Machine Boring
Most failed agent runs are boring environment failures. Learn how to give Codex dependencies, setup steps, env boundaries, and project rules.
Creators · 11 min
AI and secrets rotation scripts
Generate rotation scripts for API keys and DB credentials with LLMs.
