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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e9a4354517e01d1be7acb275d0726b83e391f0f03e4f142c60493ebc084e7225
|
|
| MD5 |
7357fde0700a7e4940589deedc460b50
|
|
| BLAKE2b-256 |
d923e957769f1943e15c4367d91d7529b73f7d1dced144ccf02120845c13e199
|
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d5e69905f73506dd8c10525b6a15be0b7c7b7a4d1d569429d98e174f4800503f
|
|
| MD5 |
703b681026b77510c55d13b526cc185e
|
|
| BLAKE2b-256 |
bc16a4be00fcd4a86d787689a2984044e2fceafcb9442e4ee5f5c8529d0df806
|