Skip to main content

A cryptography librairy

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 Distribution

cryptcrro-0.1.4.tar.gz (1.4 MB view details)

Uploaded Source

Built Distributions

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

cryptcrro-0.1.4-cp311-cp311-win_amd64.whl (187.7 kB view details)

Uploaded CPython 3.11Windows x86-64

cryptcrro-0.1.4-cp311-cp311-manylinux_2_34_x86_64.whl (325.7 kB view details)

Uploaded CPython 3.11manylinux: glibc 2.34+ x86-64

File details

Details for the file cryptcrro-0.1.4.tar.gz.

File metadata

  • Download URL: cryptcrro-0.1.4.tar.gz
  • Upload date:
  • Size: 1.4 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.2

File hashes

Hashes for cryptcrro-0.1.4.tar.gz
Algorithm Hash digest
SHA256 96cd828bda9921ea65c56ad4d055ae77a7b8097cbcb46089fdfcdca1bfb4f330
MD5 14e9c52fc53a615eb0ef05894eef6c08
BLAKE2b-256 13523970b9633a28cc9def22a31cd41b6ba1dfe43748fd7266382da84bea4cd8

See more details on using hashes here.

File details

Details for the file cryptcrro-0.1.4-cp311-cp311-win_amd64.whl.

File metadata

  • Download URL: cryptcrro-0.1.4-cp311-cp311-win_amd64.whl
  • Upload date:
  • Size: 187.7 kB
  • Tags: CPython 3.11, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.2

File hashes

Hashes for cryptcrro-0.1.4-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 c4790be612cfc080e0e293e9371184884cd758454ce836713fd2468b232b847e
MD5 b5d8e03fa446e33d28a2ffe02c053fb8
BLAKE2b-256 6bfce14af002718b500b9b78df311c6eeb3b656de1d2875ec2454716c4a016d9

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for cryptcrro-0.1.4-cp311-cp311-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 fd23282d112088dc7f61a6807d9e640159342841f7aec896ee3033579884d006
MD5 da566c7225c874ecd2e9dee9995c9b9d
BLAKE2b-256 ac76914b9e7bd7377bef5e31a14cc814b68fa4ab7362c14a419056708dcf5739

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