---
title: "How to Write Notes in Code: Metaphor Beats Cipher"
description: "Ciphers slow you down and crack under pressure. The stronger private notation is idiosyncratic metaphor, notes whose key is the structure of your own mind."
url: https://buildfirstbrain.com/journal/epistemic-cryptography/
canonical: https://buildfirstbrain.com/journal/epistemic-cryptography/
author: "Lawrence Arya"
authorUrl: https://www.linkedin.com/in/vibecoding/
published: 2026-06-04
updated: 2026-06-04
category: "Cognitive Sovereignty"
tags: ["note-taking", "privacy", "cognitive sovereignty", "first brain", "data privacy"]
lang: en
---

# How to Write Notes in Code: Metaphor Beats Cipher

> **TL;DR** You write notes in code by choosing the right layer for the job. For true secrets, passwords, legal matters, use real encryption, not homemade ciphers, which are weak and slow you down. For everything else, the stronger play is epistemic cryptography: write in compressed, idiosyncratic metaphors and references whose meaning depends on your own internal knowledge graph. Such notes stay instantly readable to you, while remaining semantically opaque to shoulder-surfers, data miners, and AI scrapers, because the decryption key is the structure of your mind and it is never transmitted.

You write notes in code by matching the layer to the threat. For genuine secrets, credentials, legal and financial matters, use real encryption built by professionals; homemade ciphers are weak against analysis and slow against your own reading speed. For everything else, the Build First Brain answer is stronger and stranger: write in deep, idiosyncratic metaphor, compressed references whose meaning only resolves against your own internal knowledge graph. Call it epistemic cryptography. The notes stay instantly readable to you, because no decoding step exists, while remaining semantically opaque to shoulder-surfers, data miners, and AI scrapers, because the key, the structure of your mind, is never written anywhere. The denser your graph, the stronger the encryption gets.

## Why are literal ciphers the wrong tool for notes?

Because they fail both jobs at once. Classical schemes, letter substitutions, shifted alphabets, symbol swaps, [fall to elementary frequency analysis, which is why they survive today as puzzles rather than protection](https://en.wikipedia.org/wiki/Book_cipher); they stop a sibling, not an adversary. Meanwhile they tax the one user who matters: every note costs an encoding step to write and a decoding step to read, and notes that resist reading stop being used. Even [shorthand, the most successful compression notation ever deployed, earns its keep through speed, not secrecy](https://en.wikipedia.org/wiki/Shorthand), and its privacy was always incidental.

**The genuinely secret belongs in genuine cryptography**: [end-to-end encryption keeps content readable only at the endpoints, with no intermediary, including the service operator, able to decrypt it](https://en.wikipedia.org/wiki/End-to-end_encryption). That layer is solved. The interesting question is everything above it.

| Method | Best for | Why it works | Main limit | Verdict |
| --- | --- | --- | --- | --- |
| Idiosyncratic metaphor, graph as key | Daily private thinking | Zero read cost for you, opaque to others | Key must stay consolidated in memory | Best overall |
| Real encryption (E2EE tools) | True secrets and credentials | Mathematics, professionally built | Friction; protects files, not meaning | Best for secrets |
| Homemade ciphers and symbol codes | Puzzles and play | Feels clandestine | Weak and slow, worst of both layers | Avoid for real use |

## What is epistemic cryptography?

Privacy through meaning. Consider the note: apply the Hannibal move to the March problem, watch for the Carthage failure mode. To its author this is dense, actionable plaintext: a specific maneuver abstracted from a specific book, a specific situation, a specific known risk. To anyone else, human or machine, it is grammatically clean noise, guessable in a dozen directions and verifiable in none. The mechanism is [a book cipher generalized: the key is a shared text, except here the text is your entire mental structure](https://en.wikipedia.org/wiki/Book_cipher), every book read, every project survived, every private nickname for a recurring pattern, and that key is never transmitted because it cannot be.

This is why scrapers parse the words and miss the payload. The mapping from Hannibal to the maneuver you mean exists only as an edge in your graph, the same un-extractable layer as [tacit knowledge, the know-how that resists articulation even by its owner](https://en.wikipedia.org/wiki/Tacit_knowledge). A model trained on the public internet can read your note; it cannot read you, which is the entire point, and the same asymmetry behind [the unscrapable asset of human synthesis](/journal/the-unscrapable-asset-human-synthesis/).

## How do you build a private notation that works?

Four habits, all of which double as thinking practice.

**Name your patterns.** When a situation type recurs, give it a private name drawn from something you know deeply, a battle, a chess motif, a fictional character's mistake. Naming compresses; private naming encrypts.

**Compress aggressively.** Two-word notes that index rich internal structure beat paragraphs that explain. The discipline test: if a stranger could reconstruct the meaning from the note alone, you wrote too much context around the metaphor.

**Anchor the key.** The system rots if the referents fade, so build metaphors on your most consolidated knowledge, the books you have truly absorbed, the projects you lived through, and revisit long-lived notes occasionally, the maintenance habit of [memory without the cloud](/journal/memory-without-the-cloud/).

**Keep the layers separate.** Metaphor for the working layer, mathematics for the secret layer, and never confuse the two: the mistake I see most often is trusting cleverness where cryptography was needed, the boundary drawn sharply in [the cypherpunk approach to memory](/journal/the-cypherpunk-approach-to-memory/).

The pleasant side effect: every move in this system, naming patterns, compressing meaning, anchoring references, is also just deep thinking. The notation and the understanding improve together.

## When is writing in code the wrong move?

Whenever the reader is not you. Team documentation, handoffs, and anything posthumous or legal must be explicit; private metaphor there is not privacy, it is failure to communicate. Future-you is a marginal case worth respecting: after years, a note keyed to memories that faded becomes noise to its own author, which is why the durable metaphors ride on durable knowledge and the merely clever ones deserve expiry dates. And context leakage is real: surround a private reference with enough explicit detail and the meaning reconstructs from the residue, so the compression discipline is the security discipline. The system protects a thinking mind, not a careless one.

## Key takeaways: writing notes in code

Use mathematics for secrets and metaphor for everything else. Real encryption handles the content that must never leak; epistemic cryptography, compressed idiosyncratic references keyed to your own knowledge graph, handles the daily layer, staying instantly readable to you and opaque to every scraper because the key lives only in your head. Skip homemade ciphers, keep shared writing explicit, and anchor private notation to your best-consolidated knowledge. The richer the graph, the stronger the cipher, which makes the deepest privacy tool the same as the deepest thinking tool: [Building Your First Brain](/), free for the first 1,000 readers.

## Frequently asked questions

### How do you write notes in code?

Match the layer to the threat, the Build First Brain way. Genuine secrets belong in real encryption, an end-to-end encrypted notes tool, never in homemade ciphers, which are both weak and slow. For everything else, write in compressed personal metaphor: idiosyncratic shorthand, project codenames, and references that only resolve against your own knowledge graph. Those notes read instantly to you and remain semantically opaque to anyone else, because the key is the structure of your mind.

### What is epistemic cryptography?

Privacy through meaning rather than mathematics. A note like 'apply the Hannibal move to the March problem' is plaintext to its author, whose internal graph holds what Hannibal means here and which problem March names, and noise to everyone else, human or machine. It works like a book cipher whose key text is your entire mental structure: the mapping lives in your head, is never written down, and grows richer the denser your graph becomes.

### Are homemade ciphers good for private notes?

No, on both counts that matter. Substitution and letter-shift schemes fall to elementary frequency analysis, so they stop no determined reader, and they tax the wrong person: you pay an encoding and decoding cost on every use, which kills the speed that makes notes useful. If the content genuinely needs secrecy, use modern encryption built by professionals. If it needs privacy-in-plain-sight, personal metaphor is stronger and costs nothing at read time.

### Can AI scrapers really not parse metaphorical notes?

They parse the words and miss the meaning. A model can read 'Hannibal move' and offer guesses, but the actual referent, the specific maneuver you abstracted from a specific book and attached to a specific situation, exists only as a connection in your head, and no amount of text analysis recovers a mapping that was never written. The caveat: context leaks. Surround the metaphor with enough explicit detail and the meaning reconstructs, so compression discipline matters.

### When should you not write notes in code?

Whenever someone else must read them, including future-you after a long gap. Shared documentation, team wikis, and handoff notes need explicit language; private metaphor there is just bad writing. And idiosyncratic notation rots if the underlying memory fades, so anchor your recurring metaphors to well-consolidated knowledge, and review long-lived notes occasionally. Code is for the working layer of a private mind, not for archives others depend on.

## Dive deeper in

- [How to Protect Your Intellectual Property: Own the Logic](/journal/the-cypherpunk-approach-to-memory/)
- [Analog Encryption: Memory Palaces as Safes](/journal/analog-encryption-memory-palaces-as-safes/)
- [The Unscrapable Asset: Human Synthesis](/journal/the-unscrapable-asset-human-synthesis/)
- [Memory Without the Cloud](/journal/memory-without-the-cloud/)

---

Source: https://buildfirstbrain.com/journal/epistemic-cryptography/
Author: Lawrence Arya — https://www.linkedin.com/in/vibecoding/
