#security
Posts tagged with “security”.
33 posts
API Authentication Methods Compared
API keys, JWTs, OAuth and sessions each solve a different problem. Learn how they work, when to use each, and the common mistakes.
bcrypt vs Argon2: Choosing a Password Hash
Both are deliberately slow. Learn the parameters, the memory cost, and which password hash to choose for a new application.
Content Security Policy: A Practical Guide
CSP restricts what a page may load, which blunts a cross-site scripting attack. Learn the directives, the nonce, and the report-only mode.
Cookies Explained: Attributes, Scope and Security
Cookies carry state across requests. Learn the attributes, the SameSite values, the security flags, and the size and scope limits.
CORS Explained: Why Your Fetch Request Is Blocked
CORS is a browser rule, not a server one. Learn the preflight, the headers, the credentials, and how to fix the common errors.
CSRF Explained: How It Works and How to Stop It
Cross-site request forgery makes a browser send an authenticated request. Learn the attack, the token defence, and SameSite cookies.
Dependency Vulnerabilities: Finding and Fixing Them
Most of your code is a dependency. Learn how to scan, how to triage, and how to fix a vulnerability without breaking the build.
Dependency Vulnerability Scanning: A Practical Guide
Most of your code is dependencies. Learn how to scan them for known vulnerabilities, triage the results, and keep them patched.
Digital Signatures Explained: Signing and Verifying
A signature proves who sent a message and that it was not changed. Learn the keys, the hash, the verification and the common mistakes.
Encryption Basics: Symmetric, Asymmetric and Hashing
Encryption hides data, hashing verifies it, and a signature proves origin. Learn the three, the keys, and the mistakes to avoid.
Environment Variables: Best Practices and Pitfalls
Environment variables configure an application without changing code. Learn the patterns, the security rules, and the traps.
Hashing vs Encryption: What the Difference Is
A hash is one-way and an encryption is reversible. Learn the uses, the algorithms, and why a password is hashed not encrypted.
HTTP vs HTTPS: What the S Actually Changes
HTTPS is HTTP inside TLS. Learn the handshake, the certificate, the mixed content problem, and why every site needs it today.
Input Validation: A Practical Guide
Validate at the boundary, allowlist what is expected, and never trust the client. A practical guide to validating input safely.
JWT Explained: Structure, Signing and Pitfalls
A JWT is three base64url parts joined by dots. Learn how signing works, what it proves, and the mistakes that make tokens insecure.
Linux File Permissions Explained: chmod, chown and umask
Read, write, execute for owner, group and others. Learn the octal notation, the special bits, and how umask sets defaults.
localStorage vs sessionStorage vs Cookies: What to Use
Three browser stores, three lifetimes. Learn the scope, the size, the security, and which one fits a given value.
OAuth 2.0 Explained: Flows and When to Use Each
OAuth 2.0 lets an app access a user's data without their password. Learn the flows, the tokens, and the mistakes that cause vulnerabilities.
The OWASP Top 10: A Practical Guide for Developers
The OWASP Top 10 lists the most critical web risks. Learn each one, the cause, and the concrete fix for it.
Password Hashing: Choosing and Tuning an Algorithm
A password must be hashed with a slow algorithm. Learn Argon2id, bcrypt, the cost, the salt, and the migration path.
Password Storage: Hashing, Salting and Cost
Passwords must be hashed with a slow, salted algorithm. Learn why bcrypt, scrypt and Argon2 are the right choices and what to avoid.
Penetration Testing Basics: What It Is and How to Scope It
A pen test finds a flaw before an attacker does. Learn the scope, the rules of engagement, the phases, and the report.
Public Key Cryptography: Keys, Signatures and Exchange
A key pair has a public and a private half. Learn the encryption, the signature, the key exchange, and the trust problem.
Rate Limiting Algorithms: Token Bucket to Sliding Window
A rate limit protects a service from abuse. Learn the algorithms, the headers, the distributed case, and the client behaviour.
Secret Management: Storing and Rotating Credentials
Secrets in code and config files leak. Learn where to store them, how to inject them, and how to rotate them without downtime.
Security Headers: A Practical Reference
HSTS, CSP, X-Content-Type-Options and the rest. Learn what each security header does and how to set it without breaking your site.
Session vs Token Authentication: Which to Choose
Server sessions and stateless tokens solve the same problem differently. Learn the trade-offs and which fits your application.
SQL Injection: How It Works and How to Prevent It
SQL injection happens when user input becomes SQL code. Learn how it works and why parameterised queries are the definitive fix.
SSH Keys: Setup, Config and Troubleshooting
SSH keys authenticate you without a password. Learn how to generate them, configure hosts, and debug a connection that fails.
XSS Prevention: Escaping, Sanitising and CSP
Cross-site scripting runs attacker code in your users' browsers. Learn the three types and the defences that actually stop them.
Lock Down Your Workstation: Portmaster Plus Brave Privacy Setup
Linux phones home more than you think. Per-app firewall rules with Portmaster, hardened DNS, and Brave settings that cut trackers without breaking sites.
Incident Response for Solo Developers
You are the SOC, the on-call engineer, and the communications team. A practical incident response playbook for developers who work alone.
Digital Wallets: Security Models Compared
Not all digital wallets store money the same way. A comparison of custodial, bank-linked, tokenized card, and self-custody models — and what each means for fraud, recovery, and privacy.