Encrypted Passwords Plugin

Compatible with DokuWiki

  • 2012-01-25 "Angua" yes
  • 2011-05-25 "Rincewind" yes
  • 2010-11-07 "Anteater" unknown

plugin This plugin let you store 256 bit AES encrypted passwords in your DokuWiki pages. The password can be decrypted by clicking them (Javascript must be enabled). Based on the encryption library from http://www.vincentcheung.ca/jsencryption.

Last updated on
2011-01-21
Provides
Syntax, Action

Tagged with convert, encryption, password

Download and Installation

http://www.werbeagentur-willers.de/download/dokuwiki-plugins/encryptedpasswords.zip

Download and install the plugin using the Plugin Manager using the URL given above. Refer to Plugins on how to install plugins manually.

Syntax and Usage

This plugin is useful if you want to store passwords directly within your wiki. The passwords are stored encrypted in the Dokuwiki data files, so nobody is be able to find out the passwords through the file system.

To encrypt text, just select your text and click the button with the grey key. Use the same encryption key on one page, as decrypting affects all passwords on a page.

This Plugin needs JavaScript to decrypt the passwords.

With version 2011-01-21 you can decrypt the text inside the editor by selecting a <decrypt>…</decrypt> block an pressing the button with the grey key.

Email Encryption

Thanks for the great plugin! I've used it successfully to hide an email address from spambots until the user decrypts it. Here are the instructions:

  1. Edit your wiki as follows:
    <a href="jsmith@example.com">jsmith@example.com</a>((Anti-spam: Click and enter the key "mail" to decrypt.))
  2. Select the text ”<a …” thru ”</a>” (included) and click the “Encrypt selected password” button.
  3. Use “mail” (twice) as the key.
  4. The result should look like
    <decrypt>U2FsdGVkX1+yOO4EsU4YFxr7hWnqq60Zv5EBWQoLAvQKrUtYurXwxZbfqKDJZKNA
    BH9rJtjdaPN4KmX6PbcpdFnlNa3iPC7EfWbusTT1Lds=</decrypt>((Anti-spam: Click and enter the key "mail" to decrypt.))
  5. On saving the page the email link will be encrypted. When the user clicks and enters the decryption key it will be revealed as a clickable link. The footnote provides instructions to the user.

Encryption of formatted password lists

As the plugin puts non-rendered text onto the page while decrypting, it is not possible to use wiki syntax and so you can't encrypt a whole wiki page.

Here's a workaround to get a formatted password list which can be encrypted at once:

<html>
<pre>
| Site             | password |
| www.example.com  | pw       |
</pre>
</html>

Problems

Conflict with issuetracker

The 2011-01-21 version of encryptedpasswords conflicts with plugin:issuetracker 2011-12-13. With both plugins installed some browsers (eg. IE 8, Chrome 15) won't allow inline editing in issuetracker's tables.1) The conflict appears to be resolved by replacing the last few lines2) of encryptedpasswords/jsencryption.js with

if (!Array.indexOf) {
	Array.prototype.indexOf = function(a, b) {
		for (var i = (b || 0); i < this.length; i++) {
			if (this[i] == a) {
				return i
			}
		}
		return -1;		// needed for compatibility with issuetracker plugin [Rik, 2011-12-15]
	}
}
1) See issue 33 for more information.
2) Starting near line 961.
plugin/encryptedpasswords.txt · Last modified: 2011/12/24 21:12 by rikblok
 
Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Share Alike 3.0 Unported
Imprint Recent changes RSS feed Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki
WikiForumIRCBugsGitXRefTranslate