Extension:EncryptedUploads

From Linux Web Expert

MediaWiki extensions manual
EncryptedUploads
Release status: unmaintained
Description Allows to encrypt uploaded files with a password
Author(s) WikiTeq team, Vedmaka
Latest version 0.0.2
Compatibility policy For every MediaWiki release that is a Long Term Support release there is a corresponding branch in the extension.
MediaWiki 1.35+
Database changes Yes
Composer wikiworks/encrypted-uploads
Tables encrypted_file
License MIT License
Download
Quarterly downloads Lua error in Module:Extension at line 172: bad argument #1 to 'inNamespace' (unrecognized namespace name 'skin').
Public wikis using Lua error in Module:Extension at line 172: bad argument #1 to 'inNamespace' (unrecognized namespace name 'skin').
Translate the EncryptedUploads extension if it is available at translatewiki.net
Issues Open tasks · Report a bug

The EncryptedUploads extension allows to encrypt uploaded files with a password. The password is visible to the uploader and can be shared with other users from selected groups.

Use of this extension together with UploadWizard requires a patch to the UploadWizard extension. It will work fine for regular uploads with no patch.

This extension was created for WikiWorks.

Installation

  • <translate> [[<tvar name=2>Special:ExtensionDistributor/EncryptedUploads</tvar>|Download]] and move the extracted <tvar name=name>EncryptedUploads</tvar> folder to your <tvar name=ext>extensions/</tvar> directory.</translate>
    <translate> Developers and code contributors should install the extension [[<tvar name=git>Special:MyLanguage/Download from Git</tvar>|from Git]] instead, using:</translate>cd extensions/
    git clone https://gerrit.wikimedia.org/r/mediawiki/extensions/EncryptedUploads
  • <translate> Only when installing from Git, run <tvar name=composer>Composer</tvar> to install PHP dependencies, by issuing <tvar name=code>composer install --no-dev</tvar> in the extension directory.</translate> <translate> (See <tvar name=phab><translate> task <tvar name=1>T173141</tvar></translate></tvar> for potential complications.)</translate>
  • <translate> Add the following code at the bottom of your <tvar name=1>LocalSettings.php </tvar> file:</translate>
    wfLoadExtension( 'EncryptedUploads' );
    
  • <translate> Run the [[<tvar name=update>Special:MyLanguage/Manual:Update.php</tvar>|update script]] which will automatically create the necessary database tables that this extension needs.</translate>
  • File:OOjs UI icon check-constructive.svg <translate> Done</translate> – <translate> Navigate to <tvar name=special>Special:Version</tvar> on your wiki to verify that the extension is successfully installed.</translate>

Configuration

This extension has 1 configuration parameters:

  • $wgEncryptedUploadsSendMail - Whether to send email with a password to the uploader user ( by default is set to false )

Usage

  • Navigate to Special:Upload page as a user with an upload permission
  • Select file to upload and check Encrypt upload checkbox under the Summary field
  • Submit upload. File will be processed, encrypted and you'll see a secret key (visible only for you), share it with others who you want to be able to decrypt & download the uploaded file

Integration with UploadWizard

Integrates with patched version of UploadWizard, but requires a patch for the last ( find patch in patch folder of the repository )