Skip to content
Velloreth

#security

Posts tagged with “security”.

33 posts

01

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.

02

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.

03

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.

04

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.

05

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.

06

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.

07

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.

08

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.

09

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.

10

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.

11

Environment Variables: Best Practices and Pitfalls

Environment variables configure an application without changing code. Learn the patterns, the security rules, and the traps.

12

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.

13

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.

14

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.

15

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.

16

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.

17

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.

18

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.

19

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.

20

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.

21

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.

22

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.

23

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.

24

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.

25

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.

26

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.

27

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.

28

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.

29

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.

30

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.

31

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.

32

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.

33

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.