THE ORIONIS API
Build with clarity.
Explore the building blocks of an async-first Python framework. Every module, class, and method — connected, searchable, and ready to build with.
class documentation
class SecureKeyGenerator: (source)
Generate cryptographically secure application secret keys.
| Static Method | generate |
Generate a Laravel-compatible APP_KEY. |
| Constant | KEY |
Mapping of cipher modes to their respective key sizes in bytes. |
| Class Variable | __slots__ |
Declare that this class introduces no additional instance slots. |
Generate a Laravel-compatible APP_KEY.
| Parameters | |
cipher:str or orionis.foundation.config.app.Cipher | Cipher used to select key length; default to AES-256-GCM. Legacy CBC identifiers remain accepted by this key utility only. |
| Returns | |
str | A base64-encoded key string formatted like Laravel's APP_KEY. |
| Raises | |
ValueError | If the cipher does not name a supported algorithm. |