Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

cryptcrro-0.1.2-cp311-cp311-manylinux_2_34_x86_64.whl (325.9 kB view details)

Uploaded CPython 3.11manylinux: glibc 2.34+ x86-64

File details

Details for the file cryptcrro-0.1.2-cp311-cp311-manylinux_2_34_x86_64.whl.

File metadata

File hashes

Hashes for cryptcrro-0.1.2-cp311-cp311-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 6432d68990533c410eda850013492b039b7e2dfcebb768b65ce281056371ce7a
MD5 4f6c060dd0b4ddd2f0a45d6a38d858ad
BLAKE2b-256 3bc240848ed68ef4c54c548150b7c61d52b9238222889af69de66461fa6b200b

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