e-encryption-0.0.4
توضیحات
Easy encryption and decryption
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | e-encryption-0.0.4 |
| نام | e-encryption |
| نسخه کتابخانه | 0.0.4 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Jeff Aguilar |
| ایمیل نویسنده | jeff.aguilar.06@gmail.com |
| آدرس صفحه اصلی | - |
| آدرس اینترنتی | https://pypi.org/project/e-encryption/ |
| مجوز | MIT |
# 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.
```python
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
```python
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))
```
نیازمندی
| مقدار | نام |
|---|---|
| - | cryptography |
نحوه نصب
نصب پکیج whl e-encryption-0.0.4:
pip install e-encryption-0.0.4.whl
نصب پکیج tar.gz e-encryption-0.0.4:
pip install e-encryption-0.0.4.tar.gz