mirror of
https://github.com/ZSCGR/CloudFlare-ImgBed.git
synced 2026-08-20 15:43:42 +08:00
- Replace single-round SHA-256 with PBKDF2 (100k iterations) via Web Crypto API - Auto-rehash old SHA-256/plaintext passwords to PBKDF2 on successful login - Add timing-safe comparison to prevent timing attacks - Replace Math.random() with crypto.getRandomValues() for API token and token ID generation - Maintain full backward compatibility with existing SHA-256 hashes and plaintext passwords