Skip to main content

Easy encryption and decryption

Project description

Easy Encryption

Simple data encryption

Installation

Use pip to install the package:

pip install e-encryption

Usage

This package provides an easy way to encrypt information

Please change the environment variable EASY_ENCRYPTION_KEY_LOCATION to assign a location to the file that stores the key.

By default the file key is generated in the home folder.

from e_encryption import EasyEncryption

enc_msg = EasyEncryption.encrypt('This is an encrypted message')
print('Encrypt', enc_msg)
print('Decrypt', EasyEncryption.decrypt(enc_msg))

Setting key file path

from e_encryption import EasyEncryption

key_file = '/home/custom_location.key'
ecryp = EasyEncryption(key_file)
enc_msg = ecryp.encrypt('This is an encrypted message')
print('Encrypt', enc_msg)
print('Decrypt', ecryp.decrypt(enc_msg))

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

e_encryption-0.0.4-py3-none-any.whl (3.6 kB view hashes)

Uploaded Python 3

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