Skip to main content

htmlcode

htmlcode encrypts text with a password, embeds the ciphertext into hidden HTML spans, and can later extract and decrypt it.

CLI

htmlcode encrypt --text "Hello" --password pass --output demo.html
htmlcode decrypt --input demo.html --password pass --output decrypted.txt

Defaults:

  • encrypt --output: demo.html
  • encrypt --chunk-size: 32
  • decrypt --input: demo.html when present
  • decrypt --output: decrypted.txt

Python API

from htmlcode import decrypt_from_html, encrypt_to_html

html = encrypt_to_html("Hello", "pass")
text = decrypt_from_html(html, "pass")
assert text == "Hello"

Metadata

Release files for htmlcode 0.1.0

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

Source distribution (sdist)

Source distribution for htmlcode 0.1.0
File Size Uploaded Provenance Actions
htmlcode-0.1.0.tar.gz 7.7 kB Without provenance Details for htmlcode-0.1.0.tar.gz

Built distribution (wheel)

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

Total release size: 15.3 kB

Release files / htmlcode-0.1.0.tar.gz

Download URL htmlcode-0.1.0.tar.gz
Size 7.7 kB
Tags Source
SHA-256 checksum
How to use checksums
662208cc7272b67ce112b2c2a842658196aee6454e43ca09c4a048f56c90c6ed
BLAKE2b-256 checksum
How to use checksums
cfd13070585d0177c7280c6469fe599815b1c9f63bba8f470147091745b048c5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.9.6

Release files / htmlcode-0.1.0-py3-none-any.whl

Download URL htmlcode-0.1.0-py3-none-any.whl
Size 7.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
26e3806289742d7a3304bf9d49ba8964c5185b16ea5e6266b5f18dba51a9809b
BLAKE2b-256 checksum
How to use checksums
8e3df239a540ca481b1a8bf446e3f2441dcd21d55f7889624a8bbc8bf7c18e8e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.9.6

Security for htmlcode 0.1.0

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.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files No provenance

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