fn hash_api_key(key: &str) -> u64
Simple hash function for API keys (in production, use a proper hash).