Package: python-file-encryptor / 0.2.9-2

00-fix-readme-bad-import.patch Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
Description: Fix build with python > 3, setting the long description encoding at build.
Author: Josue Ortega <josueortega@debian.org.gt>
Last-Update: 2016-01-31

--- a/README.rst
+++ b/README.rst
@@ -23,28 +23,28 @@
 
 .. code:: python
 
-    import file_encryptor.convergence
+    import file_encryptor.convergence as convergence
 
-    key = convergence.encrypt_inline_file("/path/to/file", None)
+    key = convergence.encrypt_file_inline("/path/to/file", None)
 
 You can also specify a passphrase:
 
 .. code:: python
 
-    import file_encryptor.convergence
+    import file_encryptor.convergence as convergence
 
-    key = convergence.encrypt_inline_file("/path/to/file", "rainbow dinosaur secret")
+    key = convergence.encrypt_file_inline("/path/to/file", "rainbow dinosaur secret")
 
 To decrypt a file inline, you need the key that was returned by the
 encrypt method:
 
 .. code:: python
 
-    import file_encryptor.convergence
+    import file_encryptor.convergence as convergence
 
-    key = convergence.encrypt_inline_file("/path/to/file", "rainbow dinosaur secret")
+    key = convergence.encrypt_file_inline("/path/to/file", "rainbow dinosaur secret")
 
-    convergence.decrypt_inline_file("/path/to/file", key)
+    convergence.decrypt_file_inline("/path/to/file", key)
 
 The reason why you cannot use the passphrase directly is because the key
 is derived from both the passphrase and the SHA-256 of the original
@@ -93,4 +93,4 @@
 .. |Coverage Status| image:: https://coveralls.io/repos/Storj/file-encryptor/badge.png?branch=master
    :target: https://coveralls.io/r/Storj/file-encryptor?branch=master
 .. |PyPI version| image:: https://badge.fury.io/py/file_encryptor.svg
-   :target: http://badge.fury.io/py/file_encryptor
\ No newline at end of file
+   :target: http://badge.fury.io/py/file_encryptor