![Introducing Enhanced Alert Actions and Triage Functionality](https://cdn.sanity.io/images/cgdhsj6q/production/fe71306d515f85de6139b46745ea7180362324f0-2530x946.png?w=800&fit=max&auto=format)
Product
Introducing Enhanced Alert Actions and Triage Functionality
Socket now supports four distinct alert actions instead of the previous two, and alert triaging allows users to override the actions taken for all individual alerts.
pagecrypt
Advanced tools
Changelog
1.2.0 - 2021-03-15
encryptHTML()
function to easily get the encrypted HTML file contents when using the JS API.Readme
A CLI to add client-side password-protection for HTML files
Inspired by MaxLaumeister/PageCrypt. Thanks for sharing an excellent starting point to create this CLI!
It's easy to start encrypting a single HTML-file:
npx pagecrypt [input.html] [output.html] [password]
pagecrypt
in your build processnpm i -D pagecrypt
package.json:
{
"devDependencies": {
"pagecrypt": "^0.1.0"
},
"scripts": {
"build": "...",
"postbuild": "pagecrypt index.html encrypted.html strong-password"
}
}
You can use pagecrypt
in your Node.js scripts:
encrypt(inputFile: string, outputFile: string, password: string): Promise<void>
import { encrypt } from 'pagecrypt'
// Encrypt a HTML file and write to the filesystem
await encrypt('input.html', 'output.html', 'strong password')
encryptHTML(inputHTML: string, password: string): string
import { encryptHTML } from 'pagecrypt'
// Encrypt a HTML string and return an encrypted HTML string that can be written to a file or sent in a HTTPS response to a browser.
const encryptedHTML = await encryptHTML(
`<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
</head>
<body>
Secret
</body>
</html>
`,
'strong password',
)
The project consists of two parts:
/web
- Web frontend for public webpage (decrypt-template.html
). Built using Snowpack & TailwindCSS./index.js
- pagecrypt CLI.npm test
will run basic tests for JS API and CLI. Verify results by opening test/out-js.html
and test/out-cli.html
in your browser.
Welcome to submit your pull requests!
FAQs
Easily add client-side password-protection to your Single Page Applications and HTML files.
The npm package pagecrypt receives a total of 1,145 weekly downloads. As such, pagecrypt popularity was classified as popular.
We found that pagecrypt demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
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.
Product
Socket now supports four distinct alert actions instead of the previous two, and alert triaging allows users to override the actions taken for all individual alerts.
Security News
Polyfill.io has been serving malware for months via its CDN, after the project's open source maintainer sold the service to a company based in China.
Security News
OpenSSF is warning open source maintainers to stay vigilant against reputation farming on GitHub, where users artificially inflate their status by manipulating interactions on closed issues and PRs.