Skip to main content

A fast Fibonacci-based cryptographic toolkit

Project description

fibcrypt

fibcrypt is a lightweight, open-source cryptographic toolkit based on fast Fibonacci number generation using matrix exponentiation.

🔐 Features

  • Fast Fibonacci-based PRNG (O(log n))
  • AES-256 encryption & decryption (CBC mode)
  • Custom key derivation function (KDF)
  • Modular, pluggable and extensible structure
  • Built-in performance profiling

📦 Installation

pip install fibcrypt

🚀 Example Usage

from fibcrypt.crypto_utils import encrypt, decrypt

msg = "This is a secret message 🔐"
password = "myStrongPassword123"
salt = "user@example.com"

# Encrypt
cipher = encrypt(msg, password, salt)
print("Encrypted:", cipher.hex())

# Decrypt
plain = decrypt(cipher, password, salt)
print("Decrypted:", plain)

📈 Performance Example

  • [⏱️] KDF total time: 0.0625 s
  • [⏱️] AES encryption: 0.0001 s
  • [⏱️] Total time: 0.0626 s

🛡️ License

This project is licensed under the MIT License - feel free to use and contribute!

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

fibcrypt-0.1.4.tar.gz (3.2 kB view details)

Uploaded Source

Built Distribution

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

fibcrypt-0.1.4-py3-none-any.whl (4.0 kB view details)

Uploaded Python 3

File details

Details for the file fibcrypt-0.1.4.tar.gz.

File metadata

  • Download URL: fibcrypt-0.1.4.tar.gz
  • Upload date:
  • Size: 3.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.11

File hashes

Hashes for fibcrypt-0.1.4.tar.gz
Algorithm Hash digest
SHA256 6bbdc42d3f0cceae6a6ac93a7e75dcf1fd8afb8b7dc1efcb6751ab06c3514343
MD5 424469610f24fdc44e989aa9a2e4f03b
BLAKE2b-256 de8ea90132789130165914e02e69ebd3c752e3cbeabdd708c986cc96167fe36b

See more details on using hashes here.

File details

Details for the file fibcrypt-0.1.4-py3-none-any.whl.

File metadata

  • Download URL: fibcrypt-0.1.4-py3-none-any.whl
  • Upload date:
  • Size: 4.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.11

File hashes

Hashes for fibcrypt-0.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 328f80a3ce9bc2c5dacaf3bead39d8dac7d2ae33b817c41aed41a66fd2e5f544
MD5 153c57ba8a56952db61fb2854f521969
BLAKE2b-256 5cc9ea1df80dc27b2037cf0f9d9a982236e53aff4d7c865e26e5ef3f2b8ac20d

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