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 details)

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

Details for the file text-encrypt-decrypt-0.0.1.tar.gz.

File metadata

  • Download URL: text-encrypt-decrypt-0.0.1.tar.gz
  • Upload date:
  • Size: 3.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.10.9

File hashes

Hashes for text-encrypt-decrypt-0.0.1.tar.gz
Algorithm Hash digest
SHA256 b01a20172746918c1cf01edae57356697aa7840f784d21a41ad81183ba5c28ef
MD5 9b197ab731034f8320818cfb76322019
BLAKE2b-256 0d88038ae8683391e77fed92e5f4214b8685e50a465a5c6793c9451594759b6d

See more details on using hashes here.

File details

Details for the file text_encrypt_decrypt-0.0.1-py3-none-any.whl.

File metadata

File hashes

Hashes for text_encrypt_decrypt-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 66b5210c58241ac8047277c5c17433a1142a3b9ef2eca7a426c64f6563e8c325
MD5 ff82c65e3e6677cde324528dc2f0f00b
BLAKE2b-256 898d331c53502650446e0c8cfe4b3776b6d966dbe7d192f464fe972e4f5b6ad2

See more details on using hashes here.

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