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

# 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.5.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.5-py3-none-any.whl (4.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: simpleencrypt-1.0.5.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.5.tar.gz
Algorithm Hash digest
SHA256 35d215a53e15372205f32b002ca30b78f9ae4a6b44c46aea609ba249a5d1b4fd
MD5 493efd4f9c277a519d7868e2bd7f3e1b
BLAKE2b-256 34ef4c443572bb76c29006eff9a3adb61842a448109a2bd4258b59fbc7279e79

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simpleencrypt-1.0.5-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.5-py3-none-any.whl
Algorithm Hash digest
SHA256 d89f55101c7771f938464b34ed7c8a0d40db29f1d44059a3f14792615dedec75
MD5 4aa442de3fc6d76477b807b777df600f
BLAKE2b-256 88021b634c675d813b21206eae222b91ac55e9e533334c1d1d0fcc0e604f01b0

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