Skip to main content

AES-256 CBC Encrypt/Decrypt utility package

Project description

AES-256 CBC Encrypter/Decrypter module

AESEncrypter is a utility package that allows you to encrypt with AES-256 CBC mode, a characters string with an encryption phrase passed as an argument. It also includes the decryption function.

Requirements

Have pycryptodome and pycryptodomex installed

Installation

Run the following to install:

pip install aesencrypter

Usage

from aesencrypter import EncryptString, DecryptString

plain_string = "Hello, World!"
secret_key = "9ka87c30-9889-77a4-24-7ce56a47-6718-41a4-8677-52fe438d4f7b"
e = EncryptString(plain_string, secret_key)
d = DecryptString(e, secret_key)
print("Plain String.......: " + plain_string)
print("Encrypted String...: " + e)
print("Decrypted String...: " + d)

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

aesencrypter-1.8.tar.gz (1.8 kB view details)

Uploaded Source

File details

Details for the file aesencrypter-1.8.tar.gz.

File metadata

  • Download URL: aesencrypter-1.8.tar.gz
  • Upload date:
  • Size: 1.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.6.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.7.8

File hashes

Hashes for aesencrypter-1.8.tar.gz
Algorithm Hash digest
SHA256 6352683dfe59658efbcca623acdef9f0473a273bdc31a169a76d5ba8248d20fe
MD5 4f2407fab6183253f54c05c6df52ea28
BLAKE2b-256 d8795ab7ff67f15e0886447b3115af4d2873c9795ba60eb1f0040942d3593c85

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