Skip to main content

Post-quantum file encryption using ML-KEM-768 + X25519

Project description

SecureVault - Post-Quantum File Encryption

Protect your files from future quantum computers.

Python Version License Platform Cryptography NIST Status

The Problem

Quantum computers will break RSA/ECC encryption within 10-20 years. Attackers are stealing encrypted data NOW to decrypt LATER.

This is what we called "harvest now, decrypt later" attacks.

The Solution

SecureVault uses ML-KEM-768 (NIST standardized post-quantum crypto) in hybrid mode with X25519 for maximum security. Even if quantum computers break one layer, your data stays protected.

Features

  • Hybrid encryption: X25519 + ML-KEM-768 (defense in depth²)
  • Password-protected keys: PBKDF2 key derivation (100k iterations)
  • Cross-platform: Works on Linux, macOS, and Windows
  • Future-proof: Quantum-resistant for 30+ years
  • Easy CLI: Simple commands, no crypto knowledge needed
  • Educational: Shows security info about your files

Installation

Prerequisites

  • Python 3.9 or higher
  • pip

Setup

# Clone the repo
git clone https://github.com/yourusername/securevault.git
cd securevault

# Install dependencies
pip install -r requirements.txt

Quick Start

# 1. Generate your keypair
python3 secure_vault.py keygen --password mypassword --output my_keys.key
# Creates: my_keys.key (private) and my_keys_public.key (public)

# 2. Encrypt a file
echo "Secret data" > secret.txt
python3 secure_vault.py encrypt secret.txt my_keys_public.key

# 3. Check security info
python3 secure_vault.py info secret.txt.vault

# 4. Decrypt it
python3 secure_vault.py decrypt secret.txt.vault my_keys.key --password mypassword

Technical Details

  • Hybrid: X25519 + ML-KEM-768
  • File encryption: AES-256-GCM (Fernet)
  • Key derivation: PBKDF2

Performance

[Benchmark results]

Why This Matters

[Quantum threat timeline] [Use cases]

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

securevault_pqc-0.1.0.tar.gz (6.6 kB view details)

Uploaded Source

Built Distribution

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

securevault_pqc-0.1.0-py3-none-any.whl (6.5 kB view details)

Uploaded Python 3

File details

Details for the file securevault_pqc-0.1.0.tar.gz.

File metadata

  • Download URL: securevault_pqc-0.1.0.tar.gz
  • Upload date:
  • Size: 6.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.12

File hashes

Hashes for securevault_pqc-0.1.0.tar.gz
Algorithm Hash digest
SHA256 6a6f642eb6dd5ba7e922c5988e3ed9e8d597402c346f1797a30a1b42dc140125
MD5 a78ef2c5082d59d0543167497444d92e
BLAKE2b-256 7d58afc008fca75049129d0e12af4f1b1d988c9b6b1fa3b7e49ddaee4ac67b27

See more details on using hashes here.

File details

Details for the file securevault_pqc-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for securevault_pqc-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 700fea996fccd50f31f8fb5f121ba2889196c7819261d8c42fa25a52218d9ea9
MD5 661414ef35154693c1f9fb2e0b61465f
BLAKE2b-256 da7b9daf154f28aa033421dad9090300ea1026ee56642d3d99fb6ba2f086b8cc

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