staticrypt | Password protect a static HTML page, decrypted in-browser | Encryption library
kandi X-RAY | staticrypt Summary
kandi X-RAY | staticrypt Summary
Based on the crypto-js library, StatiCrypt uses AES-256 to encrypt your string with your passphrase in your browser (client side). Download your encrypted string in a HTML page with a password prompt you can upload anywhere (see example). You can encrypt a file online at
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Go to the next state
- increments a word
- Generate a keyword word
- Encrypt in the encrypted block .
- XOR two blocks .
- Check user defined option
- Generate the output file
- Encrypt an encrypted message
- Turn a base64 string into an array of words .
- Check if n is prime .
staticrypt Key Features
staticrypt Examples and Code Snippets
Community Discussions
Trending Discussions on staticrypt
QUESTION
I'm using Jekyll for my blog. I want to protect some blog post with a password and I've decided to use Staticrypt.
I can encrypt the index.html
page of one of my blog post with the Staticryp CLI and my custom password_template.html
. It outputs a index_encrypted.html
.
My question is: Where do I put the index_encrypted.html
? I can't add it to the _site
since Jekyll return the build to default everytime I serve it.
I tried adding the index_encrypted.html
to the _includes
folder and calling the page from the .md
post like this:
{% include index_encrypted.html %}
but this just break the page.
Thank you!
...ANSWER
Answered 2020-Sep-19 at 19:32I figured out how to do it.
Here's what I did:
Put the
index_encrypted.html
in_includes
and_layouts
Add a
permalink: /index_encrypted.html
in front matter of the.md
post you're targetting.Add a
layout: index_encrypted
in front matter of the.md
post you're targetting.Delete the whole markdown content of the
.md
post.Voila!
You front matter should look like this:
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install staticrypt
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page