pycryptlib
Multiple cryptologic functions ranging from a simple caesar cipher up to DES!
Security notice: This library has not been independently audited. It is intended for learning and experimentation. For production systems, use a well-established library such as
cryptography.
Features
- Affine Cipher
- Viginere Cipher
- LFSR
- KidRSA
- RSA
- DES
Installation
pip install pycryptlib
Requires Python 3.9 or newer.
Quick start
from pycryptlib.lfsr import lfsr_encrypt
seed_3 = [1,0,0,0,1]
ciphertext, keystream = lfsr_encrypt("ACADEMY", seed_3)
print("7. Ciphertext bits:", ciphertext)
print("7. Keystream:", keystream)
## Supported algorithms
| Algorithm | Module | Notes |
|-----------|--------|---------------|
| DES | `pycryptlib.des` | 64-bit keys |
| LSFR | `pycryptlib.lsfr` | |
| Classical | `pycryptlib.classical` | Caesar, stream, etc |
| KidRSA | `pycryptlib.rsa` |
| RSA | `pycryptlib.rsa` |
## Feedback / Security Concerns
If you have any concerns regarding usage or issues (ie. function not working or not helpful explanation.),
feel free to email me or message me at sethrider02@gmail.com
## Development
```bash
git clone https://github.com/SethRider02/pycryptlib
cd pycryptlib
pip install -e ".[dev]"
pytest
License
MIT. See LICENSE.
Metadata
Release files for cgacryptpy 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| cgacryptpy-0.1.0.tar.gz | 26.3 kB | Without provenance | Details for cgacryptpy-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| cgacryptpy-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for cgacryptpy-0.1.0-py3-none-any.whl |
Total release size: 37.6 kB
Release files / cgacryptpy-0.1.0.tar.gz
| Download URL | cgacryptpy-0.1.0.tar.gz |
|---|---|
| Size | 26.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
7c15d9df4579c6b08f3fa227c85e4c3456f03728007c3ba3ac0588d4f841cfdd
|
|
BLAKE2b-256 checksum How to use checksums |
c4c6dc13501a880a649b8d552d6c1a2867d9f573f3a3a88f9fd92d3cfd0960de
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.12.10
|
Release files / cgacryptpy-0.1.0-py3-none-any.whl
| Download URL | cgacryptpy-0.1.0-py3-none-any.whl |
|---|---|
| Size | 11.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
42982cd6651e33313e625dd3f64d86f4bbf062ace0fd19f3f4cd2996a267d8bc
|
|
BLAKE2b-256 checksum How to use checksums |
9859cbd56dd523a316e222e7e8b53a71c9b11e0579d10c69bec818257e117632
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.12.10
|
Security for cgacryptpy 0.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.