ApiKey
Table of Contents
Classes
- base64
- Class base64: Provides static methods for encoding and decoding strings using a URL-safe
variant of Base64. This encoding scheme replaces the standard Base64
characters '+' and '/' with '-' and '_', respectively, and removes
any trailing '=' padding characters. This makes the encoded strings
suitable for use in URLs and filenames without requiring further encoding.
- XoRx
- Class XoRx: Provides simple XOR-based encryption and decryption functionalities.
- Key
- Class Key: Represents a cryptographic key with associated metadata and functionality
for generating, validating, and parsing tokens.
- ApiKeyMemory
- Class ApiKeyMemory: Extends the Key class to provide an in-memory storage mechanism for API keys.
- ApiKeyAPCu
- Class ApiKeyAPCu: Extends ApiKeyMemory to provide API key storage and retrieval using the APCu cache.
- ApiKeyMemcached
- Class ApiKeyMemcached: Extends the ApiKeyMemory class to store and retrieve API keys using Memcached.
- ApiKeyRedis
- Class ApiKeyRedis: Extends the ApiKeyMemory class to store and retrieve API keys using Redis.
- ApiKeyFS
- Class ApiKeyFS: Manages API keys, extending the in-memory storage with file system persistence.
- ApiKeyDatabase
- class ApiKeyDatabase: Manages API keys, extending the in-memory storage with database persistence using `PDO`.
- CLI
- Class CLI: Provides a command-line interface for generating and checking API keys.