Skip to content

syntaxseed/dokucrypt2

 
 

Repository files navigation

DokuWiki Plugin: DokuCrypt2

follow on Mastodon  Sponsor Project

This is a plugin for DokuWiki to support client side cryptography.

!! 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.

!! This plugin is provided without warranty or guarantee of any kind. Use at your own discretion.

Usage

Hi world.  I have a secret.  Can you read it?
<SECRET>I like ice cream</SECRET>

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.

Settings

This plugin includes configuration settings.

  • copytoclipboard - If set to true, the plugin tries to copy the decrypted value to the clipboard.
  • hidepasswordoncopytoclipboard - If set to true, the decrypted value will not be shown after being copied to the clipboard (see option 'copytoclipboard').

ChangeLog

  • 2024-05-01: PR from t-oster to prevent bugs when encrypted text contains html.
  • 2022-08-08: Added ability and setting for copying the contents to the clipboard on decrypt.
  • 2022-02-02: Preparatory fixes/testing for PHP 8. Improvements for code style PSRs.
  • 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: Formatting changes, add CSS classes, collapse 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!

About

Dokucrypt 2 plugin for Dokuwiki.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 89.7%
  • PHP 10.3%