Skip to main content

plain text encryption and decryption with SHA256 algorithm.

Project description

text-encrypt-decrypt :

DownloadsGitHub license PyPI - Python Version PyPI - Wheel PyPI

plain text encrypt decrypt

plain text encryption and decryption with SHA256 algorithm.

Package Installation :

pip install text-encrypt-decrypt

Pypi Package Link

How to import the module:

PLAIN_TEXT      = 'sujit' # plain text
LENGTH          = 32      # length of hash 
ITERATIONS      = 100000  # number of iterations
TOKEN_BYTES     = 16      # 16 bytes (128 bits) is a common size for salts

Plain Text Encrypt :

from text_encrypt_decrypt.text_encrypt_decrypt import encrypt_plain_text

encrypted_plain_text, key = encrypt_plain_text(PLAIN_TEXT, LENGTH, TOKEN_BYTES, ITERATIONS)

print("Encrypted plain_text:", encrypted_plain_text)

print("Encrypted Key:", key)

Decrypt Encrypted Plain Text :

from text_encrypt_decrypt.text_encrypt_decrypt import decrypt_plain_text

decrypted_plain_text = decrypt_plain_text(encrypted_plain_text, key)

print("Decrypted plain_text:", decrypted_plain_text)

Required package’s:

• pip install cryptography

License:

MIT Licensed

Author:

Sujit Mandal

GitHub

PyPi

LinkedIn

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

text-encrypt-decrypt-0.0.1.tar.gz (3.3 kB view hashes)

Uploaded Source

Built Distribution

text_encrypt_decrypt-0.0.1-py3-none-any.whl (3.7 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page