Skip to main content

RSA + AES cryptography algorithms

Project description

pip install rsa
pip install PyCryptoDomex

  1. Import modules

import rsa
from rsaes import rsaes

  1. Creat RSA PublicKey and PrivateKey

pb, pv = rsa.newkey(1024)

  1. Encrypt data

cd, ck = rsaes.encrypt(b'Hello', pb)

  1. Decrypt data

data = rsaes.decrypt(cd, ck, pv)

Used when encrypting large amounts of data using RSA and AES algorithms

My telegram: https://t.me/sidqdev
By sidq with love

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

rsaes-0.0.2.tar.gz (1.9 kB view hashes)

Uploaded Source

Built Distribution

rsaes-0.0.2-py3-none-any.whl (3.0 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page