AdvancedFernetDataEncryption-1.0.1
توضیحات
An encryption that uses the Fernet assymetric key generator and random values to create a secure token and key that can be stored and still be unreadable to any user.
| ویژگی | مقدار |
|---|---|
| سیستم عامل | OS Independent |
| نام فایل | AdvancedFernetDataEncryption-1.0.1 |
| نام | AdvancedFernetDataEncryption |
| نسخه کتابخانه | 1.0.1 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | - |
| ایمیل نویسنده | garfield8123 <garfield8123@gmail.com> |
| آدرس صفحه اصلی | - |
| آدرس اینترنتی | https://pypi.org/project/AdvancedFernetDataEncryption/ |
| مجوز | - |
# **AdvancedFernetDataEncryption**
An encryption that uses the Fernet symetric key generator and random values to create a secure token and key that can be stored and still be unreadable to any user.
## **Methods Supported**
- generateSessionToken(<AnyString>): Generates a random 120 length string and encrypts with fernet symetric algorithm. Used for Web Sessions `return Token, Key`
- dataEncryption(<PlainTxt>): Generates a random 120 length string and shoves it randomly in the PlainTxt and shoves the token randomly in the 120 length string generated. Then all of this information is encrypted with the fernet algorithm. `return <string>`
- dataDecrpytion(<EncyptedTxt>): Decodes the giant encrypted text generated and creates a plain text version `return <String>`
- decryption(<EncryptedTxt>): Decodes the basic encrypted text generated and creates a plain text version `return <String>` Recommended to use only this method for the generated session token
## **Basic Usage Example**
```python
from Encryption.AdvancedFernetDataEncryption import *
text = "Hello I would like to be encrypted
encryptedText = dataEncryption(text)
unencryptedText = dataDecrpytion(encryptedText)
```
When run these following lines the text will be encrypted and would be unecryptable without the usage of the Token generated, which is randomly generated for each encrypted text.
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >=3.5 | Python |
نحوه نصب
نصب پکیج whl AdvancedFernetDataEncryption-1.0.1:
pip install AdvancedFernetDataEncryption-1.0.1.whl
نصب پکیج tar.gz AdvancedFernetDataEncryption-1.0.1:
pip install AdvancedFernetDataEncryption-1.0.1.tar.gz