Skip to main content

An unholy encryption and hashing algorithm that defies brute force

Project description

CthulhuCrypt

Python 3.6+ License: MIT

A Python package featuring multi-layered, non-linear encryption combining:

  • Bitwise XOR with golden ratio constants
  • Dynamic substitution tables
  • Chaotic math (primes, Collatz conjecture, trig functions)
  • Recursive encryption pipelines

Features

Brute-force resistant: 10+ transformation layers

Position-dependent ops: Identical chars → different outputs

Zero dependencies: Pure Python (math only)

CLI support: Encrypt/hash text or files from terminal

Quick Start

pip install cthulhucrypt

from cthulhucrypt import ultra_encrypt

encrypted = ultra_encrypt("hello", iterations=7)
print(encrypted)  # Output: ݰFtÔÖr&¥[8ª...

CLI Usage

See all commands

cthulhucrypt --help

Encrypt or hash a string

cthulhucrypt encrypt "hello world"
cthulhucrypt medhash "hello world"
cthulhucrypt highhash "hello world" --iterations 10
cthulhucrypt hash2 "hello world" --iterations 10
cthulhucrypt hash2-high "hello world" --iterations 10

Encrypt or hash a file

cthulhucrypt encrypt --file input.txt --output encrypted.txt
cthulhucrypt medhash --file input.txt --output hash.txt
cthulhucrypt highhash --file input.txt --iterations 10 --output hash.txt
cthulhucrypt hash2 --file input.txt --iterations 10 --output hash.txt
cthulhucrypt hash2-high --file input.txt --iterations 10 --output hash.txt

Decrypt a file or string

# If you have the output in the form ENCRYPTED;TABLE_IDX
cthulhucrypt decrypt "a1b2c3d4;5" --output decrypted.txt
# Or, if you have the encrypted text and table index separately
cthulhucrypt decrypt "a1b2c3d4" 5 --output decrypted.txt
# Or, from a file
cthulhucrypt decrypt --file encrypted.txt 5 --output decrypted.txt

Algorithm Breakdown

Character Pairing:

('h','e') → 104*101 = 10504 → [1,0,5,0,4]

Dynamic Substitution:

9 rotating substitution tables selected via sqrt(ascii_sum)*π + log(len)

Bitwise Chaos:

((char ^ position ^ 1618) << (i%3)) & 0xFF

Math Destruction:

Collatz conjecture + prime-modulated trig functions

Warning

Not for passwords: No salting/key stretching

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

cthulhucrypt-0.2.7.tar.gz (11.0 kB view details)

Uploaded Source

Built Distribution

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

cthulhucrypt-0.2.7-py3-none-any.whl (10.7 kB view details)

Uploaded Python 3

File details

Details for the file cthulhucrypt-0.2.7.tar.gz.

File metadata

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

File hashes

Hashes for cthulhucrypt-0.2.7.tar.gz
Algorithm Hash digest
SHA256 092ec0e3852e8cc269e1c2da0cf38b6cac60abbc7178f1694140ca9f3a8a5e7f
MD5 673e5e3a1f3f34c44afe703ff806bc24
BLAKE2b-256 014e8f39390f7bba2a1048133802ead92b303c41e967e3cc952e7e79a9b54e37

See more details on using hashes here.

File details

Details for the file cthulhucrypt-0.2.7-py3-none-any.whl.

File metadata

  • Download URL: cthulhucrypt-0.2.7-py3-none-any.whl
  • Upload date:
  • Size: 10.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.2

File hashes

Hashes for cthulhucrypt-0.2.7-py3-none-any.whl
Algorithm Hash digest
SHA256 57fad46dc1995b56b94112e70049a5f6495a641d99a343bae4e50743dc8e1549
MD5 3546a8ce50fa2d559e56347fbef156fa
BLAKE2b-256 f10c4051c02352d3325d860c876d15498b440729077c255a224f6b43428ee32e

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