[Experimental]

protect_html(html, password, output = NULL, title = NULL, instructions = NULL)

Arguments

html

The address to an HTML file.

password

The password used to protect the file.

output

The address to an HTML file. If exists, the function will overwrite it.

title

Title for the password box.

instructions

Instructions for end user. Could be guidelines related to the password it self.

Details

Add a layer of protection to your HTML files. protect_html() adds a password request layer before entering the final html file.

About the algorithm

This uses under the hood the package staticrypt (see GitHub repo), from Robin Moisson. For extra documentation about the JavaScript code see the repository from his GitHub