Prefixed API Key Generator
JSON →The `prefixed-api-key` package, currently at version 1.1.1, provides a robust solution for generating 'Seam-style' API keys in JavaScript and TypeScript environments. These keys incorporate a user-defined prefix, a short token for identification and blocklisting, and a long token that is never stored directly, only its hash. This design enhances security by reducing the server's attack surface and enables features like GitHub secret scanning due to the predictable prefix format. The library leverages standard cryptographic practices, including Base58 encoding (RFC-compliant) for the token components, offering advantages such as shorter keys compared to hex/base32, double-click selection, and high entropy comparable to UUIDv4. It ships with TypeScript types and is suitable for both Node.js and browser environments, focusing on a secure and developer-friendly approach to API key management.
Traffic · last 30 days ↓25% vs prev 7d
top countries 🇺🇸 United States · 🇳🇴 Norway · 🇨🇦 Canada · 🇫🇷 France · 🇩🇪 Germany