Extension:PasswordProtectPages

What can this extension do?
This is a pretty simple implementation of per page protection. It allows to protect each page with separate password from reading and editing. It uses userCan hook with all its advantages and disadvantages.

Usage
This is very experimental version! Do not use it to protect critical data.

On my wiki I've created special namespace: that is protected. However, You can protect whichever namespace You like. Protected articles displays new personalUrl "protect". After creating page You should click protect (in personal url), then You'd be redirected to set up the page password. After doing this anyone wanting to see/edit this page have to unlock it using password.

Sysops can see every page as it was not protected. Protected pages are visible only for logged users.

Installation
To install this extension, download all files to extensions/PasswordProtectPages and add the following to LocalSettings.php:

You also have to create new table to store passwords: execute this code to your database (add in front of protect_pages your prefix): CREATE TABLE `protect_pages` ( `pageid` int(3) NOT NULL,  `password` blob NOT NULL )

Problems
This is per page protection with all it's consequencies. I would recommend setting: for better protection.

Protected pages are still searchable! But their source is hopefully not displayed, so this lack of security is not critical.

I'm gonna test this extension intensively next days.