Metadata-Version: 2.1
Name: advancedfernetdataencryption
Version: 0.0.1
Summary: 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-URL: Bug Tracker, https://github.com/garfield8123/AdvancedFernetDataEncryption/issues
Project-URL: Homepage, https://github.com/garfield8123/AdvancedFernetDataEncryption
Author-email: garfield8123 <garfield8123@gmail.com>
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 3
Requires-Python: >=3.5
Description-Content-Type: text/markdown

# **AdvancedFernetDataEncryption**

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. 

## **Methods Supported**
- passwordToken(): Generates a random 120 length string and encrypts with fernet assymmetric algorithm `return <string>`
- generateSessionToken(<AnyString>): Generates a random 120 length string and encrypts with fernet assymetric algorithm. Used for Web Sessions `return Token, Key`
- dataEncryption(<PlainTxt>, <Token>): 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>`
- encryption(<AnyString>): Base method that simply adds a fernet encryption. `return Token, Key`
- dataDecrpytion(<EncyptedTxt>, <Token>): Decodes the giant encrypted text generated and creates a plain text version `return <String>`
- decryption(<AnyString>): Base method that simply decodes the fernet encryption. `return <String>`

## **Basic Usage Example**
```python
from AdvancedFernetDataEncryption import *

Token = passwordToken()
text = "Hello I would like to be encrypted
encryptedText = dataEncryption(text, Token)
unencryptedText = dataDecrpytion(text, Token)
```

When run these following lines the text will be encrypted and would be unecryptable without the usage of the Token generated. 