<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/robinmoisson-staticrypt-password-protect-a-static-html-page-decrypted-in-browser-in-js-with-no-dep-2qkuhs3kg" -->

---
title: robinmoisson/staticrypt: Password protect a static HTML...
description: StatiCrypt is a tool that uses AES-256 and WebCrypto to encrypt HTML files with a password, allowing for password protection without the need for a back-end...
canonical: https://daily.dev/posts/robinmoisson-staticrypt-password-protect-a-static-html-page-decrypted-in-browser-in-js-with-no-dep-2qkuhs3kg
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: robinmoisson/staticrypt: Password protect a static HTML page, decrypted in-browser in JS with no dependency. No server logic needed. | daily.dev
og:description: StatiCrypt is a tool that uses AES-256 and WebCrypto to encrypt HTML files with a password, allowing for password protection without the need for a back-end...
og:url: https://daily.dev/posts/robinmoisson-staticrypt-password-protect-a-static-html-page-decrypted-in-browser-in-js-with-no-dep-2qkuhs3kg
og:image: https://api.daily.dev/og/posts/2QkuHS3Kg.png
og:image:alt: robinmoisson/staticrypt: Password protect a static HTML page, decrypted in-browser in JS with no dependency. No server logic needed.
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# robinmoisson/staticrypt: Password protect a static HTML page, decrypted in-browser in JS with no dependency. No server logic needed.

**[Hacker News](https://daily.dev/sources/hn)** · 11 min read · 12 upvotes · 0 comments

## Summary

StatiCrypt is a tool that uses AES-256 and WebCrypto to encrypt HTML files with a password, allowing for password protection without the need for a back-end server. It provides options to encrypt files online or through the command-line interface. The encrypted files can be decrypted in the browser.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://github.com/robinmoisson/staticrypt>

---

Tags: [#security](https://daily.dev/tags/security), [#webdev](https://daily.dev/tags/webdev), [#javascript](https://daily.dev/tags/javascript), [#html](https://daily.dev/tags/html), [#encryption](https://daily.dev/tags/encryption)

[View this post on daily.dev](https://daily.dev/posts/robinmoisson-staticrypt-password-protect-a-static-html-page-decrypted-in-browser-in-js-with-no-dep-2qkuhs3kg)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"robinmoisson/staticrypt: Password protect a static HTML page, decrypted in-browser in JS with no dependency. No server logic needed.","url":"https://daily.dev/posts/robinmoisson-staticrypt-password-protect-a-static-html-page-decrypted-in-browser-in-js-with-no-dep-2qkuhs3kg","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/robinmoisson-staticrypt-password-protect-a-static-html-page-decrypted-in-browser-in-js-with-no-dep-2qkuhs3kg"},"datePublished":"2023-02-19T09:24:50.875Z","dateModified":"2024-04-09T13:17:23.585Z","description":"StatiCrypt is a tool that uses AES-256 and WebCrypto to encrypt HTML files with a password, allowing for password protection without the need for a back-end...","image":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/9620a8f3f2a1be1977d86413726b3e28?_a=AQAEufR","thumbnailUrl":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/9620a8f3f2a1be1977d86413726b3e28?_a=AQAEufR","isAccessibleForFree":true,"articleSection":"Hacker News","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"Hacker News","logo":"https://media.daily.dev/image/upload/t_logo,f_auto/v1/logos/hn","url":"https://daily.dev/sources/hn"},"commentCount":0,"discussionUrl":"https://daily.dev/posts/robinmoisson-staticrypt-password-protect-a-static-html-page-decrypted-in-browser-in-js-with-no-dep-2qkuhs3kg","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":12},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"keywords":"security,webdev,javascript,html,encryption","timeRequired":"PT11M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"Hacker News","item":"https://daily.dev/sources/hn"},{"@type":"ListItem","position":3,"name":"robinmoisson/staticrypt: Password protect a static HTML page, decrypted in-browser in JS with no dependency. No server logic needed."}]}
```

