Alejandro Rodriguez Romero·1d agoECIES in TypeScript, step by step: from secp256k1 ECDH to encrypt-then-MACYou have someone’s public key and want to send them a secret. The usual shortcut goes like this: run ECDH, use the 32 bytes of the shared…
Alejandro Rodriguez Romero·5d agoA Mock with Memory: CRUD, Soft Delete, and Restore Without Writing a BackendThe frontend already knows how to create a note and send it to the trash. The mock doesn’t. A static GET won’t remember the POST or the…
Alejandro Rodriguez Romero·6d agoSHA-3 isn't Keccak: why your hash doesn't match Ethereum'sYour Solidity contract computes keccak256, your Node backend computes sha3-256 over the same bytes, and the two results look nothing alike.
Alejandro Rodriguez Romero·Nov 9AES-GCM in TypeScript: the 12-byte nonce, the tag, and why your ciphertext won’t decrypt on the…The key isn’t missing. The tag is. Node hands it over separately; Web Crypto expects it at the end of the ciphertext.
Alejandro Rodriguez Romero·Nov 6Your bundle’s raw KB lie: measure gzip and brotli before you mergeYou open dist/, add up the JS, and relax: "the bundle is 420 KB." That number is how much the file takes on disk. It is not what the person…
Alejandro Rodriguez Romero·Aug 23HMAC over JSON in TypeScript — why verify fails in productionIn the previous post we treated bytes as Uint8Array and skimmed HMAC for a JSON body. The one-liner looked fine. Then production hit…
Alejandro Rodriguez Romero·Aug 17Buffer vs Uint8Array in TypeScript crypto (and why it hurts)In Node, Buffer shows up almost by default. In the browser and on the edge, the real contract is typed arrays — Uint8Array — and often Web…A response icon1A response icon1
Alejandro Rodriguez Romero·Aug 16Switch Success and Error Without Touching Your FrontendThe list view is done. The empty state is designed. The error toast is wired. Then you wait — for staging to come back, for someone to seed…
Alejandro Rodriguez Romero·Aug 9Mock Your API in 5 Minutes with JSON (No Backend Required)Your frontend needs the API now. The backend isn’t ready, staging is down, or you want to trigger a 500 without asking anyone to break the…
Alejandro Rodriguez Romero·Aug 9I Built a Free Planning Poker App with SvelteKit and Cloudflare Durable ObjectsOpen-source Planning Poker: no signup, real-time rooms on SvelteKit + Durable Objects.