{"repo":"Greenheart/pagecrypt","free":true,"listed":false,"github":"https://github.com/Greenheart/pagecrypt","clone":"git clone https://github.com/Greenheart/pagecrypt.git","description":"Password Protected Single Page Applications and HTML files","language":"HTML","stars":346,"topics":["web-crypto","webcrypto-api","encryption-tool","password-protection","cryptography-tools","pbkdf2","aes-encryption","cli","html","password"],"license":"LGPL-3.0","category":"cli-tools","readme_excerpt":"🔐 PageCrypt - Password Protected Single Page Applications and HTML files Easily add client-side password-protection to your Single Page Applications, static websites and HTML files. Inspired by MaxLaumeister/PageCrypt, but rewritten to use native Web Crypto API and greatly improve UX + security. Thanks for sharing an excellent starting point to create this tool! Get started There are 4 different ways to use pagecrypt : 1. Encrypt HTML in modern browsers, Deno or Node.js using pagecrypt/core The encryptHTML() and generatePassword() functions are using Web Crypto API and will thus be able to run in any ESM compatible environment that supports Web Crypto API. This allows you to use the same pagecrypt API in any environment where you can run modern JavaScript. encryptHTML(inputHTML: string, password: string, iterations?: number): Promise generatePassword(length: number, characters: string): string You can also provide a custom dictionary of characters to use in your password: 2. Node.js API When working in a Node.js environment, you may prefer the pagecrypt Node.js build. This also includes the encrypt() function to read and write directly from and to the file system. encrypt(inputFile: string, outputFile: string, password: string, iterations: number): Promise NOTE: Importing pagecrypt also gives you access to generatePassword() and encryptHTML() from pagecrypt/core . 3. CLI Encrypt a single HTML-file with one command: Encrypt using a generated password with given length: 3.1. C","default_branch":null,"files":null,"tree":[],"storefront":"/r/Greenheart","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/Greenheart/pagecrypt/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}