Writing
Notes on cybersecurity, software, and what I am learning.
We Thought He Was Teaching Us Cybersecurity
Years later, I understood that Prof. Gihan Dias had been teaching us something much larger. I do not remember what was written on the first slide. It may have been a definition of cybersecurity. It may have shown the…
· 20 min read · MediumCracking Password Hashes Using John the Ripper
Wait, aren’t hashes uncrackable? That’s what I thought too, before a lab project that was given to me. The popular idea is : password goes in, hash comes out, nobody can reverse it. And technically, that’s true. You c…
· 5 min read · MediumPort Scanner
Building a lightweight TCP port scanner in Go. A simple explanation using everyday analogies to show how we check for open 'doors' on the internet.
· 6 min readEncryption Decryption Tool
Building a custom dual-algorithm encryption tool using AES-GCM and RSA with Python and Docker, culminating in a hybrid encryption approach used in real-world systems like TLS and PGP.
· 10 min readPassword Strength Analyzer
A Python-based password strength tool featuring entropy calculation, SHA-1 hashing, and real-time breach detection via the Have I Been Pwned API using k-Anonymity. Includes a responsive tkinter GUI with a live strength meter, color-coded scoring, and threaded API calls to keep the interface responsive.
· 10 min readBreaking Weak RSA: A Classic CTF Walkthrough
· 4 min readpicoCTF Writeup: Rust Fixme 1 - Basic Syntax
Diving into Rust for the first time! Fixing basic compiler errors, missing semicolons, and learning print formatting to decrypt a picoCTF flag.
· 2 min readpicoCTF Writeup: Rust Fixme 2 - Battling the Borrow Checker
Taking on Rust's notorious borrow checker. Learning how to properly pass mutable references (&mut) to functions to modify strings and capture the flag.
· 3 min readpicoCTF Writeup: Rust Fixme 3 - Stepping into Unsafe Rust
Exploring Rust's memory security features by working with raw pointers. Learning why and how to wrap code in 'unsafe' blocks to bypass compiler restrictions.
· 3 min readAPI Key vs OAuth 2.0 Access Token
A clear comparison of API Keys and OAuth 2.0 Access Tokens — what they are, how they work, and when to use each one.
· 3 min readOAuth 2.0 vs OpenID Connect (OIDC)
Understanding the key difference between OAuth 2.0 and OpenID Connect, and why OIDC should be used for authentication instead of raw OAuth.
· 3 min readThe OWASP Top 10 (2025) & Why It Matters for Enterprise Security at WSO2
A comprehensive breakdown of the 2025 OWASP Top 10 web application security risks and their critical relevance to middleware and IAM providers like WSO2.
· 10 min readAuthentication vs Authorization
Understanding the key differences between Authentication and Authorization, and how to implement them in web applications using JWTs, RBAC, and industry-standard protocols.
· 4 min read