Metadata-Version: 2.1
Name: htmlcrypt
Version: 0.2.1
Summary: Tool for encrypting HTML files and generating JavaScript to decrypt it
Author: mricherzhagen
License: MIT License
Project-URL: Homepage, https://github.com/mricherzhagen/htmlcrypt
Project-URL: Bug Tracker, https://github.com/mricherzhagen/htmlcrypt/issues
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Requires-Python: >=3.9
Description-Content-Type: text/markdown
License-File: LICENSE

# HTMLCrypt

Inspired/Based on [MaxLaumeister/PageCrypt](https://github.com/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
```
