Repository navigation
CLI Reference
The bin/ directory contains operational and security tooling for local development and release management.
php bin/encrypt-directory.php <source-dir> <output-dir> <password>This creates a V14 package directory using the package builder.
php bin/decrypt-package.php <package-dir-or-spkg14> <output-dir> <password> [recovery-key]The command accepts either a package directory or a portable .spkg14 package.
php bin/self-check.phpChecks the required runtime features:
- PHP >= 8.2
- Sodium
random_bytes()- Argon2id13 support
- Zip
Fast/default security suite:
php bin/security-test.phpFull regression suite:
php bin/security-test.php --fullThe full mode discovers tests/*Test.php and runs the complete PHP regression set.
php bin/source-audit.phpChecks the active source tree for selected patterns such as legacy branding, dangerous process-execution calls, and embedded private-key markers.
This is a targeted source policy check, not a substitute for code review.
php bin/source-inventory.php [project-root]Produces an inventory of source material useful during release review.
php bin/cleanup.phpRemoves expired/temporary runtime material according to the application storage policies implemented by the cleanup helper.
php bin/compact-packages.phpSupports package storage cleanup/compaction. The script accepts:
--dry-runfor non-destructive inspection.
php bin/benchmark.phpProvides local performance measurements for the encryption/decryption engine. Benchmark output should not be interpreted as a security guarantee.
Generate a release key pair through:
php bin/generate-release-key.phpThe private key must be stored outside the repository and outside the public web root.
Sign the active source tree with:
php bin/sign-release.php <private-key-hex-file> <project-root>The script signs a canonical manifest covering:
app/
bin/
config/
public/
bootstrap.php
composer.json
composer.lock (when present)
VERSION
Runtime-generated release/storage material is excluded from the signed source scope.
Verify a release with:
php bin/verify-release.php <release-root>For an external trust root:
export SECURE_PACKAGE_TRUSTED_RELEASE_KEY_HEX='<64-hex-public-key>'
php bin/verify-release.php <release-root>The verifier checks:
- the release manifest exists;
- the signature is valid;
- the package/format/version identity is correct;
- the manifest is canonical;
- every listed source file exists;
- every listed SHA-256 digest matches;
- the embedded public key matches the pinned external trust root when one is supplied.
Generate a high-entropy application secret:
php bin/generate-secret.phpThe default length is suitable for local secret generation, and the script allows a bounded length argument.
Do not place production passwords, patterns, recovery keys, or release private keys directly in command history when avoidable. Prefer protected secret files, environment injection, or a controlled secret manager.
Secure Package V14 · SECURE-PKG-V14 · Version 14.1.0 · MIT License · Author: ElmanCod110
This Wiki describes the implementation currently documented by the repository. Security-sensitive behavior should be verified against the active source tree before production deployment.
Start
V14 Engine
Security
Integration
Operations
- Storage and Data Lifecycle
- Deployment
- Testing and Validation
- Release and Supply Chain
- Migration V13 to V14
Contributing