Skip to main content

SimpleEncrypt is a Cross-Language Encryption Library

Project description

About SimpleEncrypt

SimpleEncrypt is a Cross-Language Encryption Library that provides the ability to encrypt and decrypt data in C++ and Python 3

Installing Dependency library

SimpleEncrypt Python package has a dependency on C++ shared library. Before running the simple encrypt python package, build and install C++ shared library.

Build and install C++ shared library

  • Install dependencies sudo apt-get install libssl-dev openssl
  • Download or clone simple encrypt C++ shared library
  • Compile and install
mkdir SimpleEncrypt_Python/CPP_Library/Build
cd SimpleEncrypt_Python/CPP_Library/Build
cmake ..
make
sudo make install

Install python package SimpleEncrypt

Installation

python3 -m pip install simpleencrypt

Usage

from simpleencrypt import aes256

# encryption
iv = b'171A065A7675A09AECEC118DBC008A822A041FC2EBF2B3E4CF7A4C966E5D5897'
key = b'2B5442AD8739992F'
plainText = b'Hello World'
encrypted = aes256.encrypt(plainText,iv,key)
print(encrypted)

# decryption
iv = b'171A065A7675A09AECEC118DBC008A822A041FC2EBF2B3E4CF7A4C966E5D5897'
key = b'2B5442AD8739992F'
print(aes256.decrypt(encrypted,iv,key))

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

simpleencrypt-1.0.3.tar.gz (3.0 kB view details)

Uploaded Source

Built Distribution

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

simpleencrypt-1.0.3-py3-none-any.whl (4.2 kB view details)

Uploaded Python 3

File details

Details for the file simpleencrypt-1.0.3.tar.gz.

File metadata

  • Download URL: simpleencrypt-1.0.3.tar.gz
  • Upload date:
  • Size: 3.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.7.3

File hashes

Hashes for simpleencrypt-1.0.3.tar.gz
Algorithm Hash digest
SHA256 fd13864845905d20ba0b67eb53f3d432d3da16163e4299952953073d46243e49
MD5 4c0aa1a08f796431fe9667a6f1622e13
BLAKE2b-256 e6dd0f671e4979e3019e4cb26a54dbe53fc639626a5da006ab2acc46e1dc0110

See more details on using hashes here.

File details

Details for the file simpleencrypt-1.0.3-py3-none-any.whl.

File metadata

  • Download URL: simpleencrypt-1.0.3-py3-none-any.whl
  • Upload date:
  • Size: 4.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.7.3

File hashes

Hashes for simpleencrypt-1.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 be7fb5dce0328adefe3ba22f1ea7f65365d9b159a0a81d49a0f7370337af0e4b
MD5 06226b29c96f1eda279b80e809b85780
BLAKE2b-256 4f3843c19d406651487c0e822a1378a8b559610d55df08c20ca5930c7a2989d6

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