It's better when it's simple

User Tools

Site Tools


dokucrypt2 Plugin

Compatible with DokuWiki

  • 2020-07-29 "Hogfather" yes
  • 2018-04-22 "Greebo" yes
  • 2017-02-19 "Frusterick Manners" unknown
  • 2016-06-26 "Elenor Of Tsort" unknown

plugin A plugin to support client side cryptography

Last updated on
Conflicts with
aceeditor, fastwiki

Similar to dokucrypt

Tagged with encryption, password

By Scott Moser (, maintained by Sherri Wheeler. (Twitter @SyntaxSeed /

:!: This replaces the: Original DokuCrypt Plugin.


This is a newly maintained version of the DokuCrypt plugin. It is fully patched for the latest version of Dokuwiki.

  • Fully tested on: 2018-04-22b+ “Greebo”
  • Fully tested on:: 2020-07-29 “Hogfather”. (Use version 2020-10-19 or later of DokuCrypt2.)

Search and install the plugin using the Extension Manager. Refer to Plugins on how to install plugins manually.

Note: Plugin is now maintained by Sherri Wheeler. — Sherri 2017-06-26 04:45


dokucrypt is a client side (javascript) cryptography plugin. This plugins allows a user to store and access sensitive data in a dokuwiki. All sensitive data is encrypted before it is submitted and decrypted on the clients machine. A users' sensitive data will only be accessible when viewed with a javascript enabled browser and the proper pass phrase. It will never be transmitted or stored in plain text, and you will avoid having passwords and sensitive data stored in plain text on the server.

The Javascrypt ( library is used for encryption and decryption to provide 256 Bit AES encryption.

:!: Warning: This plugin should not replace a password manager or peer reviewed cryptography tools for high-priority use. Do not store mission critical type data with this plugin - I cannot be sure that the info is not cached by DokuWiki or the web browser. — sherri 2020-10-14 19:55

:!: This plugin is provided without warranty or guarantee of any kind. Use at your own discretion.sherri 2020-10-14 19:55


  • 2021-05-18: Fix for internal link edit toolbar button. Issue #12.
  • 2021-03-03: Add wrapping for the pre tag. Contributed by dustin-something.
  • 2020-10-19: Cosmetic changes, add CSS classes, collapse blocks by default.
  • 2020-10-14: Temp fix for Dokuwiki 2020-07-29 “Hogfather”. DecryptSecret button was not appearing on page edit.
  • 2020-02-07: Updated for PHP v 7+.
  • 2017-11-08: Fixed an issue with the heading buttons 'PATCH 1' required (above). Added plugin info text file.
  • 2017-06-25: Fork the original plugin. Patch it up. Release for most recent DokuWiki version. Cheers!


Entering Encrypted Data

In order to encrypt some sensitive data, the user needs to add text like the following

Hi world.  I have a secret.  Can you read it?
< SECRET>I like ice cream< /SECRET>
  • Note: the spaces before 'SECRET' and the forward slash at the end must be removed

When the user hits 'Save' (or a draft is attempted to be saved) a prompt will open, asking the user to enter a pass phrase key for the encryption. Once supplied, the encryption will be done in the browser and the encrypted text submitted to the server.

Viewing Encrypted Data

When the page is viewed, the user will see the encrypted text and a link 'Decrypt Encrypted Text' will appear which will prompt the user for a password and decrypt the text (see the example below).

The encrypted text is compatible with javascrypt decryption (

Editing Encrypted Data

To edit the encrypted data, the user needs to Edit the wiki page. When first loaded, encrypted text will appear encrypted, surrounded by <ENCRYPTED> and </ENCRYPTED> tags. To edit this text, the user needs to press the 'DecryptSecret' button between 'Save' and 'Preview', and supply the correct pass phrase. The encrypted text will be decrypted to the 'SECRET' form showed above, and the use can edit in plaintext. Submits or drafts will be encrypted before submission with the same pass phrase supplied.

Known Issues / Feature Requests

Please use the GitHub Issues page.

Bugs - Please Submit Bugs On GitHub

Please use the Issues page on GitHub.

Patches For Older Versions of DokuWiki

plugin/dokucrypt2.txt · Last modified: 2021-05-18 20:50 by sherri