docs/html/encryption.html

changeset 281
ddb5e8f2a43d
parent 275
fa48ab29abd2
child 283
0e36bb75a732
--- a/docs/html/encryption.html	Sat Aug 05 11:08:34 2017 +0200
+++ b/docs/html/encryption.html	Sat Aug 05 11:33:17 2017 +0200
@@ -66,7 +66,7 @@
 <div class="content">
 <h1 id="encryption">Encryption</h1>
 <p>The davutils programs have an integrated client-side encryption feature, that allows you to encrypt and decrypt on the fly with AES256 or AES128. To use this feature, the server <strong>must</strong> support WebDAV dead properties.</p>
-<p>The tools support both, encryption of the resource content and encryption of the resource name. Each resource is encrypted separately. With activated name encryption, the actual resource name is random but the name used by the client is stored encrypted in WebDAV properties. This means, an attacker can see the directory structure and the file length, but can't see which files have the same name.</p>
+<p>The tools support both, encryption of the resource content and encryption of the resource name. Each resource is encrypted separately. With activated name encryption, the actual resource name is disguised by a random name but the name used by the client is stored encrypted as a WebDAV property. This means, an attacker can see the directory structure and the file length, but can't guess the file names and in particular which files have the same name.</p>
 <p>To enable encryption a key must be configured in <code>$HOME/.dav/config.xml</code>. A key must have a unique name. To access encrypted resources, all clients must configure the same key with the same name. Currently a key can only be loaded from a file and not generated from a password.</p>
 <p>A configuration for a key looks like:</p>
 <pre><code>&lt;key&gt;
@@ -74,9 +74,9 @@
     &lt;file&gt;keys/mykey1&lt;/file&gt;
 &lt;/key&gt; </code></pre>
 <p>The file path must be relative to <code>$HOME/.dav/</code>. In this example the file <code>$HOME/.dav/keys/mykey1</code> is loaded.</p>
-<p>To generate a key use <strong><code>dd</code></strong> on unix like systems.</p>
+<p>To generate a key use <strong><code>dd</code></strong> on unix like systems. The following command generates a 256 bit (32 bytes) key for AES256 encryption.</p>
 <pre><code>dd if=/dev/random of=mykey1 bs=32 count=1</code></pre>
-<p>After a key is configured, you can enable encryption/decryption in two ways. You can use the dav option <strong><code>-c</code></strong> to enable encryption and specify your key with the <strong><code>-k</code></strong> option. The alternative is to enable encryption by default for a repository in the config.xml file.</p>
+<p>After a key is configured, you can enable encryption/decryption in two ways. You can use the dav option <strong><code>-c</code></strong> to enable encryption and specify your key with the <strong><code>-k</code></strong> option. The alternative is to enable encryption by default for a repository in the config.xml file. You may also choose to specify the default key only and use <strong><code>-c</code></strong> where you like to use encryption.</p>
 <pre><code>&lt;repository&gt;
     &lt;name&gt;myrepo&lt;/name&gt;
     &lt;url&gt;http://example.com/webdav/&lt;/url&gt;
@@ -89,7 +89,7 @@
 <p>When a resource is encrypted, some crypto properties (namespace: http://davutils.org/) are set for the resource.</p>
 <ul>
 <li>crypto-key: Contains the name of the key used for encryption. The presence of this property indicates that the resource is encrypted</li>
-<li>crypto-hash: A Hash of the cleartext, encrypted and base64 encoded</li>
+<li>crypto-hash: A hash of the cleartext, encrypted and base64 encoded</li>
 <li>crypto-name: The name of the resource, encrypted and base64 encoded. This property is not used if name encryption is disabled.</li>
 </ul>
 </div>

mercurial