HN discussion: https://news.ycombinator.com/item?id=41404064
Similar tools:
https://github.com/dividuum/html-vault
https://github.com/MaxLaumeister/PageCrypt
https://github.com/a-nau/password-protected-website-template
https://github.com/sowbug/quaid
https://github.com/mprimi/portable-secret
Thanks to @refalo@programming.dev
- RobotToaster ( @RobotToaster@mander.xyz ) 13•19 days ago
Static
Javascript
Has someone changed the meaning of static? I’ve always thought it meant the opposite of Dynamic HTML
- thingsiplay ( @thingsiplay@beehaw.org ) 9•19 days ago
It depends what static refers to. In this case, it refers to static file creation without PHP (or Python) on the server. The content itself can stay static, JavaScript and its dynamic nature is just used to encrypt and decrypt.
- adr1an ( @anzo@programming.dev ) 5•19 days ago
It’s been always the same. Backend, server logic, database… dynamic content; on one hand. JavaScript runs on the browser for almost anything, sometimes for dynamic content. But it’s not tied. You could have an in-browser button with a counter for the numbers of times it was pressed (that’s actually an entry-level programmer exercise) and that’s a static site. If you saved the counter value to the server (e.g. database) then it’s not static anymore.
- delirious_owl ( @delirious_owl@discuss.online ) 3•19 days ago
No, static sites are usually more js heavy because they offset all the processing to the client.
This is one reason I avoid static sites, and just heavily cache the server.
- ReversalHatchery ( @ReversalHatchery@beehaw.org ) English3•19 days ago
I think they mean taking a static site, and encrypting that with an attached JS. It could be done with a browser extension too (probably), but that way it would be less portable
- delirious_owl ( @delirious_owl@discuss.online ) 7•19 days ago
Sounds like JS is a depend
- Deebster ( @Deebster@programming.dev ) 13•19 days ago
Well yeah, you need to do the computation somewhere and it’s not doing it on the server so…
- delirious_owl ( @delirious_owl@discuss.online ) 2•18 days ago
Right, so it has a depend and it won’t work for many users
- setVeryLoud(true); ( @isVeryLoud@lemmy.ca ) 1•16 days ago
There’s no way to otherwise make this work for many users. They can use Tor if they’re worried.
- delirious_owl ( @delirious_owl@discuss.online ) 1•16 days ago
Sure there is. Don’t do it in a browser.
- henfredemars ( @henfredemars@infosec.pub ) English6•19 days ago
Way cool! Might actually try it sometime.