Skip to main content

EZ Encode is a simple custom encoder that has a two layer encoding mechanism which makes it a bit more secure. Though, the conecpt could be improved upon it works really well.

Example:

# import the ezencode classe
from EZencode.ezencode import ezencode

# Generate some text to encode
data = "Hello, world! The encoder and decoder really works. \n\n"

# Encode the data
encoded = ezencode(data).encode()    # encode and store the encoded data

# Decode the data
decoded = ezencode(encoded).decode() # decode and store the decoded data

print("Encoded: ", encoded, end="\n")  # print the encoded data
print("Decoded: ", decoded, end="\n")  # print the decoded data

# The code shown above is the typical usage of ezencode
# The code below is a special use case and is not always necessary

# Encode the encoded data as bytes and write it to a file
#
#     encoded = ezencode(data).encode(as_bytes=True, write_out=True)
#
# The file name will be ./ezencode-seconds.bin
# To decode the data, just read the file contents and use
# ezencode's decode method to decode the data
#
#     with open('./ezencode-seconds.bin', 'rb') as bin_file:
#         data = bin_file.read()
#         decoded = ezencode(data).decode()
#
# Then, print the decoded data
#     print(decoded)
# Command Line usage
ezencode [-b -h -w] -d|-e *DATA*

# Getting help
ezencode -h

# Typical usage
encoded="$(ezencode -e "Hello")"
decoded="$(ezencode -d "$encoded")"

# Writing encoded data as is to a file
ezencode -w -e "Hello, world"

# Writing encoded data as bytes to a file
ezencode -b -w -e "Hello, world"

# Decoding encoded data from file
data="$(cat ./ezencode-SECONDS.bin)"
ezencode -d "$data"

Metadata

Release files for ezencode 0.8

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

Built distribution (wheel)

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

Release files / ezencode-0.8-py3-none-any.whl

Download URL ezencode-0.8-py3-none-any.whl
Size 7.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
00ac54d43561a2e764968c63b0416f6740ba02fd9cd1d916ddb07f6148e2d783
BLAKE2b-256 checksum
How to use checksums
6178b341b6eeca0b4e84648451fc06a9c25a06a3f99a377bceffe795641d4363
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.6.14

Security for ezencode 0.8

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.

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