Skip to main content

Tool for encrypting HTML files and generating JavaScript to decrypt it

Project description

HTMLCrypt

Inspired/Based on MaxLaumeister/PageCrypt.

Usage

decrypt.html decrypts content.html.encrypted from same folder. Change const encryptedFileName = 'content.html.encrypted'; to change to a different filename.

Use htmlcrypt -p $PASS -o content.html.encrypted input_file.html to encrypt input_file.html with password from $PASS.

usage: htmlcrypt [-h] [-p PASSWORD] [-e ENCRYPTED] [-d DECRYPT] [-f] file

Encrypt HTML file with password

positional arguments:
  file                  File to encrypt

options:
  -h, --help            show this help message and exit
  -p PASSWORD, --password PASSWORD
                        Password for encrypting/decrypting. Will ask for password from stdin if not specified
  -e ENCRYPTED, --encrypted ENCRYPTED
                        Encrypted filename
  -d DECRYPT, --decrypt DECRYPT
                        Location to generate the decryption .html file. Relative path to encrypted file will be injected into file.
  -f, --force           Overwrite existing output file

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

htmlcrypt-0.2.2.tar.gz (8.5 kB view hashes)

Uploaded Source

Built Distribution

htmlcrypt-0.2.2-py3-none-any.whl (7.3 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page