Skip to main content

Light Weight python package for encrption/decryption

Project description

Decrypto

A light-weight encryption & decryption library, Built with power and simplicity!

Decrypto is a light-weight python package to provide state of the art encryption and decryption techniques and aims to be simple and easy to use. Being open-source, Decrypto wraps a huge number of old, modern, secure and encoding based encryption-decryption methods while still being fast

Features

  • It's light-weight and fast
  • Simple to use and learn
  • Provides a multidegree of techniques from various cryptographic field

Installation

Use the package manager pip to install decrypto.

pip install decrypto

Usage

You can either use a classical cipher technique

from decrypto import MorseCodeCipher

cipher = MorseCodeCipher()
data = 'Hello World'

# encrypt using morse code cipher
encrypted = cipher.encrypt(data)
print(encrypted)

# decrypt using morse code cipher
decrypted = cipher.decrypt(encrypted)
print(decrypted)

or a more advanced and modern cipher technique

from decrypto import RSACipher

cipher = RSACipher()
data = 'hello world'

keys = cipher.generate_keys(23, 31)
encrypted = cipher.encrypt(message, keys['public_key'])
decrypted = cipher.decrypt(encrypted, keys['private_key'])

print(keys)
print(encrypted)
print(decrypted)

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change. Please make sure to update tests as appropriate.

License

MIT

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

decrypto-1.1.1.tar.gz (10.0 kB view details)

Uploaded Source

Built Distribution

decrypto-1.1.1-py3-none-any.whl (18.0 kB view details)

Uploaded Python 3

File details

Details for the file decrypto-1.1.1.tar.gz.

File metadata

  • Download URL: decrypto-1.1.1.tar.gz
  • Upload date:
  • Size: 10.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/58.2.0 requests-toolbelt/0.9.1 tqdm/4.42.1 CPython/3.8.1

File hashes

Hashes for decrypto-1.1.1.tar.gz
Algorithm Hash digest
SHA256 4db5be4c9f8d2ea5f54b61d7b5a970cb21bf7f4421e92e66326fe7262506f80d
MD5 ce03619f6f84addc5ff4fe43988b75bb
BLAKE2b-256 124d748f9d7418c749c4d689aa3417d6007940d577ec4cff05ef04b71193fc12

See more details on using hashes here.

File details

Details for the file decrypto-1.1.1-py3-none-any.whl.

File metadata

  • Download URL: decrypto-1.1.1-py3-none-any.whl
  • Upload date:
  • Size: 18.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/58.2.0 requests-toolbelt/0.9.1 tqdm/4.42.1 CPython/3.8.1

File hashes

Hashes for decrypto-1.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 b6bf15f69e271f887ec58d1c5a5282d5918a9a77911d61d57ced1353cd756a6f
MD5 5309fdaa844433cec57e34c34384b76a
BLAKE2b-256 7c9b350522c5b7d2cf9bb2db469350f4b7ee5a215f6d522b24ea02a1cc1a5738

See more details on using hashes here.

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