Changelog
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.
sessionStorage
to gain massive UX + performance improvement on repeat visits.<iframe>
and show content directly in the top-level document instead.<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
.<script>
into a <pre>
that only contains the raw data.decrypt-template.html
encryptHTML()
Changelog
3.3.0 - 2021-04-25
<iframe>
and document title
to improve accessibility for the page.Changelog
3.2.0 - 2021-04-24
crypto
module and without any external dependencies. Convenient, performant and secure.--generate-password
(alias -g
) option to encrypt using a generated password of given length. See README.md
for more info.Changelog
3.1.0 - 2021-04-24
yargs
with sade
and simplify CLI + dependencies. No breaking changes.
Changelog
3.0.0 - 2021-04-24
Replace node-forge
with the standard Web Crypto API - both in Node.js and in browsers.
v1.x
and v2.x
.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.
vite preview
with sirv-cli
to fix upstream issuehttps
for localhostChangelog
2.0.0 - 2021-04-23
node-forge
instead of cryptojs
for encryption + decryption.vite
instead of snowpack
for simplified and more performant web build process.Changelog
1.2.0 - 2021-03-15
encryptHTML()
function to easily get the encrypted HTML file contents when using the JS API.Changelog
1.1.0 - 2021-03-14
Usage:
import { encrypt } from 'pagecrypt'
await encrypt('input.html', 'output.html', 'strong password')
pagecrypt
buildsdecrypt-template.html
is loaded to allow JS API to work from any directory, and not just project root.