]> git.ardis.lu - static-encrypt/commitdiff
Add "Usage" section
authorArdis Lu <ardisglu@gmail.com>
Thu, 18 May 2023 05:41:02 +0000 (22:41 -0700)
committerArdis Lu <ardisglu@gmail.com>
Thu, 18 May 2023 05:41:02 +0000 (22:41 -0700)
README.md

index 3fc98810554983f338e3d2deea9676dba221c659..310b7b40a7ef967250d33b2e9370a5a2fbef2b8d 100644 (file)
--- a/README.md
+++ b/README.md
@@ -6,6 +6,22 @@ Like [StatiCrypt](https://github.com/robinmoisson/staticrypt) but reduced to jus
 
 See [static-encrypt-cli](https://github.com/ardislu/static-encrypt-cli) for a Rust CLI companion to this tool.
 
+## Usage
+
+This tool is inspired by and works similarly to [StatiCrypt](https://robinmoisson.github.io/staticrypt/).
+
+1. Go to [https://static-encrypt.ardis.lu/](https://static-encrypt.ardis.lu/).
+
+2. Enter the HTML or any plaintext you want to encrypt into the **Content** box.
+
+3. Enter the password you want to use to encrypt the content into the **Password** box. Use a long password.
+
+4. Press the `Encrypt` button.
+
+5. Either:
+    - Press `Download HTML file` to download a ready-to-use web page containing your encrypted content, or
+    - Copy the string inside the  `Encrypted content` box and integrate it into your own frontend or use case (see next sections)
+
 ## `encrypt.js` and `decrypt.js`
 
 Both the `encrypt` and `decrypt` functions are written in vanilla JavaScript with no dependencies and are provided as standalone files for easy integration. Some example uses are described below:
This page took 0.037438 seconds and 4 git commands to generate.