Skip to main content

Borg Encryption System - A multi-layered, adaptive encryption system

Project description

Borg Encryption System

A multi-layered, adaptive encryption system inspired by the Borg from Star Trek. This system uses multiple encryption algorithms in sequence, including post-quantum resistant algorithms, to create an extremely secure encryption mechanism.

Features

  • Multi-layered encryption (cascading ciphers)
  • Post-quantum resistant algorithms
  • Adaptive security measures
  • Key rotation
  • Side-channel attack protections
  • Secure memory management
  • REST API for easy integration

Installation

pip install borg-encryption

Quick Start

Command Line Usage

# Encrypt a text message
borg-encrypt encrypt --text "Resistance is futile" --key "your-password" --local

# Decrypt a text message
borg-encrypt decrypt --file encrypted.txt --key "your-password" --local

# Encrypt a file
borg-encrypt encrypt-file --file secret.pdf --key "your-password" --output secret.encrypted --local

# Decrypt a file
borg-encrypt decrypt-file --file secret.encrypted --key "your-password" --output secret.pdf --local

# Start the API server
borg-encrypt server --port 8000

Python API Usage

from borg_encryption import BorgEncryption

# Create an encryption instance
borg = BorgEncryption("your-password")

# Encrypt data
message = "Resistance is futile. Your biological and technological distinctiveness will be added to our own."
encrypted = borg.encrypt(message)

# Decrypt data
decrypted = borg.decrypt_to_string(encrypted)
print(decrypted)  # Should print the original message

REST API Usage

from borg_encryption.client import BorgAPIClient

# Create a client
client = BorgAPIClient("http://localhost:8000", "your-api-key")

# Encrypt a message
encrypted = client.encrypt_text("Resistance is futile", "your-password")

# Decrypt a message
decrypted = client.decrypt_text(encrypted, "your-password")

Security Features

  • Multi-layered encryption: Uses AES-GCM, ChaCha20-Poly1305, and XSalsa20-Poly1305 in sequence
  • Secure key derivation: Uses PBKDF2 and Scrypt with high iteration counts
  • Adaptive defense: Monitors for attacks and adapts security parameters
  • Secure memory management: Clears sensitive data from memory when no longer needed
  • Side-channel attack protections: Implements timing attack countermeasures

License

MIT License

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

borg_encryption-1.0.0.tar.gz (20.5 kB view details)

Uploaded Source

Built Distribution

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

borg_encryption-1.0.0-py3-none-any.whl (23.3 kB view details)

Uploaded Python 3

File details

Details for the file borg_encryption-1.0.0.tar.gz.

File metadata

  • Download URL: borg_encryption-1.0.0.tar.gz
  • Upload date:
  • Size: 20.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.2

File hashes

Hashes for borg_encryption-1.0.0.tar.gz
Algorithm Hash digest
SHA256 d6a9dec760f858b9f28e8b790887a3dd551702bcf9c7a4dd41cfa1e1fe234ccd
MD5 fe5a977e45d242589b8fecee0bb09f05
BLAKE2b-256 20e91bea57bf5abd40bd67ee1a2eaad2e55a37de5f99ee4f67b5dfd8cd4fb000

See more details on using hashes here.

File details

Details for the file borg_encryption-1.0.0-py3-none-any.whl.

File metadata

File hashes

Hashes for borg_encryption-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 aa4d213d066bfc119fcd8bc713bf25cf69130d36ef6333e72791d6fd03aaabbc
MD5 f549e22e2f8d1ea75f5dea9b1078dec3
BLAKE2b-256 5fbadfd05a51df16414bf59aaed4b104092f3db2122548558673b8bf00517463

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