Governate
Sign in Start a trial

Protecting files

Protecting a file encrypts it and registers it with your installation. The person who protects a file owns it.

From the browser

Press Protect files at the top of any page. It takes you to Files with a drop box open: drop any number of files or folders, or click the box to choose. A few are handled at a time, and each appears in the list straight away with its progress. Close puts the box away.

Where the encryption happens is your administrator's choice (see Settings):

Files protected from the browser are normally stored by the server, so the people they are shared with can view them in the browser. An administrator can change that, so that files are kept only where the person protecting chooses, or never on the server; see Settings.

From the command line

governate protect contract.pdf budget.xlsx

This writes contract.pdf.gvf and budget.xlsx.gvf beside the originals. The command-line tool always encrypts on the device. Many files are handled at once, one per processor by default; -j N changes that.

By default the server only receives the file's key, not the file: you move the .gvf yourself by email, a shared drive or any other way. Add -upload to also store the protected file on the server so that it can be viewed in the browser. A file protected without -upload can still be viewed later: whoever holds the .gvf drops it on the website, as described in Sharing and ownership.

Downloading

The owner of a file, and administrators, can download it in two forms from the file's page:

If the administrator has turned on stand-in files (see Settings), PDF and Office documents have a third form, Link only: a file that looks like the original and holds only a link to it.

People a file is shared with can download the original only if the owner allows it. Every download of an original is recorded.

Revoking

Revoke on a file's page, or governate revoke file.gvf, stops everyone from opening the file, the owner included. It cannot be undone.

What can be viewed in the browser

KindTypesShown by
DocumentsWord, Excel, PowerPoint, OpenDocument, PDF, .csv, .rtf, common image formatsThe document viewer
Text.json, .yaml, .toml, .ini, .env, .xml, .html, .md, .txt, .log, .sql, shell scripts, and source code in the common languagesThis website's own text page

Any type of file can be protected; types that neither can show are opened with the command-line tool or downloaded.

Text files

Text files open in a plain editor with line numbers, coloured according to the kind of file. It needs no document viewer, so it works on an installation that has none.

Copying textA document is drawn by the viewer and reaches the browser as pictures of pages. Text has to reach the browser as text to be shown. For a reader without the Copy and paste permission this page switches off selecting, copying and the right-click menu, which stops casual copying. It cannot stop a determined reader using the browser's own developer tools. Editing is different: a save from someone without the right is refused by the server whatever the page does.