🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
DemoInstallSign in
Socket

cthulhucrypt

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cthulhucrypt

An unholy encryption and hashing algorithm that defies brute force

0.2.7
PyPI
Maintainers
1

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

FAQs

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts