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
git clone https://github.com/shreyasnayak/SimpleEncrypt
mkdir CPP/Build && cd CPP/Build
cmake ..
make
sudo make install

Install python package SimpleEncrypt

Installation

python3 -m pip install simpleencrypt

Usage

from simpleencrypt import aes256

AES_KEY = b'171A065A7675A09AECEC118DBC008A822A041FC2EBF2B3E4CF7A4C966E5D5897'
AES_IV = b'2B5442AD8739992F'
plainText = b'Hello World'

# encryption
encrypted = aes256.encrypt(plainText,AES_KEY,AES_IV)
print(encrypted)

# decryption
decrypted = aes256.decrypt(encrypted,AES_KEY,AES_IV)
print(decrypted)

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.6.tar.gz (3.1 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.6-py3-none-any.whl (4.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: simpleencrypt-1.0.6.tar.gz
  • Upload date:
  • Size: 3.1 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.6.tar.gz
Algorithm Hash digest
SHA256 42c2ad5f8d9c8d6aa7f78510b46bd3e7adde94e0ac78d7155a030e4ade726607
MD5 2c173bdcdfa07a8e2c5f4fb22844fdd4
BLAKE2b-256 a5d57779d9b0195b3a7f75e20e43547f0fd4647bdbdf510cf7b221e009a61a0f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simpleencrypt-1.0.6-py3-none-any.whl
  • Upload date:
  • Size: 4.3 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.6-py3-none-any.whl
Algorithm Hash digest
SHA256 e032ff632dce594b5564027466cd118f725994bee34ea02f0b10792ade248b59
MD5 4fc9cb27959315ccf7198545c36ab464
BLAKE2b-256 fc73eeff7faabcd1cae3c9ed0895e169cc8f4cafb43c3385e17ff34930c23673

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