A self-hosted collection of tools for generating, converting and inspecting cryptographic keys and related formats.
Generate, convert and inspect cryptographic keys without sending sensitive data to third-party services.
Many online tools are extremely useful when you need to generate a key pair, convert between formats or inspect certificates. However, using a third-party website means trusting that sensitive material is handled correctly.
Crypto Key Tools is designed for users and organizations that prefer to keep cryptographic material entirely within their own infrastructure.
- Generate cryptographic key pairs.
- Convert keys between multiple formats.
- Inspect keys, certificates and related cryptographic data.
- Browser-based interface.
- Agnostic Routing: Consistent behavior across LAMP (Apache), IIS, and PHP's built-in server.
- Easy deployment with Composer.
Install the latest version directly with Composer:
composer create-project alphp/crypto-key-toolsThe project will be installed in a new crypto-key-tools directory, ready to be served by your web server.
git clone https://github.com/alphp/crypto-key-tools.git
cd crypto-key-tools
composer installFor quick testing or development, you can use PHP's built-in web server. Since the project follows a Front Controller pattern where the entry point is located in the wwwroot directory, you must point the document root to that folder:
# From the project root directory
php -S localhost:8000 -t wwwroot- Agnostic Routing: The system automatically calculates the
REQUEST_BASE, ensuring that all internal links and the MiniRouter work correctly without manual configuration. - Security by Design: By serving only the
wwwrootfolder, sensitive files likebootstrap.php,constants.php, and thetemplatesdirectory remain outside the web-accessible path.
- Deploy the project to your web server (or run it locally).
- Open the application in your browser.
- Select the desired cryptographic operation.
- Generate, inspect or convert your keys.
This project is intended to be run on systems that you control.
- The system protects against direct access to sensitive files (
.env,.git,.config) by routing them to the Front Controller for a controlled 404 state. - Use HTTPS whenever possible and restrict access to trusted users.
This project is licensed under the MIT License. See the LICENSE file for details.