A self-contained cryptographic library for Python
Project description
Cryptcrro is a python cryptography library.
Cryptcrro includes both asymetric and symetric encryption, for encryption the protocols is asymetric ECIES + AES-128 or RSA + AES-128, for signing the protocols is ECDSA or RSA.
All Elliptic curve operation is done with the Secp256k1 curve.
Cryptcrro also provide a symmetric encryption called sha256_CTR, it is basically a AES-CTR encryption mode but using Sha256 instead of AES. (I know it seems weird, but if you are perplexed about encryption with a hashing function pls check the code).
For example, symetric encryption can be done like that:
>>> from cryptcrro.symetric import crro
>>> plaintext = "Chancellor on brink of second bailout for banks"
>>> key = scrro.generate_key()
>>> ciphertext = scrro.encrypt(key, message)
>>> decrypted_ciphertext = scrro.decrypt(key, ciphertext)
Or, asymetric encryption:
>>> from cryptcrro.asymetric import crro
>>> private_key = crro.generate_private_key()
>>> public_key = crro.generate_public_key(private_key)
>>> plaintext = "Chancellor on brink of second bailout for banks"
>>> ciphertext = crro.encrypt(public_key, message)
>>> decrypted_ciphertext = crro.decrypt(private_key, encrypted_message)
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 Distributions
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 cryptcrro-0.1.2-cp311-cp311-manylinux_2_34_x86_64.whl.
File metadata
- Download URL: cryptcrro-0.1.2-cp311-cp311-manylinux_2_34_x86_64.whl
- Upload date:
- Size: 325.9 kB
- Tags: CPython 3.11, manylinux: glibc 2.34+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.11.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6432d68990533c410eda850013492b039b7e2dfcebb768b65ce281056371ce7a
|
|
| MD5 |
4f6c060dd0b4ddd2f0a45d6a38d858ad
|
|
| BLAKE2b-256 |
3bc240848ed68ef4c54c548150b7c61d52b9238222889af69de66461fa6b200b
|