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.
Project description
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(): Generates a random 120 length string and encrypts with fernet symetric algorithm. Used for Web Sessions
return Token, Key
- dataEncryption(): 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(): Decodes the giant encrypted text generated and creates a plain text version
return <String>
- decryption(): 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
Package Installation
pip install AdvancedFernetDataEncryption More Info can be found on pypi.org here
Basic Usage Example
from Encryption.AdvancedFernetDataEncryption import *
text = "Hello I would like to be encrypted
encryptedText = dataEncryption(text, MinLength=20, MaxLength=100)
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.
Example of Encryption Result
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 Distribution
Built Distribution
File details
Details for the file advancedfernetdataencryption-1.1.tar.gz
.
File metadata
- Download URL: advancedfernetdataencryption-1.1.tar.gz
- Upload date:
- Size: 4.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.17
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 07cd4170c0eb50e85cf716044f7b5ba3375af9094d89bee569e5b51dfcaa2944 |
|
MD5 | 556563333da560298c6b1f7405605e15 |
|
BLAKE2b-256 | 2060d31ab0436552e2a4d26d1eb57ace36c43a9f10afcf819b7181e3965dfe6b |
File details
Details for the file advancedfernetdataencryption-1.1-py3-none-any.whl
.
File metadata
- Download URL: advancedfernetdataencryption-1.1-py3-none-any.whl
- Upload date:
- Size: 4.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.17
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 14c7eabce0112a7d16470ef4354584ece17a8a7111fa029d7bedeac96e020482 |
|
MD5 | d2fbe42c61e83ed367cefffd8e4f0f74 |
|
BLAKE2b-256 | 3e2a8155c295608f33231ad709c71fec807790ec8cf87e3cbf05e2d3708afeac |