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
Metadata
Release files for text-encrypt-decrypt 0.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| text-encrypt-decrypt-0.0.1.tar.gz | 3.3 kB | Without provenance | Details for text-encrypt-decrypt-0.0.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| text_encrypt_decrypt-0.0.1-py3-none-any.whl | Python 3 | none | any | Details for text_encrypt_decrypt-0.0.1-py3-none-any.whl |
Total release size: 7.0 kB
Release files / text-encrypt-decrypt-0.0.1.tar.gz
| Download URL | text-encrypt-decrypt-0.0.1.tar.gz |
|---|---|
| Size | 3.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b01a20172746918c1cf01edae57356697aa7840f784d21a41ad81183ba5c28ef
|
|
BLAKE2b-256 checksum How to use checksums |
0d88038ae8683391e77fed92e5f4214b8685e50a465a5c6793c9451594759b6d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.0.0 CPython/3.10.9
|
Release files / text_encrypt_decrypt-0.0.1-py3-none-any.whl
| Download URL | text_encrypt_decrypt-0.0.1-py3-none-any.whl |
|---|---|
| Size | 3.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
66b5210c58241ac8047277c5c17433a1142a3b9ef2eca7a426c64f6563e8c325
|
|
BLAKE2b-256 checksum How to use checksums |
898d331c53502650446e0c8cfe4b3776b6d966dbe7d192f464fe972e4f5b6ad2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.0.0 CPython/3.10.9
|
Security for text-encrypt-decrypt 0.0.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.