PageCrypt
ansicodes
PageCrypt | ansicodes | |
---|---|---|
8 | 3 | |
475 | 63 | |
- | - | |
0.0 | 0.0 | |
about 2 years ago | about 2 years ago | |
HTML | HTML | |
MIT License | - |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
PageCrypt
- Password protect a static HTML page
- is there a way to password protect certain subpages?
-
Client of mine wants a paywall on all of their articles. Any ideas of how I can do this using the JAMstack.
Password protect the static page with pagectypt or similar.
-
Is zero-knowledge hosting a thing?
PageCrypt does what you want and it's fully client side so no messing about with .htaccess etc.
-
How to password protect static resume website
I think you can use page encrypt https://www.maxlaumeister.com/pagecrypt/ Keep in mind that this is a developer tool more than something pre-baked into premade instances by DO/Linode.
-
HOW TO: Uee PageCrypt to (semi-)securely store sensitive data in Anki
PageCrypt is a simple solution to an annoying problem: Can I password protect a document, without having to run an entire server to serve it to me? Given a document (the author says an HTML doc, but raw text might even work) and a password, it creates a new HTML file, with a giant string of gibberish in its source code called var pl.
-
Password Protect Static Sites with PageCrypt
This version of PageCrypt is a rewrite of an older version of PageCrypt. That older version also inspired a few spin-offs that you might find useful:
ansicodes
-
checkv4.js - Resource script
/** @param {NS} ns */ export async function main(ns) { //Defines colors to make print pretty :) //ANSII codes taken from https://ansi.gabebanks.net/ and improved upon with https://stackoverflow.com/questions/4842424/list-of-ansi-color-escape-sequences const colors = {red: "\x1b[38;5;160m", green: "\x1b[38;5;40m", yellow: "\x1b[38;5;226m", blue: "\x1b[38;5;33m", magenta: "\x1b[38;5;165m", cyan: "\x1b[38;5;123m", white: "\x1b[38;5;231m", def: "\x1b[38;5;10m", reset: "\x1b[0m"} if (ns.fileExists("targets.txt")) { //Reads targets file and turns them into an array const targets = ns.read("targets.txt").split(","); //Creates object with all the information we'll need from the server through map const tardata = targets.map(targetname => { const server = ns.getServer(targetname) ; return {hostname: targetname, money: server.moneyMax, root: server.hasAdminRights, backdoor: server.backdoorInstalled, ram: server.maxRam, portstoopen: server.numOpenPortsRequired - server.openPortCount}; }); //Sorts the object from most max money to least tardata.sort((a, b) => { return b.money - a.money; }); //Prints to console the list in order with all the necessary info. let i = 1; for (const target of tardata) { //This is probably the longest tprint I'll ever write. holy. ns.tprint(colors.green, i.toString().padStart(2, '0'), ": Hostname: ", colors.cyan, target.hostname.padEnd(18, " "), colors.green, " - Max Money: ", colors.cyan, target.money.toString().padEnd(18, " "), colors.green, " - root/backdoor: ", colors.cyan, target.root.toString().padStart(5, " "), colors.green, "/", colors.cyan, target.backdoor.toString().padEnd(5, " "), colors.green, " - Ram: ", colors.cyan, target.ram.toString().padStart(3, " "), "GB", colors.green, " - Ports To Open: ", colors.cyan, target.portstoopen.toString().padStart(2, " "), colors.reset); i++; } } else { ns.tprint("run createtargets.js '123321'"); } }
- I made a tool to generate ANSI escape codes, so you can easily add colors to your scripts.
What are some alternatives?
staticrypt - Password protect a static HTML page, decrypted in-browser in JS with no dependency. No server logic needed.
ansis - Small and fast Node.js lib to colorize terminal output. Lightweight but powerful alternative to Chalk. Supports Bun, Deno, Next.JS.
pagecryptr - R-wrapper for PageCrypt. Client-side password-protection for HTML. See the original browser based app by clicking link below.
terminology - An intuitive way to color terminal text with python
pagecrypt - PageCrypt example on Render
rich - Rich is a Python library for rich text and beautiful formatting in the terminal.
sasha.html - A pure HTML+CSS+JS local application made to encrypt "very important images" IFYKWIM ( ͡° ͜ʖ ͡°)
term-keys - Lossless keyboard input for Emacs
gulp - A toolkit to automate & enhance your workflow
rich-cli - Rich-cli is a command line toolbox for fancy output in the terminal
webpack - A bundler for javascript and friends. Packs many modules into a few bundled assets. Code Splitting allows for loading parts of the application on demand. Through "loaders", modules can be CommonJs, AMD, ES6 modules, CSS, Images, JSON, Coffeescript, LESS, ... and your custom stuff.
y-webrtc - WebRTC Connector for Yjs