Skip to main content

Revolutionary Post-Quantum Cryptographic Library using Color Lattice Learning with Errors (CLWE)

Project description

CryptoPIX v5.0.0 - Revolutionary Post-Quantum Cryptographic Library

Version License Python Website

The world's first Color Lattice Learning with Errors (CLWE) cryptographic system, providing revolutionary post-quantum security through innovative color-based transformations.

Revolutionary Features

  • ChromaCrypt Key Encapsulation Mechanism (KEM) - Post-quantum secure key exchange
  • ChromaCrypt Digital Signatures - Color-based commitment schemes with geometric proofs
  • Color Cipher - Symmetric encryption with visual steganographic properties
  • Color Hash - Visual fingerprinting and data verification
  • Multi-Domain Security - Mathematical + Visual + Geometric protection layers
  • Performance Optimized - JIT compilation, vectorization, and parallel processing

Installation

pip install cryptopix

For Publishers: See PYPI_PUBLISHING_GUIDE.md for complete PyPI publishing instructions.

Optional Performance Dependencies

# For JIT compilation and performance optimizations
pip install cryptopix[fast]

# For GPU acceleration support
pip install cryptopix[gpu]

# For development and testing
pip install cryptopix[dev]

# Install everything
pip install cryptopix[all]

Quick Start

import cryptopix

# Key Encapsulation Mechanism
kem = cryptopix.create_kem(128)
public_key, private_key = kem.keygen()
shared_secret, capsule = kem.encapsulate(public_key)
recovered_secret = kem.decapsulate(private_key, capsule)

# Digital Signatures
sign_scheme = cryptopix.create_signature_scheme(128)
key_pair = sign_scheme.keygen()
signature = sign_scheme.sign(b"message", key_pair)
is_valid = sign_scheme.verify(b"message", signature, key_pair)

# Symmetric Encryption
cipher = cryptopix.create_cipher(128, fast_mode=True)
ciphertext, color_key = cipher.encrypt(b"secret data", "password")
plaintext = cipher.decrypt(ciphertext, color_key, "password")

# Color Hashing
hasher = cryptopix.create_hash(128)
colors = hasher.hash_to_colors(b"data to hash")
is_valid = hasher.verify_hash(b"data to hash", colors)

Command Line Interface

# Generate keys
cryptopix keygen --type kem --security 128 --output keys/

# Sign a file
cryptopix sign --key keys/signature.key --file document.txt

# Encrypt data
cryptopix encrypt --mode fast --password secret --input data.txt --output data.enc

# Hash to colors
cryptopix hash --input image.jpg --output colors.json

Security Levels

CryptoPIX supports multiple security levels:

  • 128-bit - Standard post-quantum security
  • 192-bit - Enhanced security for sensitive applications
  • 256-bit - Maximum security for critical systems

Performance Optimizations

Enable performance optimizations:

import cryptopix

# Enable all available optimizations
optimizations = cryptopix.enable_optimizations()
print(f"Enabled: {optimizations['enabled_optimizations']}")

# Benchmark performance
profiler = cryptopix.PerformanceProfiler()
kem_stats = profiler.profile_kem_operations(cryptopix.create_kem(128))

Revolutionary Mathematics

CryptoPIX introduces the world's first Color Lattice Learning with Errors (CLWE) problem:

Traditional LWE: b = A·s + e (mod q)
ChromaCrypt CLWE: C = Φ(A·s + e) ⊕ Ψ(position, color_history)

Where:

  • Φ = Color transformation function (CryptoPIX core innovation)
  • Ψ = Geometric position function in color space
  • C = Color lattice point with visual steganographic properties

Academic Impact

This library represents a paradigm shift in cryptography:

  1. Novel Hard Problems - First cryptographic system based on color lattice mathematics
  2. Visual Cryptography - Keys and signatures can be represented as images
  3. Multi-Layered Security - Combines lattice, color, and geometric security
  4. Post-Quantum Resistance - Immune to both classical and quantum attacks
  5. GPU Acceleration - Natural parallel processing capabilities

Development

# Clone repository
git clone https://github.com/cryptopix-official/cryptopix.git
cd cryptopix

# Install development dependencies
pip install -e .[dev]

# Run tests
python -m pytest cryptopix/tests/

# Run benchmarks
python examples/benchmark.py

Library Structure

cryptopix/
├── core/                    # Core cryptographic algorithms
│   ├── chromacrypt_kem.py  # Key Encapsulation Mechanism
│   ├── chromacrypt_sign.py # Digital Signatures
│   ├── color_cipher.py     # Symmetric Encryption
│   ├── color_hash.py       # Hash Functions
│   ├── lattice.py          # Color Lattice Engine
│   ├── transforms.py       # Color Transformation Engine
│   └── parameters.py       # Security Parameters
├── utils/                   # Utility functions
│   ├── performance.py      # Performance optimizations
│   ├── validation.py       # Input validation
│   └── serialization.py    # Key serialization
├── tests/                   # Comprehensive test suite
├── examples/                # Usage examples
└── cli.py                   # Command-line interface

Documentation

Contributing

We welcome contributions to advance post-quantum cryptography:

  1. Fork the repository
  2. Create a feature branch
  3. Make your changes
  4. Add tests
  5. Submit a pull request

License

MIT License - see LICENSE for details.

Citation

If you use CryptoPIX in your research, please cite:

@software{cryptopix2025,
  title={CryptoPIX: Revolutionary Post-Quantum Cryptography using Color Lattice Learning with Errors},
  author={CryptoPIX Team},
  year={2025},
  version={5.0.0},
  url={https://github.com/cryptopix-official/cryptopix}
}

Contact


CryptoPIX v5.0.0 - The future of cryptography: secure, innovative, and beautifully visual.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

cryptopix-5.0.0.tar.gz (40.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

cryptopix-5.0.0-py3-none-any.whl (48.5 kB view details)

Uploaded Python 3

File details

Details for the file cryptopix-5.0.0.tar.gz.

File metadata

  • Download URL: cryptopix-5.0.0.tar.gz
  • Upload date:
  • Size: 40.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.8

File hashes

Hashes for cryptopix-5.0.0.tar.gz
Algorithm Hash digest
SHA256 74ea35b81361b6b953d6d4b66feed682c686e9136e98884e8455c870de9aad80
MD5 5b93fe0a26ec309048bbafa4a86c75ca
BLAKE2b-256 1d97c81a48ef943cb3104beb2047d9bd98341694963e374ed2ddf0d562a41a3e

See more details on using hashes here.

File details

Details for the file cryptopix-5.0.0-py3-none-any.whl.

File metadata

  • Download URL: cryptopix-5.0.0-py3-none-any.whl
  • Upload date:
  • Size: 48.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.8

File hashes

Hashes for cryptopix-5.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 71019aa99e64242399ca1ccb938586e25c155f3af0aac17992f60257533ecac6
MD5 7a96073cd82874f08fd65b7a43dbd8c2
BLAKE2b-256 32e031ef204e10642837ef7da9e7c45f6e926d29593c1d82485cb1e28ac0dfeb

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page