Socket
Socket
Sign inDemoInstall

pagecrypt

Package Overview
Dependencies
3
Maintainers
1
Versions
20
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install
Previous1

4.0.0

Diff

Changelog

Source

4.0.0 - 2021-04-29

Major UX and performance improvements!

This version uses document.write() to show the encrypted payload instead of using an <iframe> like pagecrypt < v4 did. Since this means browsers won't have to create a separate DOM instance, this brings good performance improvements.

Features

  • feature(UX): Major UX improvement - save CryptoKey to sessionStorage to gain massive UX + performance improvement on repeat visits.
  • feature(UX): Show results faster by removing the <iframe> and show content directly in the top-level document instead.
  • feature(DX): By removing the <iframe>, we also now allow embedded apps and webpages to use the full top-level document. Unlocks many new possible features that wouldn't work in pagecrypt < v4.
  • feature(UX): Show a loading state when loading large encrypted payloads.
  • feature(UX): Show loading spinner when decrypting for better UX.
  • feature(UX): Improve perceived loading performance by not blocking the main thread on page load.
    • This was achieved in part by the loading state, but also by moving the encrypted payload from a render-blocking inline <script> into a <pre> that only contains the raw data.
    • This way, the browser can do more work in parallel, which speeds up the initial page load.
  • feature(UX): Remove the success message and 1s timeout after successful decryption to improved perceived loading performance.
  • feature(build): Improve code transformations applied at build time to optimize decrypt-template.html
  • feature(UX): Add autofocus to password input when pageload has completed.

Fixes

  • fix(build): Remove old iframe solution that's no longer relevant
  • fix(docs): Fix invalid docstring for encryptHTML()

greenheart
published 3.3.0 •

Changelog

Source

3.3.0 - 2021-04-25

Features

  • Set <iframe> and document title to improve accessibility for the page.

Fixes

  • Clarify test instructions
  • Fix missing import in code sample

greenheart
published 3.2.0 •

Changelog

Source

3.2.0 - 2021-04-24

Features

  • Add password generator, built with the Node.js crypto module and without any external dependencies. Convenient, performant and secure.
  • CLI: Add --generate-password (alias -g) option to encrypt using a generated password of given length. See README.md for more info.
  • The password generator works well together with the JS API too.

Fixes

  • Update tests and docs to describe new password generator feature.

greenheart
published 3.1.0 •

Changelog

Source

3.1.0 - 2021-04-24

Features

  • Replace yargs with sade and simplify CLI + dependencies. No breaking changes.
    • This greatly improves both installation + runtime performance.
    • It also simplifies the CLI implementation.
    • The CLI API is preserved exactly like in 3.0.0

greenheart
published 3.0.0 •

Changelog

Source

3.0.0 - 2021-04-24

Features

  • Replace node-forge with the standard Web Crypto API - both in Node.js and in browsers.

    • This greatly improves performance, bundle size and security compared to v1.x and v2.x.
    • This allows using the same native code both for encryption in Node.js and decryption in the browser, simplifying the codebase.
  • decrypt-template.html file size reduced from 290 KB to 10 KB - (96 % less boilerplate code). This ensures the encrypted page will be the clear majority of the code shipped to the user.

  • PBKDF2 default iteration count increased from 1e5 to 2e6, greatly improving security.

Fixes

  • Fix #6: Replace vite preview with sirv-cli to fix upstream issue
  • Upgrade to Tailwind CSS 2.1.2
  • Cleanup web/index.html to reduce unused characters
  • Update README with instructions for enabling https for localhost
  • Use stronger test password

greenheart
published 2.0.0 •

Changelog

Source

2.0.0 - 2021-04-23

Features

  • Use node-forge instead of cryptojs for encryption + decryption.
  • Use vite instead of snowpack for simplified and more performant web build process.
  • Small design + UX improvements for the decryption template.

greenheart
published 1.2.0 •

Changelog

Source

1.2.0 - 2021-03-15

Features

  • Expose new encryptHTML() function to easily get the encrypted HTML file contents when using the JS API.
  • Improved documentation

Fixes

  • Cleanup code and move into separate smaller functions
  • dev: Improve test command to always install latest package build

greenheart
published 1.1.0 •

Changelog

Source

1.1.0 - 2021-03-14

Features

  • Added JS API

Usage:

import { encrypt } from 'pagecrypt'

await encrypt('input.html', 'output.html', 'strong password')
  • Improved documentation
  • Added basic testing setup to easily verify pagecrypt builds

Fixes

  • Updated how decrypt-template.html is loaded to allow JS API to work from any directory, and not just project root.

greenheart
published 1.0.1 •

Changelog

Source

1.0.1 - 2021-03-11

  • Improved test.html sample page.

greenheart
published 1.0.0 •

Changelog

Source

1.0.0 - 2021-03-10

  • Initial release
SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc