Tag: php
Weak Password Hash
PHP 5.5+
1
Using MD5, SHA-1, or SHA-256 to hash passwords — fast algorithms designed for data integrity, not authentication, crackable in seconds with a GPU.
3mo ago
Security beginner
Weak Random Function
PHP 7.0+
Using rand(), mt_rand(), or array_rand() for security-sensitive values — these are predictable pseudo-random generators not suitable for tokens, keys, or passwords.
3mo ago
Security intermediate
Web Push Notifications
PHP 7.0+
1
Sending notifications to users even when the browser is closed — using the Push API, Service Worker, and Web Push Protocol with VAPID authentication.
3mo ago
Mobile advanced
Worker Pool Patterns
PHP 5.0+
Fixed pool of pre-spawned workers for parallel tasks — avoiding per-task process spawn overhead.
3mo ago
Performance advanced
Weak References (WeakReference, WeakMap)
PHP 7.4+
2
References to objects that don't prevent garbage collection — useful for caches and observer registries that shouldn't extend object lifetimes.
3mo ago
PHP advanced
WeakMap (PHP 8.0)
PHP 8.0+
A map keyed by objects that doesn't prevent garbage collection — ideal for caching per-object computed data without creating memory leaks.
3mo ago
PHP advanced
A full-duplex communication protocol over a single TCP connection — the client and server can both send messages at any time without polling.
3mo ago
Networking intermediate