New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

html-encrypt

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

html-encrypt

Password protect a static HTML page without server

  • 1.3.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
6
decreased by-33.33%
Maintainers
1
Weekly downloads
 
Created
Source

html-encrypt

A zero config (and only optional minifiers as dependencies) to encrypt html files. This is a heavy modified clone of staticrypt.


Live Example

Installation

npm i html-encrypt

Execute

npx html-encrypt <path/index.html>

Note: running the command will modify the file.

Options

  • You will be asked to enter the Password


    Please consider using a safe password

  • Additionally, you can bring in your own template. Create a .html file and reference it when asked in the CLI.

    <form method="post">
        PW: <input type="password" name="" id="">
        <button type="submit">Login</button>
    </form>
    
  • You can also set the password with -p

    npx html-encrypt --remove-head <path/index.html> -p <long-password>
    
  • You can also add --remove-head in order to remove the content of the head for the output file. This might be needed for some SPAs.

    npx html-encrypt --remove-head <path/index.html>
    
  • You can also add --no-minify in order to not use html-minifier-terser and esbuild.

    npx html-encrypt --no-minify <path/index.html>
    
  • You can also skip the optional template path with --own-template. Or combine it with a secure -p in a Pipeline.

    npx html-encrypt --own-template <path/index.html>
    

Keywords

FAQs

Package last updated on 12 Sep 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc