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
Release history Release notifications | RSS feed
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
File details
Details for the file e_encryption-0.0.4-py3-none-any.whl
.
File metadata
- Download URL: e_encryption-0.0.4-py3-none-any.whl
- Upload date:
- Size: 3.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.10.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2e68956d8b468b8b894abea4b85199570d3fe8bb4176b5db2615e0a88c7bd831 |
|
MD5 | 473515e887409e87531e1f6eb5735b5e |
|
BLAKE2b-256 | 5cb0e03ea46992be82446a62ee0df99186396762eae0d325515dcf05ffa0a618 |