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
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
fibcrypt-0.1.3.tar.gz
(3.2 kB
view details)
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.3.tar.gz.
File metadata
- Download URL: fibcrypt-0.1.3.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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
571e744cb7236b93cf815665fcb9bfe50d73ccd9438fc650cd57a2625c669483
|
|
| MD5 |
543e4546f0e9d75d17216c3f3dcd6129
|
|
| BLAKE2b-256 |
e7b3939641f2876929b5faa9e13d62f49df6c128daeb9e6bacbe16fd1474cfc5
|
File details
Details for the file fibcrypt-0.1.3-py3-none-any.whl.
File metadata
- Download URL: fibcrypt-0.1.3-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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e3edd2d205b0d46f4626b14afadcbd8f438bbd4286e7af8812af6f5838b747de
|
|
| MD5 |
3b9240894896662de71264af5a11d922
|
|
| BLAKE2b-256 |
d8008a53cab7ca617a780d036daffbe22c2ebb0e018f46fc17809bdc17358594
|