protects a text with a password
pip install passprotecttxt
Tested against Windows 10 / Python 3.10 / Anaconda
Encryption:
The encrypt_text function provides a simple and secure way to encrypt text using AES encryption with CTR mode. AES is a widely used encryption algorithm known for its security and efficiency. CTR mode provides confidentiality and allows random access to the encrypted data.
Decryption:
The decrypt_text function complements the encryption process by decrypting the ciphertext back to its original plaintext form. It ensures that only authorized parties with the correct password can access and decrypt the data.
copy & paste example
from passprotecttxt import encrypt_text,decrypt_text
plaintext = "Hello, World!"
password = "MySecretPassword"
encrypted_text = encrypt_text(plaintext, password)
decrypted_text = decrypt_text(encrypted_text, password)
print("Plaintext:", plaintext)
print("Encrypted text:", encrypted_text)
print("Decrypted text:", decrypted_text)
# output
Plaintext: Hello, World!
Encrypted text: 63F720AC7E1F72B460271B2368
Decrypted text: Hello, World!
Metadata
Release files for passprotecttxt 0.13
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 |
|---|---|---|---|---|
| passprotecttxt-0.13.tar.gz | 3.9 kB | Without provenance | Details for passprotecttxt-0.13.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| passprotecttxt-0.13-py3-none-any.whl | Python 3 | none | any | Details for passprotecttxt-0.13-py3-none-any.whl |
Total release size: 9.4 kB
Release files / passprotecttxt-0.13.tar.gz
| Download URL | passprotecttxt-0.13.tar.gz |
|---|---|
| Size | 3.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ae64d623d40768d56154870e74dd663204ab9cc6ac7f9200dc990f2ed17b3576
|
|
BLAKE2b-256 checksum How to use checksums |
604170e42ad30f8abe94ef93e064ac97abeba64962f8c7a35f6e89f6d2fc77a9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.10.12
|
Release files / passprotecttxt-0.13-py3-none-any.whl
| Download URL | passprotecttxt-0.13-py3-none-any.whl |
|---|---|
| Size | 5.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
d589a0d2e4de93d27bc16bb4d18896558662a41d361015b94d0d7e016504fb0c
|
|
BLAKE2b-256 checksum How to use checksums |
60860c2dadb40ae96465b1228a5061c596a405b4f9fa573fa2fcd906a76c3c9f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.10.12
|
Security for passprotecttxt 0.13
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.