Skip to main content

Official library for Ebryx LLC.

Project description

Installation

You can grab the latest .whl file from repository and install it via pip or just simply type:

pip install ebryx

If you want build from source code, then.

git clone https://github.com/EbryxLabs/ebryx
cd ebryx/
python setup.py install

You will have a package named ebryx installed for your python.

Encryption / Decryption

You can encrypt / decrypt data using ebcrypt tool. (AES-256 Encryption)

For example, to encrypt you can do following:

ebcrypt <my-file.json> -e --new
# encrypts myfile.json using newly created crypto-secure key. Keys will be written to _keys file.

ebcrypt <my-file.json> -e
# encrypts using keys in AES_KEY, AES_IV environment variable.

For decryption, you'll need to have AES_KEY and AES_IV keys in your environment variables.

ebcrypt <my-file.json> -d

This is an optional step in case you want to decode your encrypted data explicitly for manual checking. Program decrypts your encrypted config file automatically.

You can get detailed help on crypto tool by typing.

ebcrypt -h

OpenSSL compatibility

Encryption done by openssl utility can be decrypted by ebcrypt utility and vice versa. For example, you can encrypt using openssl as follows.

openssl aes-256-cbc -a -e -K <hex-key> -iv <hex-iv> -in <input-file> -out <output-file>

hex-key and hex-iv should be replaced with actual keys in hex format. Using the same keys you used in openssl, you can decrypt using ebcrypt as follows.

ebcrypt <encrypted-file> -d
# AES_KEY environment variable should hold <hex-key>.
# AES_IV environment variable should hold <hex-iv>.

Similarly, you can encrypt using ebcrypt and decrypt the content using openssl, given that you're using the same keys.

Code Usage

You can also use it in your own code by importing the appropriate module.

# import main module.
import ebryx 

# import crypto submodule.
from ebryx import crypto

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

ebryx-0.4.1.tar.gz (4.1 kB view details)

Uploaded Source

Built Distribution

ebryx-0.4.1-py3-none-any.whl (7.3 kB view details)

Uploaded Python 3

File details

Details for the file ebryx-0.4.1.tar.gz.

File metadata

  • Download URL: ebryx-0.4.1.tar.gz
  • Upload date:
  • Size: 4.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.6.3 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.6.8

File hashes

Hashes for ebryx-0.4.1.tar.gz
Algorithm Hash digest
SHA256 aaf64a4badfcd8b4845a2c3f93d50ae6d4e8d6254ca79915a95d99e30f6a6b11
MD5 6f8f78ceba90b1c0b9ad705da1813191
BLAKE2b-256 c1691263410b80bdfd21aeb8b52fd89f6aa67d2a3c8747994e1d9c90e722eff4

See more details on using hashes here.

File details

Details for the file ebryx-0.4.1-py3-none-any.whl.

File metadata

  • Download URL: ebryx-0.4.1-py3-none-any.whl
  • Upload date:
  • Size: 7.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.6.3 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.6.8

File hashes

Hashes for ebryx-0.4.1-py3-none-any.whl
Algorithm Hash digest
SHA256 b8df712b6dc257d09a384388eb37935f45b2c650818fc675a38c075f75da107e
MD5 8f5c6ce29d029024ca28fb473e7c78be
BLAKE2b-256 aac108f27010cc037e2ed39c8d4a27a9eb9992a4b741a4b37e9072e69b7716b8

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