pyeasyencrypt
Description
The purpose of this module is to simplify the way of encrypting and decrypting strings at python with a simple password
Example of Python code
import logging, os
# pip install pyeasyencrypt
from pyeasyencrypt.pyeasyencrypt import encrypt_string, decrypt_string
level = os.getenv("LOGGER", "INFO")
logging.basicConfig(level=level)
logger = logging.getLogger(__name__)
def main():
logger.info("Example")
clear_string = 'stringA'
password = "my password"
encrypted_string = encrypt_string(clear_string, password)
decrypted_string = decrypt_string(encrypted_string, password)
logger.info(f"clear_string={clear_string} decrypted_string={decrypt_string} password={password} encrypted_string={encrypted_string}")
logger.debug("Done")
if __name__ == '__main__':
main()
Author
Name: Jordi Redondo Email: jordipromotions@gmail.com git repo: https://github.com/redcorjo/pyeasyencrypt.git
Install
pip install pyeasyencrypt
Version: 2023010803
Release files for pyeasyencrypt 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| pyeasyencrypt-0.1.0.tar.gz | 3.0 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| pyeasyencrypt-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 6.6 kB
Release files / pyeasyencrypt-0.1.0.tar.gz
| Download URL | pyeasyencrypt-0.1.0.tar.gz |
|---|---|
| Size | 3.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
fd8adc754e90c32731184dc5ef1adc3858d6689c6836543f18847202e65f4cbf
|
|
BLAKE2b-256 checksum How to use checksums |
6f29adf1c114bab49a7357479ed1ac9d436ddf94ba84625321569870b460768c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.9.5
|
Release files / pyeasyencrypt-0.1.0-py3-none-any.whl
| Download URL | pyeasyencrypt-0.1.0-py3-none-any.whl |
|---|---|
| Size | 3.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
250301db867154ab96341a01a4992868b23b96f2ad2fe3caed699fe2717f42a7
|
|
BLAKE2b-256 checksum How to use checksums |
781e0baf8d3e3dd3bc714596688f91dbd526d00965851d1314d28199588eee84
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.9.5
|