Skip to main content

A Python package for encryption and decryption using the XOR-Transposition-Substitution (XTS) cipher algorithm.

Project description

XTS Cipher

A Python package for encryption and decryption using the XOR-Transposition-Substitution (XTS) cipher algorithm.

Algorithm Overview:

This algorithm combines Substitution, Transposition, and XOR operations to securely encrypt and decrypt a message.

  1. Substitution: Each character of the message is shifted by a key value (like a Caesar cipher).
  2. Transposition: The message is divided into blocks, and the order of these blocks is reversed.
  3. XOR: A series of keys are applied using the XOR operation to further obfuscate the message.

During decryption, the process is reversed:

  1. XOR: The XOR operation is applied using the same keys to reverse the encryption.
  2. Reverse Transposition: The blocks are rearranged back to their original order.
  3. Reverse Substitution: The characters are shifted back using the key to retrieve the original message.

Features

  • Generates random keys for encryption.
  • Encrypts messages using substitution, transposition, and XOR operations.
  • Decrypts messages back to the original form.

Installation

You can install the package via pip:

pip install xts_cipher

Project details


Download files

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

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

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

xts_cipher-0.2-py3-none-any.whl (3.8 kB view details)

Uploaded Python 3

File details

Details for the file xts_cipher-0.2-py3-none-any.whl.

File metadata

  • Download URL: xts_cipher-0.2-py3-none-any.whl
  • Upload date:
  • Size: 3.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.1

File hashes

Hashes for xts_cipher-0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 9487f8de49a23b3f36716f0ea952d38e9d85514c0e44ed6dcc4494789f534758
MD5 8576c45fb5d4b06a8a5a12af20070802
BLAKE2b-256 0fc36b52248aba304871b013f8aa9763ee45a32e8bdcfc65c7f1373b792bb993

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