xoryx
A simple XOR encryption/decryption CLI tool that encrypts files to ASCII hex format.
Installation
pip install xoryx
For development:
uv pip install -e .
Usage
Command Line Mode
Encrypt a file:
xoryx encrypt plaintext.txt encrypted.hex
# Or use short aliases:
xoryx enc plaintext.txt encrypted.hex
xoryx e plaintext.txt encrypted.hex
Decrypt a file:
xoryx decrypt encrypted.hex decrypted.txt
# Or use short aliases:
xoryx dec encrypted.hex decrypted.txt
xoryx d encrypted.hex decrypted.txt
Provide key on command line (not recommended for sensitive data):
xoryx encrypt plaintext.txt encrypted.hex --key "mysecretkey"
xoryx decrypt encrypted.hex decrypted.txt -k "mysecretkey"
If you don't provide a key with --key or -k, you'll be prompted to enter it securely (hidden input).
Interactive Mode
Launch the interactive menu by running xoryx without arguments:
xoryx
# Or explicitly:
xoryx interactive
xoryx i
xoryx menu
This will present a user-friendly menu where you can choose to encrypt or decrypt files interactively.
Options
-k,--key: Specify the encryption/decryption key (will prompt if not provided)--encoding: Text encoding (default: utf-8)-h,--help: Show help message
Examples
# Encrypt with prompted key
xoryx encrypt secrets.txt secrets.hex
# Decrypt with key on command line
xoryx decrypt secrets.hex restored.txt -k "mypassword"
# Use custom encoding
xoryx encrypt data.txt data.hex --encoding utf-16
# Interactive mode
xoryx
Features
- 🔐 Simple XOR encryption/decryption
- 📝 Outputs to ASCII hex format
- 🎨 Colored terminal output
- 🔒 Secure key input (hidden by default)
- 🎯 Both CLI and interactive modes
- ⚡ Fast and lightweight
How it works
xoryx uses XOR cipher to encrypt plaintext files. The encrypted output is stored as ASCII hex for easy storage and transmission. While XOR encryption is not suitable for highly sensitive data, it's perfect for quick obfuscation and educational purposes.
License
MIT
Metadata
Release files for xoryx 0.0.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| xoryx-0.0.2.tar.gz | 46.0 kB | Without provenance | Details for xoryx-0.0.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| xoryx-0.0.2-py3-none-any.whl | Python 3 | none | any | Details for xoryx-0.0.2-py3-none-any.whl |
Total release size: 51.4 kB
Release files / xoryx-0.0.2.tar.gz
| Download URL | xoryx-0.0.2.tar.gz |
|---|---|
| Size | 46.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
50e12574f8be4194c19341473540f275a9ded55a95f5fa5dcc277bfcc76c0d95
|
|
BLAKE2b-256 checksum How to use checksums |
8547785c04bc2ddd04ec406a79f0ec196b7d86378b3d1f1b40d071e9ccfe1f69
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.11
|
Release files / xoryx-0.0.2-py3-none-any.whl
| Download URL | xoryx-0.0.2-py3-none-any.whl |
|---|---|
| Size | 5.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
c68b2a025cde68173e944f824eb2f20d6b7bc6aa431a0020e4920d01d39f8a9a
|
|
BLAKE2b-256 checksum How to use checksums |
65722dd4d5fedf21ec1e9a557969e8b2bf6ef601174340a20aabad820dea0301
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.11
|
Security for xoryx 0.0.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.