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

Google Colab Notebook: https://colab.research.google.com/drive/14Rj_vPUbSV4-qcRi2jur-YMa7rF1P03B?usp=sharing

  • [⏱️] 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.5.tar.gz (3.3 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.5-py3-none-any.whl (4.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: fibcrypt-0.1.5.tar.gz
  • Upload date:
  • Size: 3.3 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.5.tar.gz
Algorithm Hash digest
SHA256 e9a4354517e01d1be7acb275d0726b83e391f0f03e4f142c60493ebc084e7225
MD5 7357fde0700a7e4940589deedc460b50
BLAKE2b-256 d923e957769f1943e15c4367d91d7529b73f7d1dced144ccf02120845c13e199

See more details on using hashes here.

File details

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

File metadata

  • Download URL: fibcrypt-0.1.5-py3-none-any.whl
  • Upload date:
  • Size: 4.1 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.5-py3-none-any.whl
Algorithm Hash digest
SHA256 d5e69905f73506dd8c10525b6a15be0b7c7b7a4d1d569429d98e174f4800503f
MD5 703b681026b77510c55d13b526cc185e
BLAKE2b-256 bc16a4be00fcd4a86d787689a2984044e2fceafcb9442e4ee5f5c8529d0df806

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