MaxLaumeister / PageCrypt

Client-side password-protection for HTML
https://pagecrypt.maxlaumeister.com/
MIT License
506 stars 101 forks source link

Decryption tool, so that encrypted pages can be edited again #19

Open MaxLaumeister opened 3 years ago

MaxLaumeister commented 3 years ago

It could be useful to have a decryption tool, so that you could take a page that's been encrypted by PageCrypt and run it through the tool (with the password) to edit the HTML again.

The code for this would look similar to what the PageCrypt template does to decrypt the page, except that the tool would then initiate a browser download of the unencrypted page html file.

swordsx48 commented 1 year ago

+1 I could use this! can't find the html I wrote prior to encrypting...🧐

PhrostyWatches commented 1 year ago

Can you access your html with the password? if so, simply save the decrypted page to get your html page back. it looks like it creates an iframe for the decrypted page and you can see the original html by inspecting it. Viewing Source Code doesn't work, but using Inspect in Chromium based browsers seems to do the trick.