security1Add my vote for this tag create new tag
, view all tags


Hide passwords embedded in your topics.


Rather than play HTML tricks with foreground and background fonts, this PlugIn allows you to document the password in the Topic in plain text and have that password hidden when rendering using the shorthand %PASSWORD{sometext}%. When the text is rendered the password is converted to *'s. The topic is also changed to 640 instead of 644 to prevent accounts with file system access from seeing the password.

I really suggest that you chmod 0600 any files that you store passwords in.

I, nor my company are responsible for any issues you have from using this plugin, lost passwords, etc.

Syntax Rules

  • %PASSWORD{secret}%


  • %PASSWORD{secret}%

HidePasswordPlugin Settings

  • One line description, is shown in the TextFormattingRules topic:
    • Set SHORTDESCRIPTION = Hide passwords embedded in TWiki topics

  • Debug plugin: (See output in data/debug.txt)
    • Set DEBUG = 0

  • Plugin specific settings:
    • Set TWIKIDATAPATH = /path/to/twiki/data
    • Set CHMOD = 0640

Plugin Installation Instructions

Note: You do not need to install anything on the browser to use this plugin. The following instructions are for the administrator who installs the plugin on the TWiki server.

Extract HidePassword.zip, edit the HidePasswordPlugin-topic to your needs and have fun. There is an install script at the top of the unpacked director that might help with installing this plugin. Execute this script by:

  • # unzip -v HidePasswordsPlugin.zip
  • # cd twikiHidePasswords
  • # ./install.sh /var/www/html/twiki
    • change the above path to where your twiki is installed


  • lib/TWiki/Plugins/HidePasswordPlugin.pm
  • data/TWiki/HidePasswordPlugin.txt

Plugin Info

Plugin Author: TWiki:Main.MikeEggleston
Copyright: © 2006, TWiki:Main.MikeEggleston
License: GPL (GNU General Public License)
Plugin Version: 20 Nov 2006 (V1.000)
Change History:  
20 Nov 2006: Initial version
TWiki Dependency: $TWiki::Plugins::VERSION 1.1
CPAN Dependencies: none
Other Dependencies: none
Perl Version: 5.005
Benchmarks: GoodStyle nn%, FormattedSearch nn%, HidePasswordPlugin nn%
Plugin Home: http://TWiki.org/cgi-bin/view/Plugins/HidePasswordPlugin
Feedback: http://TWiki.org/cgi-bin/view/Plugins/HidePasswordPluginDev
Appraisal: http://TWiki.org/cgi-bin/view/Plugins/HidePasswordPluginAppraisal

Related Topics: TWikiPlugins, DeveloperDocumentationCategory, AdminDocumentationCategory, TWikiPreferences

-- TWiki:Main.MikeEggleston - 20 Nov 2006

Edit | Attach | Watch | Print version | History: r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r2 - 2006-11-21 - PeterThoeny
  • Learn about TWiki  
  • Download TWiki
This site is powered by the TWiki collaboration platform Powered by Perl Hosted by OICcam.com Ideas, requests, problems regarding TWiki? Send feedback. Ask community in the support forum.
Copyright © 1999-2018 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.