plain text encryption and decryption with SHA256 algorithm.
Project description
text-encrypt-decrypt :
plain text encrypt decrypt
plain text encryption and decryption with SHA256 algorithm.
Package Installation :
pip install text-encrypt-decrypt
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
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
Built Distribution
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
Algorithm | Hash digest | |
---|---|---|
SHA256 | b01a20172746918c1cf01edae57356697aa7840f784d21a41ad81183ba5c28ef |
|
MD5 | 9b197ab731034f8320818cfb76322019 |
|
BLAKE2b-256 | 0d88038ae8683391e77fed92e5f4214b8685e50a465a5c6793c9451594759b6d |
File details
Details for the file text_encrypt_decrypt-0.0.1-py3-none-any.whl
.
File metadata
- Download URL: text_encrypt_decrypt-0.0.1-py3-none-any.whl
- Upload date:
- Size: 3.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.10.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 66b5210c58241ac8047277c5c17433a1142a3b9ef2eca7a426c64f6563e8c325 |
|
MD5 | ff82c65e3e6677cde324528dc2f0f00b |
|
BLAKE2b-256 | 898d331c53502650446e0c8cfe4b3776b6d966dbe7d192f464fe972e4f5b6ad2 |