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
# 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
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.1.0.tar.gz
(3.0 kB
view hashes)
Built Distribution
Close
Hashes for pyeasyencrypt-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 250301db867154ab96341a01a4992868b23b96f2ad2fe3caed699fe2717f42a7 |
|
MD5 | 59728825c389751aa3079a3b23336e11 |
|
BLAKE2b-256 | 781e0baf8d3e3dd3bc714596688f91dbd526d00965851d1314d28199588eee84 |