All Projects → mindcruzer → pelican-encrypt-content

mindcruzer / pelican-encrypt-content

Licence: MIT License
a pelican plugin to password protect content

Programming Languages

python
139335 projects - #7 most used programming language
HTML
75241 projects

Projects that are alternatives of or similar to pelican-encrypt-content

taman
Pelican theme with "just the right amount"
Stars: ✭ 14 (-36.36%)
Mutual labels:  pelican
pelican youtube
YouTube directives for the Pelican static site generator.
Stars: ✭ 25 (+13.64%)
Mutual labels:  pelican
pelican-alchemy
A ✨ functional, clean, responsive Pelican theme
Stars: ✭ 129 (+486.36%)
Mutual labels:  pelican
iKevinY.github.io
Repository for my Pelican-powered website.
Stars: ✭ 21 (-4.55%)
Mutual labels:  pelican
Fullstackpython.com
Full Stack Python source with Pelican, Bootstrap and Markdown.
Stars: ✭ 2,667 (+12022.73%)
Mutual labels:  pelican
Pelican
Static site generator that supports Markdown and reST syntax. Powered by Python.
Stars: ✭ 10,699 (+48531.82%)
Mutual labels:  pelican
eevee
A Material Design theme for the Pelican static site generator.
Stars: ✭ 37 (+68.18%)
Mutual labels:  pelican
pneumatic
Minimalistic, responsive Pelican theme.
Stars: ✭ 52 (+136.36%)
Mutual labels:  pelican
plumage
🎨 Theme for Pelican, the static site generator.
Stars: ✭ 50 (+127.27%)
Mutual labels:  pelican

Encrypt Pelican Content

This plugin allows you to have password protected articles and pages in Pelican. The content is encrypted with AES-256 in Python using PyCryptodome, and decrypted in the browser with Crypto-JS.

Installation

Refer to How to use plugins in the Pelican docs.

Quick summary

Pelican 4.5 switched to namespace packages for plugins. Run python setup.py install and Pelican will auto-detect the plugin.

Verify installation by running pelican-plugins. You should see something like:

-> Plugins found:
  | pelican.plugins.encrypt_content

Alternative method

Copy the pelican/plugins folder from this repository into the top level of your pelican project, then add the following to pelicanconf.py:

PLUGIN_PATHS = ['plugins']
PLUGINS = ['encrypt_content']

Settings

You can set a summary, as well as a title prefix to use for all encrypted articles. The default for both is a blank string.

In pelicanconf.py file:

ENCRYPT_CONTENT = {
    'title_prefix': '[Encrypted]',
    'summary': 'This content is encrypted.'
}

Usage

Inside your source file, just add the password of your choosing:

ex.

reStructuredText
That one time I robbed a bank 
###############################

:date: 1983-04-22
:tags: crime, banks, imabadass
:password: correcthorsebatterystaple
Markdown
Title: That one time I robbed a bank
Date: 1983-04-22
Tags: crime, banks, imabadass
Password: correcthorsebatterystaple
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].