semvec/pypi-packages huggingface dataset:
advancedfernetdataencryption 1.0.0
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.
Requires Python: >=3.5

# **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 Encryption.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.
ybconfig 0.1.3
Basic configuration management for YB

# yb_config
This module is for managing configuration data for Python projects. 

## Web Configuration 
This is for general web applications and basic Python programs. Importing the configuration object can be 
done with the following code:

```python
from ybconfig import WebConfig

config_data = WebConfig()
```

The ```WebConfig``` class is a Singleton meaning that once the ```WebConfig``` class is initialized, it will 
not be initialized again throughout the rest of the program's lifetime. Every call to a ```WebConfig``` 
instance will point to the same memory address so the data will be consistent across all ```WebConfig```
instances. 

### Setting up environment 
The ```WebConfig``` class can load from either a YML file or environment variables. If we are going to load 
from a YML file, we need to make sure that the path to the YML file is the last argument passed into the 
Python file like so:
```bash
python some_file.py ./path/to/config.yml
```
If we want to not have a YML file but get our config variables from environment variables then the config file 
path is not needed. Instead, we need to state that the environment variable ```ENVIRONMENT_CONFIG``` to 
```TRUE```. 

### Getting variables 
Getting variables from the config data is done using the ```get``` function with the following parameters:

**param key:** ```str``` the key that the variable is stored under

**param file:** ```bool``` if set to True will force to get data from a yml file despite defaults

**param environ** ```bool``` if set to True will force to get data from the environment variables despite defaults

**param strict** ```bool``` if set to True will throw an error if the key is not present