Your easy tool to encrypt and decrypt strings with a password
Project description
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
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
Version: 2023010800
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
pyeasyencrypt-0.0.1.tar.gz
(3.0 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pyeasyencrypt-0.0.1.tar.gz.
File metadata
- Download URL: pyeasyencrypt-0.0.1.tar.gz
- Upload date:
- Size: 3.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e3131748070e00142fd416e305d6ea022baaa8d27403f908f558941a05a85fef
|
|
| MD5 |
e69ba3497b2c91fa1abaa0f94cb4c03b
|
|
| BLAKE2b-256 |
c07418a13f1520d09757cfe84949e6bb3078de5e372eaabbc71b7ed9562bd316
|
File details
Details for the file pyeasyencrypt-0.0.1-py3-none-any.whl.
File metadata
- Download URL: pyeasyencrypt-0.0.1-py3-none-any.whl
- Upload date:
- Size: 3.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a256d5a6e000bc5fc9ee9b7086175ec2b90f25ba193b38f4c88e4e71d7348372
|
|
| MD5 |
099bce6aea18746d406f229915e1a025
|
|
| BLAKE2b-256 |
066763e725e257fed5c059270b288e789cf8dd76d4c29ca23cc7c9e24bd4c2cf
|