Understanding Color Formats: HEX, RGB & HSL
Why screens mix red, green, and blue light, what HEX shorthand really encodes, and when HSL makes your life easier.
Is P@ssw0rd! a strong password? It has uppercase, lowercase, numbers, and a symbol — so it must be secure, right? Not even close. An attacker cracking passwords doesn't care about your exclamation mark. What matters is entropy — the mathematical measure of how unpredictable your password actually is.
Password entropy is measured in bits. Each bit doubles the number of guesses an attacker needs to try. The formula is straightforward:
Entropy = log2(pool_size ^ length)
= length × log2(pool_size)
Example: 12 lowercase letters
pool_size = 26
entropy = 12 × log2(26) = 12 × 4.7 = 56.4 bitsThe pool size is the number of possible characters in each position. Lowercase letters give you 26, adding uppercase doubles it to 52, digits add 10, and symbols add another 32 or so. But here's the key insight: length is an exponent while pool size is just a base. Doubling the length has a far greater impact than doubling the character set.
| Configuration | Pool | Length | Entropy | Strength |
|---|---|---|---|---|
| Lowercase only | 26 | 8 | 37.6 | Weak |
| Mixed case | 52 | 8 | 45.6 | Fair |
| All characters | 95 | 8 | 52.6 | Moderate |
| Lowercase only | 26 | 12 | 56.4 | Good |
| All characters | 95 | 12 | 78.8 | Strong |
| All characters | 95 | 16 | 105.1 | Excellent |
| Passphrase (4 words) | 7776 | 4 | 51.7 | Moderate |
| Passphrase (6 words) | 7776 | 6 | 77.5 | Strong |
Understanding attack methods explains why entropy matters more than complexity rules:
P@ssw0rd! falls in seconds because it's a predictable substitution of a dictionary word.The US National Institute of Standards and Technology updated its password guidance, and the changes surprised many:
MyPass1, MyPass2)A password manager generates and stores a unique, high-entropy password for every account. You only need to memorise one strong master password. This approach solves two problems at once: each password has maximum entropy, and no password is reused across sites.
For the master password itself, a passphrase — four to six randomly chosen words — is the best balance of security and memorability. correct horse battery staple is a classic example, though you should always generate your passphrase randomly, never pick words yourself.
The strongest password is one you never need to remember. Let a password manager handle entropy — your job is just to protect the master key.
Why screens mix red, green, and blue light, what HEX shorthand really encodes, and when HSL makes your life easier.
Lossy vs lossless compression, when transparency matters, and why WebP is replacing both PNG and JPG on the web.
What happens when you drag the quality slider, how DCT transforms photos, and why screenshots compress differently.