KDPH (Knexyce Data Package Handler) is a Python operating system agnostic package manager designed to securely create, distribute, retrieve, and manage encrypted data packages known as Knexyce Packages (KPs).
KDPH combines modern cryptography, reproducible packaging, and GitHub-backed distribution into a single self-contained tool. It is suitable for secure data delivery, modular project distribution, controlled software packaging, and encrypted archival workflows.
A Knexyce Package (.kp) is an encrypted archive that can contain arbitrary files, metadata, build instructions, and dependency references. KDPH manages the full lifecycle of these packages.
- Strong encryption using AES-GCM with Argon2id key derivation.
- Deterministic package structure.
- GitHub-based package distribution.
- Built-in dependency resolution.
- Package metadata querying.
- No platform-specific dependencies.
KDPH requires Python 3.9 or newer.
curl https://raw.githubusercontent.com/Knexyce/kdph/main/kdph.py -o kdph.pycurl https://raw.githubusercontent.com/Knexyce/kdph/main/kdph.py -OutFile kdph.pyRun commands using:
python kdph.py <command> [options]KDPH automatically installs all required Python dependencies on first execution.
KDPH provides the following primary commands:
mkpkg: Encrypt and publish a package to GitHub.getpkg: Download and decrypt a package from GitHub.rmpkg: Delete a package repository from GitHub.createkp: Create a local encrypted package.extractkp: Decrypt and extract a local package.kpinfo: Query metadata from an extracted package.
Each command is documented below.
Creates an encrypted Knexyce Package from a folder and uploads it to GitHub as a repository.
This command:
- Encrypts the folder into a
.kpfile. - Base64-encodes the package.
- Splits the package into clustered chunks.
- Uploads the chunks and documentation to GitHub.
- Publishes the KDPH script alongside the package.
python kdph.py mkpkg -f <folder> [-k <key>] [-t <github_token>]-f, --folder: Folder to package.-k, --key: Encryption key (prompted if omitted).-t, --token: GitHub Personal Access Token.
The token must have repo and delete_repo scopes.
Downloads, reconstructs, decrypts, and extracts a Knexyce Package from GitHub.
This command:
- Downloads clustered package files.
- Reassembles and decodes the package.
- Verifies KDPH integrity.
- Decrypts the package.
- Resolves dependencies.
- Executes the package build script.
python kdph.py getpkg -a <author> -p <package> [-l <location>] [-k <key>]-a, --author: GitHub username of the package author.-p, --package: Package repository name.-l, --location: Extraction directory.-k, --key: Decryption key (prompted if omitted).
Deletes a Knexyce Package repository from GitHub.
python kdph.py rmpkg -p <package> [-t <github_token>]-p, --package: Package repository name.-t, --token: GitHub Personal Access Token.
The token must have the delete_repo scope.
Creates a local encrypted .kp file without uploading it to GitHub.
This command:
- Initializes the
kpcorestructure if missing. - Generates or updates metadata.
- Encrypts the folder.
- Appends a KDPH integrity signature.
python kdph.py createkp -f <folder> [-l <location>] [-k <key>]-f, --folder: Folder to package.-l, --location: Output directory.-k, --key: Encryption key (prompted if omitted).
Decrypts and extracts a local .kp file.
This command:
- Verifies client-side and package integrity.
- Decrypts the package.
- Extracts contents.
- Resolves dependencies.
- Executes the package build script.
python kdph.py extractkp -p <package.kp> [-l <location>] [-k <key>]-p, --package: Path to the.kpfile.-l, --location: Extraction directory.-k, --key: Decryption key (prompted if omitted).
Queries metadata from an extracted Knexyce Package.
python kdph.py kpinfo -f <folder> -t <topic>-f, --folder: Extracted package folder.-t, --topic: Metadata field name.
Example topics include name, version, author, description, and created_at.
Each Knexyce Package contains a kpcore directory that defines package behavior.
-
build.pyExecuted after extraction to configure or build the package. -
pkgdeps.jsonDeclares package dependencies. Dependencies can be GitHub-hosted packages or local.kpfiles. -
metadata.jsonStores package metadata such as name, version, author, and timestamps. -
ignore.txtDefines paths excluded from packaging. -
kdph.pyEmbedded copy of the KDPH script used to create the package. -
INFO.mdInformational documentation about the package core.
KDPH uses modern, secure cryptographic primitives:
- AES-256-GCM for authenticated encryption.
- Argon2id for password-based key derivation.
- Per-chunk random salts and nonces.
- Automatic key rotation for large files.
- Optional multi-layer encryption (if manual).
- Eradicated birthday bound nonce reuse risk by rekey every 12 GB.
All encryption and decryption is performed locally. No plaintext package contents are uploaded to GitHub.
KDPH uses GitHub as a package transport layer, not as a trust authority.
- Packages are uploaded as repositories.
- Encrypted data is stored as clustered binary chunks.
- Integrity is enforced via embedded KDPH hash verification.
- GitHub tokens are never stored persistently.
- A copy of KDPH is uploaded with the package.
KDPH is fully OS agnostic.
- Any OS with Python.
All file operations, cryptography, and networking are handled through cross-platform Python libraries.
- Loss of the encryption key makes recovery impossible.
- Package integrity is bound to the KDPH script used to create it.
- Always verify the source of
kdph.pybefore use. - Use strong, high-entropy passphrases.
- Minimum is an eight-character passphrase with a symbol, capital letter, and number.
- All rights regarding this software are reserved by Knexyce only.
- Knexyce refers to both an individual and a group entity.
- Unauthorized redistribution, modification, or misuse is prohibited. We don't want security risks.
Ayan Alam (Knexyce)