Author: Afonso Oliveira

Making Private AI run in the Cloud With Enclaves

Making Private AI run in the Cloud With Enclaves

In my article on end-to-end encryption, I mentioned the story of a nameless character who needs privacy guarantees to use an application to its fullest. From his friend Lily, who works at the company, to the company’s CEO Caroline, and an external global threat represented by someone named Mario, all of them take part in […]

InnerApple: End-to-End Encrypted Journaling with Private AI

Journaling only works if you trust the medium. InnerApple replaces trust with cryptography — every entry is encrypted on-device before it leaves, and the server only ever stores ciphertext it cannot read. The stack is Flutter on the front end, FastAPI on the back end, and Rust via FFI for the cryptographic heavy lifting. AES-256-GCM […]

flutter_concrete: Bringing Fully Homomorphic Encryption to Mobile

Fully Homomorphic Encryption lets you compute on data without decrypting it. It has been practical for roughly three years. What it has not been is mobile-friendly. flutter_concrete is a Flutter FFI plugin that brings Zama’s Concrete ML to iOS and Android. It handles the full client-side FHE workflow: key generation, quantization, encryption, and decryption. The […]

Emotwen: Fine-Tuning a Small Model to Listen Without Advising

Most chatbots reach for solutions. You say something difficult and they suggest meditation, therapy, five actionable steps. Emotwen does the opposite — it listens, reflects, and validates. It does not give advice. Emotwen is Qwen 3.5 (0.8B parameters) fine-tuned into an empathetic journal companion. The name is Qwen backwards — the model’s job is to […]

The Best AI Engineers Are Half Domain Experts

Today I wanted to talk about something that comes up frequently when I talk to other people on AI-related topics. Something that can have a huge impact in the final performance of an AI solution depending on how the teams address that. I am talking about how AI Engineering or Data Science teams should interact […]

FHE – Running ML on encrypted data

I built a journal app where the server classifies your emotions without ever reading your text. The app already had end-to-end encryption. Every entry gets encrypted on-device before it leaves. The server stores opaque blobs and can’t read anything. But I wanted the app to do more than store text. I wanted it to understand […]

Building an End-to-End Encrypted Journal: My First Steps Toward Privacy-First AI

I have been working on a startup that launched an app focused on better mental health. The goal is not to provide therapy, but to support self-development and reflection. That got me thinking. AI can be genuinely useful for this kind of product. It can help surface patterns, organize thoughts, or enrich journaling with features […]