Posts

Showing posts from June, 2026

The Bug That Taught Me Cryptography Isn't Enough: How Flawed API Logic Can Destroy a Secure Vault

Image
When I thought of building security-focused applications, the emphasis was on encryption. Use a well-tested cryptographic library, avoid storing plaintext, and derive keys properly. Those are all good practices. I followed the same approach while building a small self-hosted password manager called vo!t (sounds similar to vault!) using Flask. Passwords were encrypted before being written to disk, and I eventually replaced a stored encryption key with one derived from a master password using PBKDF2. From a cryptographic standpoint, nothing was obviously wrong. The problem was in the application logic. During testing, I found that submitting an incorrect master password didn't return an authentication error. Instead, the application accepted the request, wrote data encrypted with the wrong key into the vault, and left the database in a state where legitimate users could no longer decrypt it. The encryption library behaved exactly as expected. My application didn't. ...

Learning IPv6 in Cisco Packet Tracer: From Direct Connections to Routed Networks

Image
As part of my CCNA preparation, I decided to learn IPv6 by building progressively larger networks in Cisco Packet Tracer. Rather than memorizing commands, I focused on understanding how packets move between devices and how routers handle traffic between different IPv6 networks. Why IPv6? IPv4 addresses are limited, while IPv6 provides a vastly larger address space and several improvements in routing and address assignment. Since IPv6 is an important CCNA topic, I started with simple topologies and gradually moved toward routed networks. Lab 1: Two PCs Connected Directly My first exercise involved connecting two PCs directly and assigning IPv6 addresses from the same subnet. Goal Verify that two hosts can communicate when they belong to the same IPv6 network. Key Concepts Learned IPv6 address structure Prefix length (/64) Basic connectivity testing using ping Neighbor discovery After assigning addresses, I verified connectivity using the ping command. Lab 2: Two PCs Connected Through a ...