Skip to main content

TextBytesEncoder

Module encoding and encrypting text by key

Usage example

from textbytesencoder import Encoder

encoder = Encoder(key=None, save_key=False)  # key: Optional[bytes] = None, save_key: Optional[bool] = False
print(encoder.encrypt(text))  # type(text) == str
print(encoder.decrypt(text))  # type(text) == bytes

During initialization, you can specify the optional key parameter (key, type and purpose see below) and the optional save_key parameter (saves the key to a separate file)

Parameters

Parameter key of type bytes, generated using the Fernet.generate_key() function or using the base64.urlsafe_b64encode(os.urandom(32)) function used to encode or decode text.

print(encoder.key)
encoder.key = b"key"  # key = Fernet.generate_key() or base64.urlsafe_b64encode(os.urandom(32))

Metadata

Release files for textbytesencoder 0.1.13

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for textbytesencoder 0.1.13
File Size Uploaded Provenance
textbytesencoder-0.1.13.tar.gz 3.8 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for textbytesencoder 0.1.13
File Interpreter ABI Platform
textbytesencoder-0.1.13-py3-none-any.whl Python 3 none any Details

Total release size: 8.8 kB

Release files / textbytesencoder-0.1.13.tar.gz

Download URL textbytesencoder-0.1.13.tar.gz
Size 3.8 kB
Tags Source
SHA-256 checksum
How to use checksums
94f0abffa5b2fdb2d074051476680b971d8e1693bb35877da4a4c7cf151c205b
BLAKE2b-256 checksum
How to use checksums
9f08cb0bce78e0babfcd9440c97142c4560b91678bde36ff9075f87318449d04
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.1.13 CPython/3.10.2 Windows/10

Release files / textbytesencoder-0.1.13-py3-none-any.whl

Download URL textbytesencoder-0.1.13-py3-none-any.whl
Size 5.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
9590eed30d70d5ab5d4ab7555d93ee6323961a0b87be5abea625ce79ae19afde
BLAKE2b-256 checksum
How to use checksums
433fff39a6c7cb1487f28806361360bd5227999f9929698540e14c751d31231c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.1.13 CPython/3.10.2 Windows/10

Security for textbytesencoder 0.1.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.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page